Template:Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:mat1cost|{{formatnum:{{#ask:[[{{{mat1}}}]]|?Value=|mainlabel=-}}|R}}}}{{#vardefine:mat2cost|{{formatnum:{{#ask:[[{{{mat2}}}]]|?Value=|mainlabel=-}}|R}}}}{{#vardefine:output1cost|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}}}{| class="wikitable" |
{{#vardefine:mat1cost|{{formatnum:{{#ask:[[{{{mat1}}}]]|?Value=|mainlabel=-}}|R}}}}{{#vardefine:mat2cost|{{#if:{{{mat2|}}}|{{formatnum:{{#ask:[[{{{mat2}}}]]|?Value=|mainlabel=-}}|R}}|0}}{{#vardefine:output1cost|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}}}{| class="wikitable" |
||
! colspan="4" | Requirements |
! colspan="4" | Requirements |
||
|- |
|- |
||
Line 32: | Line 32: | ||
}} |
}} |
||
! colspan="3" | Total cost |
! colspan="3" | Total cost |
||
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:totalcost|{{#expr:{{#varexists:mat1total|{{#var:mat1total}}|0}} |
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:totalcost|{{#expr:{{#varexists:mat1total|{{#var:mat1total}}|0}} + {{#varexists:mat2total|{{#var:mat2total}}|0}}}}}}}} |
||
|- |
|- |
||
! colspan="2" | Ouput |
! colspan="2" | Ouput |