User:The Gaffer/Sandbox/RecipeCard: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
The Gaffer (talk | contribs) No edit summary |
The Gaffer (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
-->{{#vardefine:rawmat2cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat2}}}]]|?Shop buy price=|mainlabel=-|searchlabel=|limit=1|sort=Shop buy price|order=asc}}|R}}|0}}}}<!-- |
-->{{#vardefine:rawmat2cost|{{#if:{{{rawmat2|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat2}}}]]|?Shop buy price=|mainlabel=-|searchlabel=|limit=1|sort=Shop buy price|order=asc}}|R}}|0}}}}<!-- |
||
-->{{#vardefine:rawmat3cost|{{#if:{{{rawmat3|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat3}}}]]|?Shop buy price=|mainlabel=-|searchlabel=|limit=1|sort=Shop buy price|order=asc}}|R}}|0}}}}<!-- |
-->{{#vardefine:rawmat3cost|{{#if:{{{rawmat3|}}}|{{formatnum:{{#ask:[[Sold item::{{{rawmat3}}}]]|?Shop buy price=|mainlabel=-|searchlabel=|limit=1|sort=Shop buy price|order=asc}}|R}}|0}}}}<!-- |
||
-->{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}} |
-->{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}<!-- |
||
-->{{#vardefine:totalcost|0}} |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! colspan="4" | Requirements |
! colspan="4" | Requirements |
||
Line 46: | Line 47: | ||
}} |
}} |
||
! colspan="3" | Total Raw cost |
! colspan="3" | Total Raw cost |
||
| style="text-align: right;" {{!}} {{Currency|{{# |
| style="text-align: right;" {{!}} {{Currency|{{#var:totalcost|{{#expr:{{#varexists:rawmat1total|{{#var:rawmat1total}}|0}} + {{#varexists:rawmat2total|{{#var:rawmat2total}}|0}} + {{#varexists:rawmat3total|{{#var:rawmat3total}}|0}}}}}}}} |
||
|- |
|- |
||
{{#if:{{{preparedmat1|}}}| |
{{#if:{{{preparedmat1|}}}| |