Template:Chef/RecipeRow: Difference between revisions

Blank cells if cost is not given
(Reverted previous two changes, attempt to use PLink for ingredients unsuccessful. Still removed + to match other chef table.)
(Blank cells if cost is not given)
Line 1:
{| class="wikitable"
{{#vardefine:SellValue|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}
<onlyinclude><!--
{{#vardefine:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}
-->{{#vardefine:RawMaterial2SellValue|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?RawMaterial2Value=|mainlabel=-}}|R}}|0}}}}<!--
-->{{#vardefine:RawMaterial3RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3RawMaterial1=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterial1RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1RawMaterial2=|mainlabel=-}}|R}}|0}}<!--
{{!}} {{{Level}}}
-->{{#vardefine:SellValueRawMaterial3|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?ValueRawMaterial3=|mainlabel=-}}|R}}|0}}}}
{{!}} {{Plinkt|{{{Item}}}}}
{{!}}| [[{{{CategoryLevel}}}]]
{{!}}| {{Plinkt|{{{Item}}}}}
{{!}} {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{!}}| [[{{{ExperienceCategory}}}]]
{{!}}| {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{!}} {{{ExperienceFirstTime}}}
{{!}}| {{{ExperiencePerHourExperience}}}
{{!}}| {{{ExperienceFirstTime}}}
{{!}} {{Currency|{{{Cost}}}}}
| {{{ExperiencePerHour}}}
{{!}} {{Currency|{{#var:SellValue}}}}
| {{!#if:{{{Cost|}} }|{{Currency|{{#expr:{{#var:SellValueCost}} - }}}<noinclude>|{{{Cost}}}}}</noinclude>}}
{{!}}| {{Currency|{{#expr:({{#var:SellValue}} - {{{Cost}}})/(200*{{{Experience}}}) round 2}}}}
| {{!#if:{{{Cost|}} }|{{Currency|{{#expr:{{#var:SellValue}} - {{{Cost}}}}}}}}}
{{!}} {{{ProfitPerHour}}}
| {{#if:{{{Cost|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{{Cost}}})/(200*{{{Experience}}}) round 2}}}}}}
{{!}}| {{{ProfitPerHour}}}</onlyinclude>
|}
<noinclude>{{/doc}}</noinclude>
626

edits