Template:Chef/RecipeRow: Difference between revisions

m
Remove deprecated template parameter
(Breaklines now appear at beginning of material entry, so single-ingredient entries are no longer have a blank line and are thus vertically aligned. Also added "+" character as deliminator between raw material entries.)
m (Remove deprecated template parameter)
 
(6 intermediate revisions by 3 users not shown)
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}}<!--
{{!}}-
-->{{#vardefine:RawMaterial3|{{#if:{{{Item|}}}|{{#ask:[[{{{Item}}}]]|?RawMaterial3=|mainlabel=-}}|R}}|0}}<!--
{{!}} {{{Level}}}
-->{{#vardefine:SellValueRawMaterialTotalCost|{{#if:{{{Item|}}}|{{formatnum:{{#ask:[[{{{Item}}}]]|?ValueRawMaterialTotalCost=|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}}}}
{{!}}| {{Currency|{{#exprif:{{#var:SellValueRawMaterialTotalCost}} - |{{Currency|{Cost}{#var:RawMaterialTotalCost}}}}}}
{{!}}| {{Currency|{{#expr:({{#var:SellValue}} - {{{Cost}}})/(200*{{{Experience}}}) round 2}}}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{Currency|{{#expr:{{#var:SellValue}} - {{#var:RawMaterialTotalCost}}}}}}}}
{{!}} {{{ProfitPerHour}}}
| {{#if:{{#var:RawMaterialTotalCost}}|{{#if:{{{Experience|}}}|{{Currency|{{#expr:({{#var:SellValue}} - {{#var:RawMaterialTotalCost}})/(200*{{{Experience}}}) round 2}}}}}}}}
{{!}}| {{{ProfitPerHour}}}</onlyinclude>
|}
<noinclude>{{/doc}}</noinclude>
303

edits