Difference between revisions of "Template:Bill of materials-row"
Jump to navigation
Jump to search
(added metric column) |
(addition of showing distributor pages if they exist) |
||
Line 6: | Line 6: | ||
|{{#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}}}}}|??|${{#expr:{{{quantity}}} * {{{cost}}}}}}}|Unknown}}|Unknown}} | |{{#if:{{{cost|<noinclude>x</noinclude>}}}|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{#iferror:{{#expr:{{{quantity}}} * {{{cost}}}}}|??|${{#expr:{{{quantity}}} * {{{cost}}}}}}}|Unknown}}|Unknown}} | ||
− | |{{#if:{{{distributor|<noinclude>x</noinclude>}}}|{{{distributor}}}|Unknown}}<noinclude> | + | |{{#if:{{{distributor|<noinclude>x</noinclude>}}}|{{#ifexist:{{{distributor}}}|[[{{{distributor}}}]]|{{{distributor}}}}}|Unknown}}<noinclude> |
{{bom-end}} | {{bom-end}} | ||
{{documentation}}[[Category:Table building templates]]</noinclude> | {{documentation}}[[Category:Table building templates]]</noinclude> |
Revision as of 07:06, 23 February 2010
Item | Metric | Cost/Item | Qty | Sub Total | Distributor |
---|---|---|---|---|---|
[[{{{item_link}}}|{{{item}}}]][[Category:Projects containing {{{item}}}]] | {{{metric}}} | ${{{cost}}} | {{{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. |