Difference between revisions of "Template:Trading Value Table"
Line 4: | Line 4: | ||
{{#ifeq: {{{?Type}}} | Structure | | | {{#ifeq: {{{?Type}}} | Structure | | | ||
− | + | {{#ifeq: {{{?Type}}} | Production | | | |
− | + | {{#ifeq: {{{?Type}}} | Buildings | | | |
− | + | {{#ifeq: {{{?Type}}} | Security | | | |
− | + | {{#ifeq: {{{?Type}}} | Misc | | | |
− | + | {{#ifeq: {{{?Type}}} | Miscellaneous | | | |
− | + | {{#ifeq: {{{?Type}}} | Floor | | | |
− | + | {{#ifeq: {{{?Type}}} | Temperature | | | |
− | + | {{#ifeq: {{{?Type}}} | Power | | | |
− | + | {{#ifeq: {{{?Type}}} | Ship | | | |
− | + | {{#ifeq: {{{?Name}}} | Peg leg | | | |
− | + | {{#ifeq: {{{?Name}}} | Wooden foot | | | |
− | + | {{#ifeq: {{{?Name}}} | Wooden hand | | | |
− | + | {{#if: {{#pos: {{Q | {{{?Name}}} | Stuff Tags}} | {{#var:material}} }} | |
− | + | | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} }} | | |
− | + | {{#ifeq: {{Q | {{{?Name}}} | Resource 1}} | {{#var:material}} | |
− | + | | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} }} | |
− | + | }} | |
− | + | {{#ifeq: {{Q | {{{?Name}}} | Resource 2}} | {{#var:material}} | |
− | + | | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} }} | |
− | + | }} | |
− | + | {{#ifeq: {{Q | {{{?Name}}} | Resource 3}} | {{#var:material}} | |
− | + | | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} }} | |
− | + | }} | |
− | + | {{#ifeq: {{Q | {{{?Name}}} | Resource 4}} | {{#var:material}} | |
− | + | | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} }} | |
− | + | }} | |
− | + | {{#ifeq: {{Q | {{{?Name}}} | Resource 5}} | {{#var:material}} | |
− | + | | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} }} | |
− | + | }} | |
− | + | {{#ifeq: {{Q | {{{?Name}}} | Resource 6}} | {{#var:material}} | |
− | + | | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} }} | |
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | |||
}} | }} | ||
− | + | }} }} }} | |
− | + | }} }} }} }} }} }} }} }} }} }} | |
− | |||
− | }} | ||
</includeonly> | </includeonly> |
Revision as of 15:32, 4 June 2021
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}}
The above documentation is transcluded from Template:Trading Value Table/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |