Difference between revisions of "Template:Bill of materials-row"

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
Line 3: Line 3:
 
|{{#if:{{{item|<noinclude>x</noinclude>}}}|{{{item}}}}}
 
|{{#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>}}}|${{{cost}}}|Unknown}}
+
|{{#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}}}}}|??|${{#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}}
 
|{{#if:{{{distributor|<noinclude>x</noinclude>}}}|{{#ifexist:{{{distributor}}}|[[{{{distributor}}}]]|{{{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 21:45, 12 August 2010

Item Metric Cost/Item Qty Sub Total Distributor
{{{item}}} {{{metric}}} $0.00 {{{quantity}}} ?? {{{distributor}}}
[edit] [purge] Template documentation

Usage

{{bom-row
| item = 
| item_link = 
| metric = 
| cost = 
| quantity = 
| distributor = 
}}