Template:Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
The Gaffer (talk | contribs) No edit summary |
Microbrews (talk | contribs) m (fix third mat param) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:mat1cost|{{#if:{{{mat1|}}}|{{formatnum:{{#ask:[[{{{mat1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{{#vardefine:mat2cost|{{#if:{{{mat2|}}}|{{formatnum:{{#ask:[[{{{mat2}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{{#vardefine:mat2total|0}}{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{| class="wikitable" |
<includeonly>{{#vardefine:mat1cost|{{#if:{{{mat1|}}}|{{formatnum:{{#ask:[[{{{mat1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{{#vardefine:mat2cost|{{#if:{{{mat2|}}}|{{formatnum:{{#ask:[[{{{mat2}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{{#vardefine:mat3cost|{{#if:{{{mat2|}}}|{{formatnum:{{#ask:[[{{{mat2}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{{#vardefine:mat2total|0}}{{#vardefine:mat3total|0}}{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{| class="wikitable" |
||
! colspan="4" | Requirements |
! colspan="4" | Requirements |
||
|- |
|- |
||
Line 33: | Line 33: | ||
{{!}} [[{{{mat3}}}]] |
{{!}} [[{{{mat3}}}]] |
||
{{!}} style="text-align: right;" {{!}} {{{mat3qty|1}}} |
{{!}} style="text-align: right;" {{!}} {{{mat3qty|1}}} |
||
{{!}} style="text-align: right;" {{!}} {{Currency|{{#vardefineecho: |
{{!}} style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:mat3total|{{#expr:{{{mat3qty|1}}} * {{#if:{{#var:mat3cost}}|{{#var:mat3cost}}|0}}}}}}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
! colspan="3" | Total cost |
! colspan="3" | Total cost |
||
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:totalcost|{{#expr:{{#varexists:mat1total|{{#var:mat1total}}|0}} + {{#varexists:mat2total|{{#var:mat2total}}|0}}}}}}}} |
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:totalcost|{{#expr:{{#varexists:mat1total|{{#var:mat1total}}|0}} + {{#varexists:mat2total|{{#var:mat2total}}|0}} + {{#varexists:mat3total|{{#var:mat3total}}|0}}}}}}}} |
||
|- |
|- |
||
! colspan="2" | Ouput |
! colspan="2" | Ouput |