Editing Template:Trading Value Table Row
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 52: | Line 52: | ||
}} | }} | ||
− | + | {{#vardefine:work | {{#switch: {{{?Type}}} | |
− | {{#vardefine:work | + | | Furniture | Structure | Production | Buildings | Building | Security | Misc | Floor | Temperature | Power | Ship = {{#expr: {{formatnum:{{{?Work}}}|R}} * {{#var:buildfactor}} + {{#var:buildoffset}} round 0}} |
− | + | | #default = {{#expr: {{formatnum:{{{?Work}}}|R}} * {{#var:makefactor}} / {{#var:productAmount}} round 0}} | |
− | + | }} }} | |
− | |||
− | |||
− | |||
− | |||
{{#vardefine:value | {{formatnum: {{#ifeq: {{{?R1}}} | Stuff | {{#if: {{#var:isstuff}} | {{Market Value Calculator|{{{?Name}}}|{{#var:material}}}} | {{Market Value Calculator|{{{?Name}}}|wood}} }} | {{{?Value}}} }} |R}} }} | {{#vardefine:value | {{formatnum: {{#ifeq: {{{?R1}}} | Stuff | {{#if: {{#var:isstuff}} | {{Market Value Calculator|{{{?Name}}}|{{#var:material}}}} | {{Market Value Calculator|{{{?Name}}}|wood}} }} | {{{?Value}}} }} |R}} }} | ||
Line 90: | Line 86: | ||
! style="text-align: left" | {{DLC Icons|{{{?Name}}}}} | ! style="text-align: left" | {{DLC Icons|{{{?Name}}}}} | ||
− | | {{formatnum: {{#var:amount}} }} | + | | {{formatnum: {{#var:amount}} }} {{Icon Small|{{#var:material}} }} {{#if: {{#var:isstuff}} | ({{formatnum: {{#expr: {{#var:R1a}} * {{#var:volume}} }} }} {{Icon Small|Stuff}}) }} |
| {{#ifeq: {{#var:others}} || – | {{#var:others}} }} | | {{#ifeq: {{#var:others}} || – | {{#var:others}} }} | ||
− | | {{# | + | | {{#if: {{#pos: {{lc:{{Q|{{{?Name}}}|Production Facility 1}} }} | mech gestator}} | – | {{Align Ticks| {{#var:work}} }} }} |
| {{#var:skill}} | | {{#var:skill}} | ||
− | | {{Align Silver| {{#var:value}} }} | + | | {{Align Silver| {{#var:value}} }} {{Icon Small|silver}}{{#var:note}} |
| {{#ifeq: {{#var:sellable}} | true | {{#var:multiplier}} | – }} | | {{#ifeq: {{#var:sellable}} | true | {{#var:multiplier}} | – }} | ||
+ | | {{#if: {{#pos: {{lc:{{Q|{{{?Name}}}|Production Facility 1}} }} | mech gestator}} | – | {{#ifeq: {{#var:sellable}} | true | {{Align Ticks| {{#expr: {{#var:work}}/({{#var:multiplier}}*{{#var:value}}) round 2}} | 3 }}{{#var:note}} }} | – }} | ||
| {{#ifeq: {{#var:sellable}} | true | {{#expr: {{#var:multiplier}}*{{#var:value}}/{{#var:resourceCost}} round 2}}{{#var:note}} | – }} | | {{#ifeq: {{#var:sellable}} | true | {{#expr: {{#var:multiplier}}*{{#var:value}}/{{#var:resourceCost}} round 2}}{{#var:note}} | – }} | ||
|- | |- | ||
</includeonly><noinclude>{{Documentation}}{{Trading Value Table|Psychoid leaves}}{{Trading Value Table|Neutroamine}}{{Trading Value Table|Wort}}{{Trading Value Table|Hops}}</noinclude> | </includeonly><noinclude>{{Documentation}}{{Trading Value Table|Psychoid leaves}}{{Trading Value Table|Neutroamine}}{{Trading Value Table|Wort}}{{Trading Value Table|Hops}}</noinclude> |