Difference between revisions of "Template:Trading Value Table Row"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | {{#ifeq: {{{?Type}}} | Furniture | {{#vardefine:multiplier | 0.7}} | {{#vardefine:multiplier | 1}} }} | ||
+ | |||
+ | {{#if: {{{?Tags}}}|| | ||
+ | {{#ifeq: {{{?Resource1}}}|{{{?Material}}}| | ||
+ | ! style="text-align: left" | [[{{{?Name}}}]] | ||
+ | | {{#var:amount}}{{icon|{{{?Material}}} }} | ||
+ | | {{#if: {{{?Resource2}}} | {{{?Amount2}}}{{icon|{{{?Resource2}}} }} | - }} | ||
+ | | {{ticks/minutes|{{Q|{{{?Name}}}|Work To Make}}*{{Q|{{{?Material}}}|Work To Build Factor}}}} | ||
+ | | [[{{{?Skill}}}]] | ||
+ | | {{Market Value Calculator|{{{?Name}}}|{{{?Material}}} }}{{icon|silver}} | ||
+ | | {{#var:multiplier}} | ||
+ | | {{ticks/seconds|{{#expr:{{formatnum:{{Q|{{{?Name}}}|Work To Make}}|R}}*{{Q|{{{?Material}}}|Work To Build Factor}}/({{#var:multiplier}}*{{Market Value Calculator|{{{?Name}}}|{{{?Material}}} }})round2}}}} | ||
+ | | {{#expr:{{Q|{{{?Name}}}|Resource 1 Amount}}/({{#var:multiplier}}*{{Market Value Calculator|{{{?Name}}}|{{{?Material}}} }})round2}} | ||
+ | |- | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | <!-- | ||
<includeonly> | <includeonly> | ||
{{#ifeq: {{Q|{{{?Name}}}|Type}} | Furniture | {{#vardefine:multiplier | 0.7}}{{#vardefine:work | [[Construction]]}} | {{#vardefine:multiplier | 1}}{{#vardefine:work | -}} }} | {{#ifeq: {{Q|{{{?Name}}}|Type}} | Furniture | {{#vardefine:multiplier | 0.7}}{{#vardefine:work | [[Construction]]}} | {{#vardefine:multiplier | 1}}{{#vardefine:work | -}} }} | ||
Line 6: | Line 24: | ||
{{#vardefine:amount | {{#expr:{{Q|{{{?Name}}}|Resource 1 Amount}} + {{#ifeq: {{Q|{{{?Name}}}|Resource 2}}|{{#var:material}}|{{Q|{{{?Name}}}|Resource 2 Amount}}|0}} }} }} | {{#vardefine:amount | {{#expr:{{Q|{{{?Name}}}|Resource 1 Amount}} + {{#ifeq: {{Q|{{{?Name}}}|Resource 2}}|{{#var:material}}|{{Q|{{{?Name}}}|Resource 2 Amount}}|0}} }} }} | ||
{{#vardefine:others | {{#ifeq: {{Q|{{{?Name}}}|Resource 2}} | {{#var:material}} || {{Q|{{{?Name}}}|Resource 2 Amount||{{icon|{{Q|{{{?Name}}}|Resource 2}}}}}} }} {{#if: {{Q|{{{?Name}}}|Resource 3}} | {{Q|{{{?Name}}}|Resource 3 Amount||{{icon|{{Q|{{{?Name}}}|Resource 3}}}}}} }} }} | {{#vardefine:others | {{#ifeq: {{Q|{{{?Name}}}|Resource 2}} | {{#var:material}} || {{Q|{{{?Name}}}|Resource 2 Amount||{{icon|{{Q|{{{?Name}}}|Resource 2}}}}}} }} {{#if: {{Q|{{{?Name}}}|Resource 3}} | {{Q|{{{?Name}}}|Resource 3 Amount||{{icon|{{Q|{{{?Name}}}|Resource 3}}}}}} }} }} | ||
− | |||
! style="text-align: left" | [[{{{?Name}}}]] | ! style="text-align: left" | [[{{{?Name}}}]] | ||
| {{#var:amount}}{{icon|{{#var:material}}}} | | {{#var:amount}}{{icon|{{#var:material}}}} | ||
Line 24: | Line 41: | ||
{{#sub:Stuff Tags|{{#pos:Stuff Tags|{{#var:name}}}}|{{#pos:Stuff Tags|{{#var:name}}|{{#len:{{#var:name}}}}}}}} | {{#sub:Stuff Tags|{{#pos:Stuff Tags|{{#var:name}}}}|{{#pos:Stuff Tags|{{#var:name}}|{{#len:{{#var:name}}}}}}}} | ||
</noinclude> | </noinclude> | ||
+ | --> |
Revision as of 12:36, 4 June 2021