Template:Chef/RecipeRow: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(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: 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:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}
-->{{#vardefine:SellValue|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?Value=|mainlabel=-}}|R}}|0}}}}<!--
{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}
-->{{#vardefine:RawMaterial1|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial1=|mainlabel=-}}|R}}|0}}<!--
-->{{#vardefine:RawMaterial2|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial2=|mainlabel=-}}|R}}|0}}<!--
{{!}} {{{Level}}}
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}
{{!}} {{Plinkt|{{{Item}}}}}
{{!}} [[{{{Category}}}]]
| {{{Level}}}
| {{Plinkt|{{{Item}}}}}
{{!}} {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{!}} {{{Experience}}}
| [[{{{Category}}}]]
| {{#if:{{#var:RawMaterial1}}|{{#var:RawMaterial1}}|}}{{#if:{{#var:RawMaterial2}}|<br />{{#var:RawMaterial2}}|}}{{#if:{{#var:RawMaterial3}}|<br />{{#var:RawMaterial3}}|}}
{{!}} {{{ExperienceFirstTime}}}
{{!}} {{{ExperiencePerHour}}}
| {{{Experience}}}
| {{{ExperienceFirstTime}}}
{{!}} {{Currency|{{{Cost}}}}}
| {{{ExperiencePerHour}}}
{{!}} {{Currency|{{#var:SellValue}}}}
{{!}} {{Currency|{{#expr:{{#var:SellValue}} - {{{Cost}}}}}}}
| {{#if:{{{Cost|}}}|{{Currency|{{{Cost}}}}}<noinclude>|{{{Cost}}}</noinclude>}}
{{!}} {{Currency|{{#expr:({{#var:SellValue}} - {{{Cost}}})/(200*{{{Experience}}}) round 2}}}}
| {{Currency|{{#var:SellValue}}}}
| {{#if:{{{Cost|}}}|{{Currency|{{#expr:{{#var:SellValue}} - {{{Cost}}}}}}}}}
{{!}} {{{ProfitPerHour}}}
| {{#if:{{{Cost|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{{Cost}}})/(200*{{{Experience}}}) round 2}}}}}}
| {{{ProfitPerHour}}}</onlyinclude>
|}
<noinclude>{{/doc}}</noinclude>
<noinclude>{{/doc}}</noinclude>