Editing Template:Carpenter/RecipeRow
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
⚫ | |||
{| class="wikitable" |
|||
{{#vardefine:SellValue|{{#if:{{{Product|}}}|{{formatnum:{{#ask:[[{{{Product}}}]]|?Value=|mainlabel=-}}|R}}|0}}}} |
|||
⚫ | |||
⚫ | |||
-->{{#vardefine:SellValue|{{#if:{{#var:SellValue}}|{{#var:SellValue}}|0}}}} |
|||
{{!}} {{{Level}}} |
|||
|- |
|||
{{!}} {{Plinkt|{{{Product}}}}} |
|||
{{!}} [[{{{Material}}}]] |
|||
{{!}} {{{ExperienceFirstTime}}} |
|||
| [[{{{Material}}}]] |
|||
{{!}} {{{Experience}}} |
|||
{{!}} {{{ExperienceSecondary}}} |
|||
| {{{ExperienceSecondary}}} |
{{!}} {{#vardefineecho:TotalExperience|{{#expr:{{{Experience}}} + {{{ExperienceSecondary}}} * 2}}}} |
||
{{!}} {{Currency|{{{MatCost}}}}} |
|||
| {{#vardefineecho:TotalExperience|{{#expr:{{{Experience|0}}} + {{{ExperienceSecondary|0}}} * 2}}}} |
|||
{{!}} {{Currency|{{#expr:{{{MatCost}}} / 2}}}} |
|||
{{!}} {{Currency|{{#var:SellValue}}}} |
|||
{{!}} {{Currency|{{#expr:{{{MatCost}}} / 2 - {{#var:SellValue}}}}}} |
|||
{{!}} {{Currency|{{#vardefineecho:TotalProfit|{{#expr:{{#var:SellValue}} * 2 - {{{MatCost}}}}}}}}} |
|||
{{!}} {{Currency|{{Round|{{#expr:{{#var:TotalProfit}} / {{#var:TotalExperience}}}}|2}}}} |
|||
<noinclude> |
|||
| {{Currency cell|<includeonly>{{#var:TotalProfit}} / {{#var:TotalExperience}} round 2</includeonly>}}</onlyinclude> |
|||
<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> |