Editing Template:Infobox Recipe
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
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" |
|||
! colspan="4" | Requirements |
! colspan="4" | Requirements |
||
|- |
|- |
||
Line 17: | Line 17: | ||
! Cost |
! Cost |
||
|- |
|- |
||
{{#if:{{{mat1|}}}| |
|||
{{!}} [[File:{{{mat1}}}.png|30px]] |
|||
{{!}} [[{{{mat1}}}]] |
|||
{{!}} style="text-align: right;" {{!}} {{{mat1qty|1}}} |
|||
{{!}} style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:mat1total|{{#expr:{{{mat1qty|1}}} * {{#if:{{#var:mat1cost}}|{{#var:mat1cost}}|0}}}}}}}} |
|||
⚫ | |||
{{!}}- |
|||
}} |
|||
{{#if:{{{mat2|}}}| |
{{#if:{{{mat2|}}}| |
||
{{!}} [[File:{{{mat2}}}.png|30px]] |
{{!}} [[File:{{{mat2}}}.png|30px]] |
||
Line 30: | Line 32: | ||
}} |
}} |
||
! colspan="3" | Total cost |
! colspan="3" | Total cost |
||
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:totalcost|{{#expr: |
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:totalcost|{{#expr:{{#var:mat1total}} + {{#var:mat2total}}}}}}}} |
||
|- |
|- |
||
! colspan="2" | Ouput |
! colspan="2" | Ouput |
||
Line 36: | Line 38: | ||
! Value |
! Value |
||
|- |
|- |
||
{{!}} [[File:{{{output1}}}.png|30px]] |
|||
{{!}} [[{{{output1}}}]] |
|||
| style="text-align: right;" {{!}} {{{output1qty|1}}} |
| style="text-align: right;" {{!}} {{{output1qty|1}}} |
||
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:output1costtotal|{{#expr:{{{output1qty|1}}} * {{#if:{{#var:output1cost}}|{{#var:output1cost}}|0}}}}}}}} |
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:output1costtotal|{{#expr:{{{output1qty|1}}} * {{#if:{{#var:output1cost}}|{{#var:output1cost}}|0}}}}}}}} |
||
Line 43: | Line 45: | ||
! colspan="3" | Profit |
! colspan="3" | Profit |
||
| style="text-align: right;" {{!}} {{Currency|{{#expr:{{#var:output1costtotal}} - {{#var:totalcost}}}}}} |
| style="text-align: right;" {{!}} {{Currency|{{#expr:{{#var:output1costtotal}} - {{#var:totalcost}}}}}} |
||
⚫ | |||
|}</includeonly><noinclude>{{/doc}}</noinclude> |