Template:Infobox Recipe: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
{{#vardefine:mat1cost|{{formatnum:{{#ask:[[{{{mat1}}}]]|?Cost=|mainlabel=-}}|R}}}}
{{#vardefine:mat2cost|{{formatnum:{{#ask:[[{{{mat2}}}]]|?Cost=|mainlabel=-}}|R}}}}
{{#vardefine:output1cost|{{formatnum:{{#ask:[[{{{output1}}}]]|?Cost=|mainlabel=-}}|R}}}}
{| class="wikitable"
{| class="wikitable"
! colspan="4" | Requirements
! colspan="4" | Requirements
Line 21: Line 24:
{{!}} [[{{{mat1}}}]]
{{!}} [[{{{mat1}}}]]
{{!}} style="text-align: right;" {{!}} {{{mat1qty|1}}}
{{!}} style="text-align: right;" {{!}} {{{mat1qty|1}}}
{{!}} style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:mat1total|{{#expr:{{{mat1qty|1}}} * {{formatnum:{{#ask:[[{{{mat1}}}]]|?Cost=|mainlabel=-}}|R}}}}}}}}
{{!}} style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:mat1total|{{#expr:{{{mat1qty|1}}} * {{#if:{{#var:mat1cost}}|{{#var:mat1cost}}|0}}}}}}}}
{{!}}-
{{!}}-
}}
}}
Line 28: Line 31:
{{!}} [[{{{mat2}}}]]
{{!}} [[{{{mat2}}}]]
{{!}} style="text-align: right;" {{!}} {{{mat2qty|1}}}
{{!}} style="text-align: right;" {{!}} {{{mat2qty|1}}}
{{!}} style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:mat1total|{{#expr:{{{mat2qty|1}}} * {{formatnum:{{#ask:[[{{{mat2}}}]]|?Cost=|mainlabel=-}}|R}}}}}}}}
{{!}} style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:mat2total|{{#expr:{{{mat2qty|1}}} * {{#if:{{#var:mat2cost}}|{{#var:mat2cost}}|0}}}}}}}}
{{!}}-
{{!}}-
}}
}}
Line 41: Line 44:
{{!}} [[{{{output1}}}]]
{{!}} [[{{{output1}}}]]
| style="text-align: right;" {{!}} {{{output1qty|1}}}
| style="text-align: right;" {{!}} {{{output1qty|1}}}
| style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:output1|{{#expr:{{{output1qty|1}}} * {{formatnum:{{#ask:[[{{{output1}}}]]|?Cost=|mainlabel=-}}|R}}}}}}}}
| style="text-align: right;" {{!}} {{formatnum:{{#vardefineecho:output1costtotal|{{#expr:{{{output1qty|1}}} * {{#if:{{#var:output1cost}}|{{#var:output1cost}}|0}}}}}}}}
|-
|-
! colspan="3" | Profit
! colspan="3" | Profit
| style="text-align: right;" {{!}} {{formatnum:{{#expr:{{#var:output1}} - {{#var:mat1total}}}}}}
| style="text-align: right;" {{!}} {{formatnum:{{#expr:{{#var:output1costtotal}} - {{#var:mat1total}}}}}}
|}
|}

Revision as of 21:58, 5 November 2024


Requirements
Facility Unknown (edit)
Profession Level XP
Unknown (edit) Unknown (edit) Unknown (edit)
Material Quantity Cost
Total cost 0
Ouput Quantity Cost
[[File:{{{output1}}}.png|30px]] [[{{{output1}}}]] 1 0
Profit Expression error: Missing operand for -.