User:The Gaffer/Sandbox/RecipeCard: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3:
Material1={{{rawmat1}}}
}}
{{#vardefine:rawmat1cost|{{#if:{{{rawmat1|}}}|{{formatnum:{{#ask:[[{{{rawmat1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{{#vardefine:rawmat2cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[{{{rawmat2}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{{#vardefine:rawmat3cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[{{{rawmat2}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{{#vardefine:rawmat2total|0}}{{#vardefine:rawmat3total|0}}{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{| class="wikitable"
{{#vardefine:rawmat2cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[{{{rawmat2}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}
{{#vardefine:rawmat3cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[{{{rawmat2}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}
{{#vardefine:rawmat2total|0}}
{{#vardefine:rawmat3total|0}}
{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}{| class="wikitable"
! colspan="4" | Requirements
|-
Line 47 ⟶ 52:
! Cost
|-
{{#if{{{preparedmat1|}}}|[[File:{{{preparedmat1}}}.png|30px]]|{{unknown}}}}
{{#if{{{preparedmat1|}}}[[{{{preparedmat1}}}]]|{{unknown}}}}
style="text-align: right;" {{!}} {{{preparedmat1qty|1}}}
style="text-align: right" {{!}} {{Currency|{{totalcost|0}}
! colspan="2" | Ouput
! Quantity
Line 72 ⟶ 81:
"output1qty": {},
"rawmat3": {},
"rawmat3qty": {},
"preparedmat1": {},
"preparedmat1qty": {},
"preparedmat2": {},
"preparedmatqty2": {}
},
"paramOrder": [
Line 86 ⟶ 99:
"rawmat2qty",
"rawmat3qty",
"output1qty",
"preparedmat1",
"preparedmat1qty",
"preparedmat2",
"preparedmatqty2"
],
"format": "inline"
526

edits