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 1: | Line 1: | ||
<includeonly><!-- |
<includeonly><!-- |
||
Setting up variables for materials and their costs |
|||
-->{{#if:{{{rawmat1|}}}|{{#set:RawMaterial1={{{rawmat1}}}}}}}<!-- |
-->{{#if:{{{rawmat1|}}}|{{#set:RawMaterial1={{{rawmat1}}}}}}}<!-- |
||
-->{{#if:{{{rawmat2|}}}|{{#set:RawMaterial2={{{rawmat2}}}}}}}<!-- |
-->{{#if:{{{rawmat2|}}}|{{#set:RawMaterial2={{{rawmat2}}}}}}}<!-- |
||
Line 6: | 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:rawmat2total|0}}<!-- |
|||
-->{{#vardefine:rawmat3total|0}}<!-- |
|||
-->{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}} |
-->{{#vardefine:output1cost|{{#if:{{{output1|}}}|{{formatnum:{{#ask:[[{{{output1}}}]]|?Value=|mainlabel=-}}|R}}|0}}}} |
||
{| class="wikitable" |
{| class="wikitable" |