Difference between revisions of "Template:Trading Value Table"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 10: Line 10:
 
{{#vardefine:Sellable | false }}
 
{{#vardefine:Sellable | false }}
  
{{#ifeq: {{{?Type}}} | Structure | {{#vardefine:skill | [[Construction]]}} |
+
{{#ifeq: {{{?Type}}} | Structure | |
{{#ifeq: {{{?Type}}} | Production | {{#vardefine:skill | [[Construction]]}} |
+
{{#ifeq: {{{?Type}}} | Production | |
{{#ifeq: {{{?Type}}} | Buildings | {{#vardefine:skill | [[Construction]]}} |
+
{{#ifeq: {{{?Type}}} | Buildings | |
{{#ifeq: {{{?Type}}} | Security | {{#vardefine:skill | [[Construction]]}} |
+
{{#ifeq: {{{?Type}}} | Security | |
{{#ifeq: {{{?Type}}} | Misc | {{#vardefine:skill | [[Construction]]}} |
+
{{#ifeq: {{{?Type}}} | Misc | |
{{#ifeq: {{{?Type}}} | Miscellaneous | {{{?Name}}} is Miscellaneous |
+
{{#ifeq: {{{?Type}}} | Floor | |
{{#ifeq: {{{?Type}}} | Floor | {{#vardefine:skill | [[Construction]]}} |
+
{{#ifeq: {{{?Type}}} | Temperature | |
{{#ifeq: {{{?Type}}} | Temperature | {{#vardefine:skill | [[Construction]]}} |
+
{{#ifeq: {{{?Type}}} | Power | |
{{#ifeq: {{{?Type}}} | Power | {{#vardefine:skill | [[Construction]]}} |
+
{{#ifeq: {{{?Type}}} | Ship | |
{{#ifeq: {{{?Type}}} | Ship | {{#vardefine:skill | [[Construction]]}} |
 
 
   {{#ifeq: {{{?Name}}} | Peg leg | |
 
   {{#ifeq: {{{?Name}}} | Peg leg | |
 
   {{#ifeq: {{{?Name}}} | Wooden foot | |
 
   {{#ifeq: {{{?Name}}} | Wooden foot | |
Line 30: Line 29:
 
{{#vardefine:CreateRow | false }}
 
{{#vardefine:CreateRow | false }}
 
{{#if: {{#pos: {{Q | {{{?Name}}} | Stuff Tags}} | {{#var:stuff}} }}
 
{{#if: {{#pos: {{Q | {{{?Name}}} | Stuff Tags}} | {{#var:stuff}} }}
   | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Skill={{#var:skill}}  | ?Sellable={{#var:Sellable}} | ?Stuff=true }} |
+
   | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Sellable={{#var:Sellable}} | ?Stuff=true }} |
 
   {{#vardefine:CreateRow | true }}
 
   {{#vardefine:CreateRow | true }}
 
   {{#ifeq: {{Q | {{{?Name}}} | Resource 1}} | {{#var:material}} | |
 
   {{#ifeq: {{Q | {{{?Name}}} | Resource 1}} | {{#var:material}} | |
Line 41: Line 40:
 
   }} }} }} }} }} }}
 
   }} }} }} }} }} }}
 
}}
 
}}
{{#ifeq: {{#var:CreateRow}} | true | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Skill={{#var:skill}} | ?Sellable={{#var:Sellable}} }} }}
+
{{#ifeq: {{#var:CreateRow}} | true | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Sellable={{#var:Sellable}} }} }}
  
 
</includeonly>
 
</includeonly>

Revision as of 10:24, 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}}