Template:Carpenter/RecipeRow: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(Move templatedata to doc page) |
||
Line 1: | Line 1: | ||
{| class="wikitable" |
|||
{{#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}}}} |
||
{{!}}- |
{{!}}- |
||
{{!}} {{{Level}}} |
{{!}} {{{Level}}} |
||
Line 9: | Line 9: | ||
{{!}} {{{Experience}}} |
{{!}} {{{Experience}}} |
||
{{!}} {{{ExperienceSecondary}}} |
{{!}} {{{ExperienceSecondary}}} |
||
{{!}} {{#vardefineecho:TotalExperience|{{#expr:{{{Experience}}} + {{{ExperienceSecondary}}} * 2}}}} |
{{!}} {{#vardefineecho:TotalExperience|{{#expr:{{{Experience|0}}} + {{{ExperienceSecondary|0}}} * 2}}}} |
||
{{!}} {{Currency|{{{MatCost}}}}} |
{{!}} {{Currency|{{{MatCost<noinclude>|0</noinclude>}}}}} |
||
{{!}} {{Currency| |
{{!}} {{Currency|{{{MatCost|0}}} / 2}} |
||
{{!}} {{Currency|{{#var:SellValue}}}} |
{{!}} {{Currency|{{#var:SellValue}}}} |
||
{{!}} {{Currency| |
{{!}} {{Currency|{{{MatCost|0}}} / 2 - {{#var:SellValue}}}} |
||
{{!}} {{Currency|{{#vardefineecho:TotalProfit|{{#expr:{{#var:SellValue}} * 2 - {{{MatCost}}}}}}}}} |
{{!}} {{Currency|{{#vardefineecho:TotalProfit|{{#expr:{{#var:SellValue}} * 2 - {{{MatCost|0}}}}}}}}} |
||
{{!}} {{Currency| |
{{!}} {{Currency|<includeonly>{{#var:TotalProfit}} / {{#var:TotalExperience}} round 2</includeonly>}}</onlyinclude> |
||
⚫ | |||
<noinclude> |
|||
{{/doc}} |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"Level": { |
|||
"description": "Level required to make the recipe", |
|||
"type": "number" |
|||
}, |
|||
"Product": { |
|||
"description": "Name of the recipe item", |
|||
"type": "string" |
|||
}, |
|||
"Material": { |
|||
"description": "Material needed to make item", |
|||
"type": "string" |
|||
}, |
|||
"MatCost": { |
|||
"description": "Cost of the material when bought from store", |
|||
"type": "number" |
|||
}, |
|||
"ExperienceFirstTime": { |
|||
"description": "Experience gained per item for the first time", |
|||
"type": "number" |
|||
}, |
|||
"Experience": { |
|||
"description": "Experience gained per item", |
|||
"type": "number" |
|||
}, |
|||
"ExperienceSecondary": { |
|||
"description": "Experience gained per item for on secondary processing", |
|||
"type": "number" |
|||
} |
|||
⚫ | |||
} |
|||
</templatedata> |
|||
</noinclude> |
Revision as of 19:39, 19 November 2024
{{{Level}}} | [[File:{{{Product}}}.png|30px|link={{{Product}}}]] | [[{{{Product}}}|{{{Product}}}]] | [[{{{Material}}}]] | {{{ExperienceFirstTime}}} | {{{Experience}}} | {{{ExperienceSecondary}}} | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
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.
|