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

From MidsouthMakers - Memphis Area Hackerpace
Jump to navigation Jump to search
(Created page with '<noinclude>{{bom-start}}</noinclude> |- |{{#if:{{{item|<noinclude>x</noinclude>}}}|{{#ifexist:{{{item}}}|[[{{{item}}}]]|{{{item}}}}}|''Item Name Missing''}} |{{#if:{{{cost|<noinc…')
 
 
(32 intermediate revisions by the same user not shown)
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_link|<noinclude>x</noinclude>}}}|{{#ifeq:{{{have|}}}|yes|<s>}}[{{{item_link}}} {{{item}}}]{{#ifeq:{{{have|}}}|yes|</s>}}|{{#if:{{{item|<noinclude>x</noinclude>}}}|{{{item}}}}}}}
|{{#if:{{{cost|<noinclude>x</noinclude>}}}|{{{cost}}}|??}}
+
|{{#if:{{{metric|<noinclude>x</noinclude>}}}|{{{metric}}}|N/A}}
|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{{quantity}}}|??}}
+
|{{#ifeq:{{{have|}}}|yes|${{format price|0}}|{{#if:{{{cost|<noinclude>x</noinclude>}}}|${{format price|{{{cost|0}}}}}|Unknown}}}}
|{{#if:{{{cost|<noinclude>x</noinclude>}}}|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{#iferror:{{#expr:{{{quantity}}} * {{{cost}}}}}|??|{{#expr:{{{quantity}}} * {{{cost}}}}}}}|??}}|??}}
+
|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{{quantity}}}|Unknown}}
|{{#if:{{{distributor|<noinclude>x</noinclude>}}}|{{{distributor}}}|??}}
+
|{{#ifeq:{{{have|}}}|yes|${{format price|0}}|{{#if:{{{cost|<noinclude>x</noinclude>}}}|{{#if:{{{quantity|<noinclude>x</noinclude>}}}|{{#iferror:{{#expr:{{{quantity}}} * {{{cost}}}}}|??|${{format price|{{#expr:{{{quantity}}} * {{{cost}}}}}}}}}|Unknown}}|Unknown}}}}
<noinclude>{{bom-end}}
+
|{{#if:{{{distributor|<noinclude>x</noinclude>}}}|{{#ifexist:{{{distributor}}}|[[{{{distributor}}}]]|{{{distributor}}}}}|Unknown}}<noinclude>
{{documentation}}</noinclude>
+
{{bom-end}}
 +
{{documentation}}[[Category:Table building templates]]</noinclude>

Latest revision as of 19:38, 19 January 2011

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

Usage

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