Template:Chef/RecipeRow: Difference between revisions
m
Remove deprecated template parameter
ChefAnhSung (talk | contribs) (now use the item's value as sell value) |
m (Remove deprecated template parameter) |
||
(47 intermediate revisions by 6 users not shown) | |||
Line 1:
{| class="wikitable"
{{#vardefine:mat1cost|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}▼
<onlyinclude><!--
▲-->{{#vardefine:
-->{{#vardefine:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterialTotalCost|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?RawMaterialTotalCost=|mainlabel=-}}|R}}|0}}}}
{{!}} {{Currency|{{#var:mat1cost}}}}▼
| {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{!}} {{{ExperienceFirstTime}}}▼
| {{{ExperiencePerHour}}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#var:RawMaterialTotalCost}}}}}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#expr:{{#var:SellValue}} - {{#var:RawMaterialTotalCost}}}}}}}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{#if:{{{Experience|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{#var:RawMaterialTotalCost}})/(200*{{{Experience}}}) round 2}}}}}}}}
| {{{ProfitPerHour}}}</onlyinclude>
<noinclude>{{/doc}}</noinclude>
▲ }
|