Template:Chef/RecipeRow: Difference between revisions

m (Undo revision 15419 by Californ1a (talk))
Tag: Undo
m (Remove deprecated template parameter)
 
(33 intermediate revisions by 5 users not shown)
Line 1: 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:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|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}}}}
{{!}} {{Currency|{{{Cost}}}}}
| {{Plinkt|{{{Item}}}}}
| [[{{{Category}}}]]
{{!}} {{Currency|{{#expr:{{#var:SellValue}} - {{{Cost}}}}}}}
| {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{!}} {{{Experience}}}
{{!}} {{{ExperienceFirstTime}}}
| {{{Experience}}}
{{!}} {{{Ingredients}}}
| {{{ExperienceFirstTime}}}
{{#if: {{{ExperiencePerHour|}}} | {{!}} {{{ExperiencePerHour}}} }}
| {{{ExperiencePerHour}}}
{{#if: {{{ProfitPerHour|}}} | {{!}} {{{ProfitPerHour}}} }}
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#var:RawMaterialTotalCost}}}}}}
| {{Currency|{{#var:SellValue}}}}
<!-- {{#if: {{#var:IngredientsExperiment}} | {{!}} {{#var:IngredientsExperiment}} }} -->
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#expr:{{#var:SellValue}} - {{#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>

Latest revision as of 02:16, 20 November 2024

{{{Level}}} [[File:{{{Item}}}.png|30px|link={{{Item}}}]] [[{{{Category}}}]] R
R
R
{{{Experience}}} {{{ExperienceFirstTime}}} {{{ExperiencePerHour}}} Copper Copper Copper {{{ProfitPerHour}}}
Template documentation
This documentation is transcluded from Template:Chef/RecipeRow/doc. [edit] [history] [purge]

This template does not have any documentation. Please consider adding documentation at Template:Chef/RecipeRow/doc. [edit]

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
LevelLevel

Level required to make the recipe

Numberoptional
ItemItem

Name of the recipe item

Stringoptional
CategoryCategory Variant

Variant of the food item

Stringoptional
CostCost

Cost of producing the recipe

Numberoptional
ExperienceExperience XP

Experience gained per item

Numberoptional
ExperienceFirstTimeExperienceFirstTime

Experience gained per item for the first time

Numberoptional
IngredientsIngredients

no description

Unknownoptional
ExperiencePerHourExperiencePerHour

no description

Unknownoptional
ProfitPerHourProfitPerHour

no description

Unknownoptional