Difference between revisions of "Template:Trading Value Table"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
  
{{#vardefine:material | {{SUBPAGENAME}} }}
+
{{#vardefine:material | Steel }}
  
 
{{#ifeq: {{#var:material}} | Wood
 
{{#ifeq: {{#var:material}} | Wood
Line 86: Line 86:
  
 
! style="text-align: left" {{!}} [[{{{?Name}}}]] {{#ifeq: {{Q|{{{?Name}}}|From DLC}} | Royalty (DLC) | {{RoyaltyIcon}} | {{#ifeq: {{Q|{{{?Name}}}|From DLC}} | Ideology (DLC) | {{IdeologyIcon}} }} }}
 
! style="text-align: left" {{!}} [[{{{?Name}}}]] {{#ifeq: {{Q|{{{?Name}}}|From DLC}} | Royalty (DLC) | {{RoyaltyIcon}} | {{#ifeq: {{Q|{{{?Name}}}|From DLC}} | Ideology (DLC) | {{IdeologyIcon}} }} }}
{{!}} {{#var:amount}} {{Icon Small{{!}}{{{#var:material}}} }} {{#ifeq: {{{#var:Stuff}}} | true | ({{#expr: {{#var:R1a}} * {{#ifeq: {{{#var:material}}} | Gold | 10 | {{#ifeq: {{{#var:material}}} | Silver | 10 | 1 }} }} }} {{Icon Small|Stuff}}) }}
+
{{!}} {{#var:amount}} {{Icon Small|{{{#var:material}}} }} {{#ifeq: {{{#var:Stuff}}} | true | ({{#expr: {{#var:R1a}} * {{#ifeq: {{{#var:material}}} | Gold | 10 | {{#ifeq: {{{#var:material}}} | Silver | 10 | 1 }} }} }} {{Icon Small|Stuff}}) }}
 
{{!}} {{#ifeq: {{#var:others}} || - | {{#var:others}} }}
 
{{!}} {{#ifeq: {{#var:others}} || - | {{#var:others}} }}
 
{{!}} {{ticks/minutes| {{Q|{{{?Name}}}|Work To Make}} * {{#var:workfactor}} }}
 
{{!}} {{ticks/minutes| {{Q|{{{?Name}}}|Work To Make}} * {{#var:workfactor}} }}

Revision as of 20:29, 19 September 2021


Documentation icon Template documentation[view] [edit] [history] [purge]

Related Template

This template is dependant on Template:Trading Value Table Row.

Description

This template adds a full table of all items, buildings etc. that require a specific material. It is meant for everything in Template:Nav/materials but can be used for pretty much anything.

In order to use the template add the following line to the page of the material:

{{Trading Value Table}}

If you specify the material you can put the table on any page you want:

{{Trading Value Table | Uranium}}

Examples

Stony

Example for a stone. {{Trading Value Table | Granite blocks}}

Metallic

Normal

Example for a metal.








Small Volume

Example for a small volume material. {{Trading Value Table | Silver}}

Woody

Example for wood. {{Trading Value Table | Wood}}

Leathery

Example for a leather. {{Trading Value Table | Bluefur}}

Fabric

Example for a fabric. {{Trading Value Table | Cloth}}

Other

Example for a any other item. {{Trading Value Table | Component}}