Difference between revisions of "Template:Bill of materials-row"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<noinclude>{{bom-start}} | <noinclude>{{bom-start}} | ||
</noinclude>|- | </noinclude>|- | ||
− | |{{#if:{{{item_link|<noinclude>x</noinclude>}}}|{{#ifeq:{{{have|}}}|yes|<s>}}[{{{item_link}}} {{{item}}}]|{{#if:{{{item|<noinclude>x</noinclude>}}}|{{{item}}} | + | |{{#if:{{{item_link|<noinclude>x</noinclude>}}}|{{#ifeq:{{{have|}}}|yes|<s>}}[{{{item_link}}} {{{item}}}]{{#ifeq:{{{have|}}}|yes|</s>}}|{{#if:{{{item|<noinclude>x</noinclude>}}}|{{{item}}}}}}} |
|{{#if:{{{metric|<noinclude>x</noinclude>}}}|{{{metric}}}|N/A}} | |{{#if:{{{metric|<noinclude>x</noinclude>}}}|{{{metric}}}|N/A}} | ||
− | |{{#if:{{{cost|<noinclude>x</noinclude>}}}|${{format price|{{{cost|0}}}}}|Unknown}} | + | |{{#ifeq:{{{have|}}}|yes|${{format price|0}}|{{#if:{{{cost|<noinclude>x</noinclude>}}}|${{format price|{{{cost|0}}}}}|Unknown}}}} |
|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{{quantity}}}|Unknown}} | |{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{{quantity}}}|Unknown}} | ||
|{{#if:{{{cost|<noinclude>x</noinclude>}}}|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{#iferror:{{#expr:{{{quantity}}} * {{{cost}}}}}|??|${{format price|{{#expr:{{{quantity}}} * {{{cost}}}}}}}}}|Unknown}}|Unknown}} | |{{#if:{{{cost|<noinclude>x</noinclude>}}}|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{#iferror:{{#expr:{{{quantity}}} * {{{cost}}}}}|??|${{format price|{{#expr:{{{quantity}}} * {{{cost}}}}}}}}}|Unknown}}|Unknown}} |
Revision as of 19:37, 19 January 2011
Item | Metric | Cost/Item | Qty | Sub Total | Distributor |
---|---|---|---|---|---|
[{{{item_link}}} {{{item}}}] | {{{metric}}} | $0.00 | {{{quantity}}} | ?? | {{{distributor}}} |
[edit] [ ] Template documentation
Usage
{{bom-row | item = | item_link = | metric = | cost = | quantity = | distributor = }}
The above documentation is transcluded from Template:Bill of materials-row/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |