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

no edit summary
No edit summary
No edit summary
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: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:totalcost|0}}
{| class="wikitable"
! colspan="4" | Requirements
Line 46 ⟶ 47:
}}
! colspan="3" | Total Raw cost
| style="text-align: right;" {{!}} {{Currency|{{#vardefineechovar:totalcost|{{#expr:{{#varexists:rawmat1total|{{#var:rawmat1total}}|0}} + {{#varexists:rawmat2total|{{#var:rawmat2total}}|0}} + {{#varexists:rawmat3total|{{#var:rawmat3total}}|0}}}}}}}}
|-
{{#if:{{{preparedmat1|}}}|
526

edits