Template:Chef/RecipeRow: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Blank cells if cost is not given) |
(Dynamic material cost and profit calculation) |
||
Line 4: | Line 4: | ||
-->{{#vardefine:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}<!-- |
-->{{#vardefine:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}<!-- |
||
-->{{#vardefine:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}<!-- |
-->{{#vardefine:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}<!-- |
||
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}} |
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}<!-- |
||
-->{{#vardefine:RawMaterialTotalCost|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?RawMaterialTotalCost=|mainlabel=-}}|R}}|0}}}} |
|||
| {{{Level}}} |
| {{{Level}}} |
||
| {{Plinkt|{{{Item}}}}} |
| {{Plinkt|{{{Item}}}}} |
||
Line 12: | Line 13: | ||
| {{{ExperienceFirstTime}}} |
| {{{ExperienceFirstTime}}} |
||
| {{{ExperiencePerHour}}} |
| {{{ExperiencePerHour}}} |
||
| {{#if:{{ |
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#var:RawMaterialTotalCost}}}}<noinclude>|{{{Cost}}}</noinclude>}} |
||
| {{Currency|{{#var:SellValue}}}} |
| {{Currency|{{#var:SellValue}}}} |
||
| {{#if:{{ |
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#expr:{{#var:SellValue}} - {{#var:RawMaterialTotalCost}}}}}}}} |
||
| {{#if:{{{ |
| {{#if:{{#var:RawMaterialTotalCost}}|{{#if:{{{Experience|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{#var:RawMaterialTotalCost}})/(200*{{{Experience}}}) round 2}}}}}}}} |
||
| {{{ProfitPerHour}}}</onlyinclude> |
| {{{ProfitPerHour}}}</onlyinclude> |
||
|} |
|} |
Revision as of 02:09, 20 November 2024
{{{Level}}} | [[File:{{{Item}}}.png|30px|link={{{Item}}}]] | [[{{{Item}}}|{{{Item}}}]] | [[{{{Category}}}]] | R R R |
{{{Experience}}} | {{{ExperienceFirstTime}}} | {{{ExperiencePerHour}}} | 0 | 0 | 0 | {{{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.
|