Template:Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary Tag: Manual revert |
No edit summary |
||
Line 21: | Line 21: | ||
{{!}} [[{{{mat1}}}]] |
{{!}} [[{{{mat1}}}]] |
||
{{!}} style="text-align: right;" {{!}} {{{mat1qty|1}}} |
{{!}} style="text-align: right;" {{!}} {{{mat1qty|1}}} |
||
{{!}} style="text-align: right;" {{!}} {{ |
{{!}} style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:mat1total|{{#expr:{{{mat1qty|1}}} * {{#if:{{#var:mat1cost}}|{{#var:mat1cost}}|0}}}}}}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
Line 28: | Line 28: | ||
{{!}} [[{{{mat2}}}]] |
{{!}} [[{{{mat2}}}]] |
||
{{!}} style="text-align: right;" {{!}} {{{mat2qty|1}}} |
{{!}} style="text-align: right;" {{!}} {{{mat2qty|1}}} |
||
{{!}} style="text-align: right;" {{!}} {{ |
{{!}} style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:mat2total|{{#expr:{{{mat2qty|1}}} * {{#if:{{#var:mat2cost}}|{{#var:mat2cost}}|0}}}}}}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
! colspan="3" | Total cost |
! colspan="3" | Total cost |
||
| style="text-align: right;" {{!}} {{ |
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:totalcost|{{#expr:{{#varexists:mat1total|{{#var:mat1total}}|0}} + {{#varexists:mat2total|{{#var:mat2total}}|0}}}}}}}} |
||
|- |
|- |
||
! colspan="2" | Ouput |
! colspan="2" | Ouput |
||
Line 41: | Line 41: | ||
{{!}} [[{{{output1}}}]] |
{{!}} [[{{{output1}}}]] |
||
| style="text-align: right;" {{!}} {{{output1qty|1}}} |
| style="text-align: right;" {{!}} {{{output1qty|1}}} |
||
| style="text-align: right;" {{!}} {{ |
| style="text-align: right;" {{!}} {{Currency|{{#vardefineecho:output1costtotal|{{#expr:{{{output1qty|1}}} * {{#if:{{#var:output1cost}}|{{#var:output1cost}}|0}}}}}}}} |
||
|- |
|- |
||
! colspan="3" | Profit |
! colspan="3" | Profit |
||
| style="text-align: right;" {{!}} {{ |
| style="text-align: right;" {{!}} {{Currency|{{#expr:{{#var:output1costtotal}} - {{#var:totalcost}}}}}} |
||
|} |
|} |