Template:Carpenter/RecipeRow: Difference between revisions

(Move templatedata to doc page)
(Currency -> Currency cell)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| class="wikitable"
{| class="wikitable"
<onlyinclude>{{#vardefine:BuyValue|{{#if:{{{Material|}}}|{{formatnum:{{#ask:[[{{{Material}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}
<onlyinclude>{{#vardefine:BuyValue|{{#if:{{{Material|}}}|{{formatnum:{{#ask:[[{{{Material}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}<!--
{{#vardefine:SellValue|{{#if:{{{Product|}}}|{{formatnum:{{#ask:[[{{{Product}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}
-->{{#vardefine:SellValue|{{#if:{{{Product|}}}|{{formatnum:{{#ask:[[{{{Product}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}<!--
-->{{#vardefine:SellValue|{{#if:{{#var:SellValue}}|{{#var:SellValue}}|0}}}}
{{!}}-
|-
{{!}} {{{Level}}}
{{!}} {{Plinkt|{{{Product}}}}}
| {{{Level}}}
{{!}} [[{{{Material}}}]]
| {{Plinkt|{{{Product}}}|border=no}}
| [[{{{Material}}}]]
{{!}} {{{ExperienceFirstTime}}}
{{!}} {{{Experience}}}
| {{{ExperienceFirstTime}}}
{{!}} {{{ExperienceSecondary}}}
| {{{Experience}}}
{{!}} {{#vardefineecho:TotalExperience|{{#expr:{{{Experience|0}}} + {{{ExperienceSecondary|0}}} * 2}}}}
| {{{ExperienceSecondary}}}
| {{#vardefineecho:TotalExperience|{{#expr:{{{Experience|0}}} + {{{ExperienceSecondary|0}}} * 2}}}}
{{!}} {{Currency|{{{MatCost<noinclude>|0</noinclude>}}}}}
{{!}} {{Currency|{{{MatCost|0}}} / 2}}
| {{Currency cell|{{{MatCost<noinclude>|0</noinclude>}}}}}
{{!}} {{Currency|{{#var:SellValue}}}}
| {{Currency cell|{{{MatCost|0}}} / 2}}
{{!}} {{Currency|{{{MatCost|0}}} / 2 - {{#var:SellValue}}}}
| {{Currency cell|{{#var:SellValue}}}}
{{!}} {{Currency|{{#vardefineecho:TotalProfit|{{#expr:{{#var:SellValue}} * 2 - {{{MatCost|0}}}}}}}}}
| {{Currency cell|{{{MatCost|0}}} / 2 - {{#var:SellValue}}}}
{{!}} {{Currency|<includeonly>{{#var:TotalProfit}} / {{#var:TotalExperience}} round 2</includeonly>}}</onlyinclude>
| {{Currency cell|{{#vardefineecho:TotalProfit|{{#expr:{{#var:SellValue}} * 2 - {{{MatCost|0}}}}}}}}}
| {{Currency cell|<includeonly>{{#var:TotalProfit}} / {{#var:TotalExperience}} round 2</includeonly>}}</onlyinclude>
|}
|}
{{/doc}}
{{/doc}}

Latest revision as of 17:57, 20 November 2024

{{{Level}}} [[File:{{{Product}}}.png|30px|link={{{Product}}}]] [[{{{Material}}}]] {{{ExperienceFirstTime}}} {{{Experience}}} {{{ExperienceSecondary}}} 0 0 Copper 0 Copper 0 Copper 0 Copper 0 Copper 0 Copper
Template documentation
This documentation is transcluded from Template:Carpenter/RecipeRow/doc. [edit] [history] [purge]

This template does not have any documentation. Please consider adding documentation at Template:Carpenter/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
ProductProduct

Name of the recipe item

Stringoptional
MaterialMaterial

Material needed to make item

Stringoptional
MatCostMatCost

Cost of the material when bought from store

Numberoptional
ExperienceFirstTimeExperienceFirstTime

Experience gained per item for the first time

Numberoptional
ExperienceExperience

Experience gained per item

Numberoptional
ExperienceSecondaryExperienceSecondary

Experience gained per item for on secondary processing

Numberoptional