Difference between revisions of "Template:Adafruit item row"
Jump to navigation
Jump to search
(added multiple names for one parameter) |
(set default discount price) |
||
Line 3: | Line 3: | ||
| {{#if: {{{name|{{{url|<noinclude>x</noinclude>}}}}}} | [{{{url}}} {{{name}}}] | ''N/A''}} | | {{#if: {{{name|{{{url|<noinclude>x</noinclude>}}}}}} | [{{{url}}} {{{name}}}] | ''N/A''}} | ||
| {{{quantity|{{{qty|1}}}}}} | | {{{quantity|{{{qty|1}}}}}} | ||
− | | ${{#expr: {{{quantity|{{{qty|1}}}}}} * {{{cost|{{{price|0}}}}}} - {{{discount|0}}} * {{{cost|{{{price|0}}}}}} }} | + | | ${{#expr: {{{quantity|{{{qty|1}}}}}} * {{{cost|{{{price|0}}}}}} - {{{discount|0.1}}} * {{{cost|{{{price|0}}}}}} }} |
<noinclude>{{adafruit item bottom}} | <noinclude>{{adafruit item bottom}} | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 02:31, 8 August 2010
Item | Qty | Cost/Item | Cost | Discounted Cost/Item | Discounted Cost |
---|---|---|---|---|---|
[{{{url}}} {{{name}}}] | 1 | $0 |
[edit] [ ] Template documentation
Usage
{{adafruit item row |name = |url = |quantity = |out_of_stock = |price = |discount = }}
The above documentation is transcluded from Template:Adafruit item row/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. |