Template:Carpenter/RecipeRow: Difference between revisions

Currency -> Currency cell
m (Make sure SellValue is not empty)
(Currency -> Currency cell)
 
Line 3:
-->{{#vardefine:SellValue|{{#if:{{{Product|}}}|{{formatnum:{{#ask:[[{{{Product}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}<!--
-->{{#vardefine:SellValue|{{#if:{{#var:SellValue}}|{{#var:SellValue}}|0}}}}
|-
{{!}}-
{{!}}| {{{Level}}}
{{!}}| {{Plinkt|{{{Product}}}|border=no}}
{{!}}| [[{{{Material}}}]]
{{!}}| {{{ExperienceFirstTime}}}
{{!}}| {{{Experience}}}
{{!}}| {{{ExperienceSecondary}}}
{{!}}| {{#vardefineecho:TotalExperience|{{#expr:{{{Experience|0}}} + {{{ExperienceSecondary|0}}} * 2}}}}
{{!}}| {{Currency cell|{{{MatCost<noinclude>|0</noinclude>}}}}}
{{!}}| {{Currency cell|{{{MatCost|0}}} / 2}}
{{!}}| {{Currency cell|{{#var:SellValue}}}}
{{!}}| {{Currency cell|{{{MatCost|0}}} / 2 - {{#var:SellValue}}}}
{{!}}| {{Currency cell|{{#vardefineecho:TotalProfit|{{#expr:{{#var:SellValue}} * 2 - {{{MatCost|0}}}}}}}}}
{{!}}| {{Currency cell|<includeonly>{{#var:TotalProfit}} / {{#var:TotalExperience}} round 2</includeonly>}}</onlyinclude>
|}
{{/doc}}
626

edits