Template:Chef/RecipeRow: Difference between revisions

m
Remove deprecated template parameter
No edit summary
m (Remove deprecated template parameter)
 
(35 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}}}]]|?Material1=|mainlabel=-}}}}}}
-->{{#vardefine:SellValue|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}<!--
 
-->{{#vardefine:IngredientsExperimentRawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?Material1RawMaterial1=|mainlabel=-}}|R}}|0}}<!--
{{!}}-
-->{{#vardefine:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}<!--
{{!}} {{{Level}}}
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}<!--
{{!}} {{Plinkt|{{{Item}}}}}
-->{{#vardefine:RawMaterialTotalCost|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?RawMaterialTotalCost=|mainlabel=-}}|R}}|0}}}}
{{!}} [[{{{Category}}}]]
{{!}}| {{{Level}}}
{{!}} {{Currency|{{#var:SellValue}}}}
{{!}}| {{CurrencyPlinkt|{{{CostItem}}}}}
{{!}}| [[{{{Category}}}]]
{{!}} {{Currency|{{#expr:{{#var:SellValue}} - {{{Cost}}}}}}}
| {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{!}} {{{Experience}}}
{{!}}| {{{ExperienceFirstTimeExperience}}}
{{!}}| {{{IngredientsExperienceFirstTime}}}
{{#if: {{{ExperiencePerHour|}}} | {{!}} {{{ExperiencePerHour}}} }}
| {{#if: {{{ProfitPerHour|#var:RawMaterialTotalCost}}} | {{!}} Currency|{{{ProfitPerHour#var:RawMaterialTotalCost}}}} }}
{{!}}| {{Currency|{{#var:SellValue}}}}
<!-- {{#if: {{#var:IngredientsExperiment}} | {{!}} {{#var:IngredientsExperiment}} }} -->
| {{!#if:{{#var:RawMaterialTotalCost}} |{{Currency|{{#expr:{{#var:SellValue}} - {{{Cost#var:RawMaterialTotalCost}}}}}}}}
<noinclude>
| {{#if:{{#var:RawMaterialTotalCost}}|{{#if:{{{Experience|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{#var:RawMaterialTotalCost}})/(200*{{{Experience}}}) round 2}}}}}}}}
<templatedata>
| {{{ProfitPerHour}}}</onlyinclude>
{
|}
"params": {
<noinclude>{{/doc}}</noinclude>
"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