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}}
  | {{#switch: {{Q|{{{?Name}}}|Production Facility 1}}
+
  | #default = {{#expr: {{formatnum:{{{?Work}}}|R}} * {{#var:makefactor}} / {{#var:productAmount}} round 0}}
    | Large mech gestator | Mech gestator | War queen = false
+
}} }}
    | #default = {{#switch: {{{?Type}}}
 
      | 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}} }} [[{{#show: {{#var:material}}| ?image | link = none }}|16px|{{#var:material}}|link={{#var:material}}]] {{#if: {{#var:isstuff}} | ({{formatnum: {{#expr: {{#var:R1a}} * {{#var:volume}} }} }} [[{{#show: Stuff| ?image | link = none }}|16px|Stuff|link=Stuff]]) }}
+
| {{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}} }}
| {{#ifeq: {{#var:work}} | false | – | {{Align Ticks| {{#var:work}} }} }}
+
| {{#if: {{#pos: {{lc:{{Q|{{{?Name}}}|Production Facility 1}} }} | mech gestator}} | – | {{Align Ticks| {{#var:work}} }} }}
 
| {{#var:skill}}
 
| {{#var:skill}}
| {{Align Silver| {{#var:value}} }} [[{{#show: Silver| ?image | link = none }}|16px|Silver|link=Silver]]{{#var:note}}
+
| {{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>

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)