Difference between revisions of "Template:Order totals"
Jump to navigation
Jump to search
(Created page with '{| class="wikitable" width="200px" !Savings |${{{savings|0}}} |- !Subtotal |${{{subtotal|0}}} |- !Shipping |${{{shipping|0}}} |- !Total |${{#expr: {{{subtotal|0}}} + {{{shipping|…') |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{#ifeq:{{{shipping|0}}}|0|'''<font color="red">The shipping has not been added to this order yet, the total is fully accurate.</font>'''}} | ||
{| class="wikitable" width="200px" | {| class="wikitable" width="200px" | ||
− | ! | + | !Subtotal |
− | |${{{ | + | |
+ | |${{format price| {{{subtotal|0}}} }} | ||
|- | |- | ||
− | !Subtotal | + | !Discounted Subtotal |
− | |${{{subtotal|0}}} | + | |
+ | |${{format price| {{{discounted|{{{discountedsub|{{{discountedsubtotal|0}}}}}}}}} }} | ||
+ | |- | ||
+ | !Savings Pre Shipping | ||
+ | |${{format price| {{#expr: {{{subtotal|0}}} - {{{discounted|{{{discountedsub|{{{discountedsubtotal|0}}}}}}}}} }} }} | ||
|- | |- | ||
!Shipping | !Shipping | ||
− | |${{{shipping|0}}} | + | |${{format price| {{{shipping|0}}} }} |
+ | |||
|- | |- | ||
!Total | !Total | ||
− | |${{#expr: {{{ | + | |${{format price| {{#expr: {{{discounted|{{{discountedsub|{{{discountedsubtotal|0}}}}}}}}} + {{{shipping|0}}} }} }} |
|}<noinclude> | |}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 04:09, 17 October 2010
The shipping has not been added to this order yet, the total is fully accurate.
Subtotal | $0.00 |
---|---|
Discounted Subtotal | $0.00 |
Savings Pre Shipping | $0.00 |
Shipping | $0.00 |
Total | $0.00 |
[edit] [ ] Template documentation
Usage
{{order totals |subtotal = |discountedsubtotal = |shipping = }}
Redirects
{{Adafruit totals}}
The above documentation is transcluded from Template:Order totals/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |