Template:Chef/RecipeRow: Difference between revisions

m
Remove deprecated template parameter
(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><!--
<!-- {{!}} {{Currency|{{#var:mat1cost}}}} <-- TODO: add back in once item handles parsing -->
-->{{#vardefine:mat1costSellValue|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}<!--
{{!}}-
-->{{#vardefine:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}<!--
{{!}} {{{Level}}}
-->{{#vardefine:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}<!--
{{!}} {{Plinkt|{{{Item}}}}}
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}<!--
{{!}} [[{{{Category}}}]]
-->{{#vardefine:RawMaterialTotalCost|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?RawMaterialTotalCost=|mainlabel=-}}|R}}|0}}}}
{{!}} {{Currency|{{#var:mat1cost}}}}
{{!}}| {{Currency|{{{Cost}}Level}}}
{{!}}| {{CurrencyPlinkt|{{#expr:{{{SellValue}}} - {{{Cost}}Item}}}}}
{{!}}| [[{{{ExperienceCategory}}}]]
| {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{!}} {{{ExperienceFirstTime}}}
{{!}}| {{{IngredientsExperience}}}
{{!}}| {{{ExperienceFirstTime}}}
{{#if: {{{ExperiencePerHour|}}} | {{!}} {{{ExperiencePerHour}}} }}
| {{{ExperiencePerHour}}}
{{#if: {{{ProfitPerHour|}}} | {{!}} {{{ProfitPerHour}}} }}
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#var:RawMaterialTotalCost}}}}}}
<noinclude>
{{!}}| {{Currency|{{#var:mat1costSellValue}}}}
<templatedata>
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#expr:{{#var:SellValue}} - {{#var:RawMaterialTotalCost}}}}}}}}
{
| {{#if:{{#var:RawMaterialTotalCost}}|{{#if:{{{Experience|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{#var:RawMaterialTotalCost}})/(200*{{{Experience}}}) round 2}}}}}}}}
"params": {
| {{{ProfitPerHour}}}</onlyinclude>
"Level": {},
|}
"Item": {},
<noinclude>{{/doc}}</noinclude>
"Category": {},
"SellValue": {},
"Cost": {},
"Experience": {},
"ExperienceFirstTime": {},
"Ingredients": {},
"ExperiencePerHour": {},
"ProfitPerHour": {}
}
}
</templatedata>
</noinclude>
303

edits