Template:Chef/RecipeRow: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Blank cells if cost is not given)
(Dynamic material cost and profit calculation)
Line 4: Line 4:
-->{{#vardefine:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterialTotalCost|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?RawMaterialTotalCost=|mainlabel=-}}|R}}|0}}}}
| {{{Level}}}
| {{{Level}}}
| {{Plinkt|{{{Item}}}}}
| {{Plinkt|{{{Item}}}}}
Line 12: Line 13:
| {{{ExperienceFirstTime}}}
| {{{ExperienceFirstTime}}}
| {{{ExperiencePerHour}}}
| {{{ExperiencePerHour}}}
| {{#if:{{{Cost|}}}|{{Currency|{{{Cost}}}}}<noinclude>|{{{Cost}}}</noinclude>}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#var:RawMaterialTotalCost}}}}<noinclude>|{{{Cost}}}</noinclude>}}
| {{Currency|{{#var:SellValue}}}}
| {{Currency|{{#var:SellValue}}}}
| {{#if:{{{Cost|}}}|{{Currency|{{#expr:{{#var:SellValue}} - {{{Cost}}}}}}}}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#expr:{{#var:SellValue}} - {{#var:RawMaterialTotalCost}}}}}}}}
| {{#if:{{{Cost|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{{Cost}}})/(200*{{{Experience}}}) round 2}}}}}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{#if:{{{Experience|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{#var:RawMaterialTotalCost}})/(200*{{{Experience}}}) round 2}}}}}}}}
| {{{ProfitPerHour}}}</onlyinclude>
| {{{ProfitPerHour}}}</onlyinclude>
|}
|}