Template:Chef/RecipeRow: Difference between revisions

m
Remove deprecated template parameter
No edit summary
m (Remove deprecated template parameter)
 
(41 intermediate revisions by 6 users not shown)
Line 1:
{| class="wikitable"
{{#vardefine:SellValue|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}
<onlyinclude><!--
{{#vardefine:IngredientsExperiment|{{#if:{{{Item|}}}|{{#ask: [[{{{Item}}}]]
-->{{#vardefine:SellValue|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}<!--
| ?mat1=
-->{{#vardefine:IngredientsExperimentRawMaterial1|{{#if:{{{Item|}}}|{{#ask: [[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}<!--
| link=none
-->{{#vardefine:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}<!--
| mainlabel=-
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}<!--
}}}}}}
-->{{#vardefine:RawMaterialTotalCost|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?RawMaterialTotalCost=|mainlabel=-}}|R}}|0}}}}
 
| {{!{Level}}}-
| {{!}} Plinkt|{{{LevelItem}}}}}
{{!}}| [[{{Plinkt|{{{Item}}Category}}}]]
| {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{!}} [[{{{Category}}}]]
{{!}}| {{{Experience}}}
{{!}} {{Currency|{{#var:SellValue}}}}
{{!}}| {{{ExperienceFirstTime}}}
{{!}} {{Currency|{{{Cost}}}}}
| {{{ExperiencePerHour}}}
{{!}} {{Currency|{{#expr:{{#var:SellValue}} - {{{Cost}}}}}}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#var:RawMaterialTotalCost}}}}}}
{{!}} {{{Experience}}}
{{!}}| {{Currency|{{#var:SellValue}}}}
{{!}} {{{ExperienceFirstTime}}}
| {{!#if:{{#var:RawMaterialTotalCost}} |{{Currency|{{#expr:{{#var:SellValue}} - {{{Cost#var:RawMaterialTotalCost}}}}}}}}
{{!}} {{{Ingredients}}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{#if:{{{Experience|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{#var:RawMaterialTotalCost}})/(200*{{{Experience}}}) round 2}}}}}}}}
{{#if: {{{ExperiencePerHour|}}} | {{!}} {{{ExperiencePerHour}}} }}
{{#if: {{{ProfitPerHour|}}} | {{!}} {{{ProfitPerHour}}} }}</onlyinclude>
|}
{{#if: {{{IngredientsExperiment|}}} | {{!}} {{{IngredientsExperiment}}} }}
<noinclude>{{/doc}}</noinclude>
<templatedata>
{
"params": {
"Level": {
"description": "Level required to make the recipe",
"type": "number"
},
"Item": {
"description": "Name of the recipe item",
"type": "string"
},
"Category": {
"aliases": [
"Variant"
],
"description": "Variant of the food item",
"type": "string"
},
"Cost": {
"description": "Cost of producing the recipe",
"type": "number"
},
"Experience": {
"aliases": [
"XP"
],
"description": "Experience gained per item",
"type": "number"
},
"ExperienceFirstTime": {
"description": "Experience gained per item for the first time",
"type": "number"
},
"Ingredients": {},
"ExperiencePerHour": {},
"ProfitPerHour": {}
}
}
</templatedata>
</noinclude>
303

edits