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: | ||
{| 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:mat2total|0}}{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{| class="wikitable" |
|||
! colspan="4" | Requirements |
! colspan="4" | Requirements |
||
|- |
|- |
||
Line 9: | Line 9: | ||
! XP |
! XP |
||
|- |
|- |
||
| colspan="2" | {{#if:{{{profession|}}}| |
| colspan="2" | {{#if:{{{profession|}}}|{{{profession}}}|{{Unknown}}}} |
||
| style="text-align: center;" | {{#if:{{{level|}}}|{{{level}}}|{{Unknown}}}} |
| style="text-align: center;" | {{#if:{{{level|}}}|{{{level}}}|{{Unknown}}}} |
||
| style="text-align: center;" | {{#if:{{{exp|}}}|{{{exp}}}|{{Unknown}}}} |
| style="text-align: center;" | {{#if:{{{exp|}}}|{{{exp}}}|{{Unknown}}}} |
||
Line 17: | Line 17: | ||
! Cost |
! Cost |
||
|- |
|- |
||
{{#if:{{{mat1|}}}| |
|||
{{!}} [[File:{{{mat1}}}.png|x30px]] |
|||
{{!}} [[{{{mat1}}}]] |
|||
{{!}} style="text-align: right;" {{!}} {{{mat1qty|1}}} |
|||
{{!}} style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:mat1total|{{#expr:{{{mat1qty|1}}} * {{formatnum:{{#ask:[[{{{mat1}}}]]|?Cost=|mainlabel=-}}|R}}}}}}}} |
|||
⚫ | |||
{{!}}- |
|||
}} |
|||
{{#if:{{{mat2|}}}| |
{{#if:{{{mat2|}}}| |
||
{{!}} [[File:{{{mat2}}}.png| |
{{!}} [[File:{{{mat2}}}.png|x30px]] |
||
{{!}} [[{{{mat2}}}]] |
{{!}} [[{{{mat2}}}]] |
||
{{!}} style="text-align: right;" {{!}} {{{mat2qty|1}}} |
{{!}} style="text-align: right;" {{!}} {{{mat2qty|1}}} |
||
{{!}} style="text-align: right;" {{!}} {{ |
{{!}} style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:mat1total|{{#expr:{{{mat2qty|1}}} * {{formatnum:{{#ask:[[{{{mat2}}}]]|?Cost=|mainlabel=-}}|R}}}}}}}} |
||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
! colspan="3" | Total cost |
! colspan="3" | Total cost |
||
| style="text-align: right;" {{!}} {{ |
| style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:totalcost|{{#expr:{{#varexists:mat1total|{{#var:mat1total}}|0}} + {{#varexists:mat2total|{{#var:mat2total}}|0}}}}}}}} |
||
|- |
|- |
||
! colspan="2" | Ouput |
! colspan="2" | Ouput |
||
! Quantity |
! Quantity |
||
! |
! Cost |
||
|- |
|- |
||
{{!}} [[File:{{{output1}}}.png|x30px]] |
|||
{{!}} [[{{{output1}}}]] |
|||
| style="text-align: right;" {{!}} {{{ |
| style="text-align: right;" {{!}} {{{output1|1}}} |
||
| style="text-align: right;" {{!}} {{ |
| style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:output1|{{#expr:{{{output1qty|1}}} * {{formatnum:{{#ask:[[{{{output1}}}]]|?Cost=|mainlabel=-}}|R}}}}}}}} |
||
|- |
|- |
||
! colspan="3" | Profit |
! colspan="3" | Profit |
||
| style="text-align: right;" {{!}} {{ |
| style="text-align: right;" {{!}} {{formatnum:{{#expr:{{#var:output1}} - {{#var:mat1total}}}}}} |
||
⚫ | |||
|}</includeonly><noinclude>{{/doc}}</noinclude> |