Template:Chef/RecipeRow: Difference between revisions

m
Remove deprecated template parameter
(derive sell value from item)
m (Remove deprecated template parameter)
 
(64 intermediate revisions by 6 users not shown)
Line 1:
{| class="wikitable"
{{!}}-
<onlyinclude><!--
{{!}} {{{Level}}}
-->{{#vardefine:SellValue|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}<!--
{{!}} {{{Item}}}
-->{{#vardefine:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}<!--
{{!}} [[{{{Category}}}]]
-->{{!#vardefine:RawMaterial2|{{#if:{{{Item|}} }|{{Currency|#ask:[[{{{Item}}}]]|?ValueRawMaterial2=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}<!--
{{!}} {{Currency|{{{Cost}}}}}
-->{{#vardefine:RawMaterialTotalCost|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?RawMaterialTotalCost=|mainlabel=-}}|R}}|0}}}}
{{!}} {{Currency|{{#expr:{{{SellValue}}} - {{{Cost}}}}}}}
{{!}}| {{{ExperienceLevel}}}
| {{!}} Plinkt|{{{ExperienceFirstTimeItem}}}}}
{{!}}| [[{{{IngredientsCategory}}}]]
| {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{#if: {{{ExperiencePerHour|}}} | {{!}} {{{ExperiencePerHour}}} }}
| {{{Experience}}}
{{#if: {{{ProfitPerHour|}}} | {{!}} {{{ProfitPerHour}}} }}
| {{{ExperienceFirstTime}}}
<noinclude>
| {{{ExperiencePerHour}}}
<templatedata>
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#var:RawMaterialTotalCost}}}}}}
{
{{!}}| {{Currency|{{{Cost}#var:SellValue}}}}
"params": {
| {{!#if:{{#var:RawMaterialTotalCost}} |{{Currency|{{#expr:{{{#var:SellValue}}} - {{{Cost#var:RawMaterialTotalCost}}}}}}}}
"Level": {},
| {{#if:{{#var:RawMaterialTotalCost}}|{{#if:{{{Experience|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{#var:RawMaterialTotalCost}})/(200*{{{Experience}}}) round 2}}}}}}}}
"Item": {},
| {{{ProfitPerHour}}}</onlyinclude>
"Category": {},
|}
"SellValue": {},
<noinclude>{{/doc}}</noinclude>
"Cost": {},
"Experience": {},
"ExperienceFirstTime": {},
"Ingredients": {},
"ExperiencePerHour": {},
"ProfitPerHour": {}
}
}
</templatedata>
</noinclude>
303

edits