Template:Carpenter/RecipeRow: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (Make sure SellValue is not empty)
(Currency -> Currency cell)
 
Line 3: Line 3:
-->{{#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}}}}
-->{{#vardefine:SellValue|{{#if:{{#var:SellValue}}|{{#var:SellValue}}|0}}}}
|-
{{!}}-
{{!}} {{{Level}}}
| {{{Level}}}
{{!}} {{Plinkt|{{{Product}}}}}
| {{Plinkt|{{{Product}}}|border=no}}
{{!}} [[{{{Material}}}]]
| [[{{{Material}}}]]
{{!}} {{{ExperienceFirstTime}}}
| {{{ExperienceFirstTime}}}
{{!}} {{{Experience}}}
| {{{Experience}}}
{{!}} {{{ExperienceSecondary}}}
| {{{ExperienceSecondary}}}
{{!}} {{#vardefineecho:TotalExperience|{{#expr:{{{Experience|0}}} + {{{ExperienceSecondary|0}}} * 2}}}}
| {{#vardefineecho:TotalExperience|{{#expr:{{{Experience|0}}} + {{{ExperienceSecondary|0}}} * 2}}}}
{{!}} {{Currency|{{{MatCost<noinclude>|0</noinclude>}}}}}
| {{Currency cell|{{{MatCost<noinclude>|0</noinclude>}}}}}
{{!}} {{Currency|{{{MatCost|0}}} / 2}}
| {{Currency cell|{{{MatCost|0}}} / 2}}
{{!}} {{Currency|{{#var:SellValue}}}}
| {{Currency cell|{{#var:SellValue}}}}
{{!}} {{Currency|{{{MatCost|0}}} / 2 - {{#var:SellValue}}}}
| {{Currency cell|{{{MatCost|0}}} / 2 - {{#var:SellValue}}}}
{{!}} {{Currency|{{#vardefineecho:TotalProfit|{{#expr:{{#var:SellValue}} * 2 - {{{MatCost|0}}}}}}}}}
| {{Currency cell|{{#vardefineecho:TotalProfit|{{#expr:{{#var:SellValue}} * 2 - {{{MatCost|0}}}}}}}}}
{{!}} {{Currency|<includeonly>{{#var:TotalProfit}} / {{#var:TotalExperience}} round 2</includeonly>}}</onlyinclude>
| {{Currency cell|<includeonly>{{#var:TotalProfit}} / {{#var:TotalExperience}} round 2</includeonly>}}</onlyinclude>
|}
|}
{{/doc}}
{{/doc}}