Template:Infobox Recipe: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
{{#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
|-
Line 32:
}}
! colspan="3" | Total cost
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:totalcost|{{#expr:{{#varexists:mat1total|{{#var:mat1total}}|0}} <!--+ {{#varexists:mat2total|{{#var:mat2total}}|0}}-->}}}}}}
|-
! colspan="2" | Ouput