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

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
Line 1: Line 1:
<noinclude>{{bom-start}}</noinclude>
+
<noinclude>{{bom-start}}
|-
+
</noinclude>|-
 
|{{#if:{{{item|<noinclude>x</noinclude>}}}|{{#ifexist:{{{item}}}|[[{{{item}}}]]|{{{item}}}}}|''Item Name Missing''}}
 
|{{#if:{{{item|<noinclude>x</noinclude>}}}|{{#ifexist:{{{item}}}|[[{{{item}}}]]|{{{item}}}}}|''Item Name Missing''}}
|{{#if:{{{cost|<noinclude>x</noinclude>}}}|${{{cost}}}|??}}
+
|{{#if:{{{cost|<noinclude>x</noinclude>}}}|${{{cost}}}|Unknown}}
|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{{quantity}}}|??}}
+
|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{{quantity}}}|Unknown}}
|{{#if:{{{cost|<noinclude>x</noinclude>}}}|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{#iferror:{{#expr:{{{quantity}}} * {{{cost}}}}}|??|${{#expr:{{{quantity}}} * {{{cost}}}}}}}|??}}|??}}
+
|{{#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}}}|??}}
+
|{{#if:{{{distributor|<noinclude>x</noinclude>}}}|{{{distributor}}}|Unknown}}<noinclude>
<noinclude>{{bom-end}}
+
{{bom-end}}
 
{{documentation}}[[Category:Table building templates]]</noinclude>
 
{{documentation}}[[Category:Table building templates]]</noinclude>

Revision as of 20:00, 8 February 2010

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

Usage

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