Template:Infobox Recipe: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
The Gaffer (talk | contribs) (Fixed wording Prepared Ingredient -> Intermediate Ingredient) |
Californ1a (talk | contribs) m (fix template adding additional prepending line breaks) |
||
Line 2: | Line 2: | ||
{{#set: |
{{#set: |
||
Material1={{{rawmat1}}} |
Material1={{{rawmat1}}} |
||
}} |
}}<!-- |
||
{{#vardefine:rawmat1cost|{{#if:{{{rawmat1|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat1}}}]]|?Shop buy price=|mainlabel=-}}|R}}|0}}}} |
-->{{#vardefine:rawmat1cost|{{#if:{{{rawmat1|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat1}}}]]|?Shop buy price=|mainlabel=-}}|R}}|0}}}}<!-- |
||
{{#vardefine:rawmat2cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat2}}}]]|?Shop buy price=|mainlabel=-}}|R}}|0}}}} |
-->{{#vardefine:rawmat2cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat2}}}]]|?Shop buy price=|mainlabel=-}}|R}}|0}}}}<!-- |
||
{{#vardefine:rawmat3cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat2}}}]]|?Shop buy price=|mainlabel=-}}|R}}|0}}}} |
-->{{#vardefine:rawmat3cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat2}}}]]|?Shop buy price=|mainlabel=-}}|R}}|0}}}}<!-- |
||
{{#vardefine:rawmat2total|0}} |
-->{{#vardefine:rawmat2total|0}}<!-- |
||
{{#vardefine:rawmat3total|0}} |
-->{{#vardefine:rawmat3total|0}}<!-- |
||
{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{| class="wikitable" |
-->{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{| class="wikitable" |
||
! colspan="4" | Requirements |
! colspan="4" | Requirements |
||
|- |
|- |
||
Line 88: | Line 88: | ||
! 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}}< |
|}</includeonly><noinclude>{{/doc}}</noinclude> |
||
{ |
|||
"params": { |
|||
"rawmat1": {}, |
|||
"rawmat2": {}, |
|||
"output1": {}, |
|||
"facility": {}, |
|||
"profession": {}, |
|||
"level": {}, |
|||
"exp": {}, |
|||
"rawmat1qty": {}, |
|||
"rawmat2qty": {}, |
|||
"output1qty": {}, |
|||
"rawmat3": {}, |
|||
"rawmat3qty": {}, |
|||
"preparedmat1": {}, |
|||
"preparedmat1qty": {}, |
|||
"preparedmat2": {}, |
|||
"preparedmat2qty": {}, |
|||
"preparedmat1fac": {}, |
|||
"preparedmat2fac": {}, |
|||
"preparedmat3": {}, |
|||
"preparedmat3qty": {}, |
|||
"preparedmat3fac": {} |
|||
}, |
|||
"paramOrder": [ |
|||
"facility", |
|||
"profession", |
|||
"level", |
|||
"exp", |
|||
"rawmat1", |
|||
"rawmat1qty", |
|||
"rawmat2", |
|||
"rawmat2qty", |
|||
"rawmat3", |
|||
"rawmat3qty", |
|||
"preparedmat1", |
|||
"preparedmat1qty", |
|||
"preparedmat1fac", |
|||
"preparedmat2", |
|||
"preparedmat2qty", |
|||
"preparedmat2fac", |
|||
"preparedmat3", |
|||
"preparedmat3qty", |
|||
"preparedmat3fac", |
|||
"output1", |
|||
"output1qty" |
|||
], |
|||
"format": "block" |
|||
} |
|||
</templatedata></noinclude> |