Difference between revisions of "Template:Trading Value Table"
m |
|||
Line 57: | Line 57: | ||
{{#vardefine:amount | {{#expr: | {{#vardefine:amount | {{#expr: | ||
− | {{#ifeq: | + | {{#ifeq: {{#var:Stuff}} | true |
| {{#var:R1a}} | | {{#var:R1a}} | ||
| {{#ifeq: {{#var:R1}} | {{#var:material}} | {{#var:R1a}} | 0}} | | {{#ifeq: {{#var:R1}} | {{#var:material}} | {{#var:R1a}} | 0}} | ||
Line 73: | Line 73: | ||
{{#vardefine:others | | {{#vardefine:others | | ||
{{#ifeq: {{#var:R1}} | Stuff | {{#ifeq: {{#var:R1}} | Stuff | ||
− | | {{#ifeq: | + | | {{#ifeq: {{#var:Stuff}} | true || {{#var:R1a}} {{Icon Small|Stuff}} }} |
| {{#ifeq: {{#var:R1}} | {{#var:material}} || {{#var:R1a}} {{Icon Small|{{#var:R1}} }} }} | | {{#ifeq: {{#var:R1}} | {{#var:material}} || {{#var:R1a}} {{Icon Small|{{#var:R1}} }} }} | ||
}}<!--- | }}<!--- | ||
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: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}} }} | ||
{{!}} {{#var:skill}} | {{!}} {{#var:skill}} | ||
− | {{!}} {{#ifeq: | + | {{!}} {{#ifeq: {{#var:Stuff}} | true | {{Market Value Calculator | {{{?Name}}} | {{#var:material}} }} | {{#ifeq: {{#var:R1}} | Stuff | {{Market Value Calculator|{{{?Name}}}|wood}}{{H:title|link=no|This value depends on the material and might therefore not be correct.|<sup>[Note]</sup>}} | {{Q|{{{?Name}}}|Market Value Base}} }} }} {{Icon Small|silver}} |
{{!}} {{#ifeq: {{#var:sellable}} | true | {{#var:multiplier}} | - }} | {{!}} {{#ifeq: {{#var:sellable}} | true | {{#var:multiplier}} | - }} | ||
{{!}} {{#ifeq: {{#var:sellable}} | true | {{ticks/seconds | {{#expr: {{formatnum: {{Q|{{{?Name}}}|Work To Make}}|R}}*{{#var:workfactor}}/({{#var:multiplier}}*{{Market Value Calculator | {{{?Name}}} | {{#var:material}} }})round2}} }} | - }} | {{!}} {{#ifeq: {{#var:sellable}} | true | {{ticks/seconds | {{#expr: {{formatnum: {{Q|{{{?Name}}}|Work To Make}}|R}}*{{#var:workfactor}}/({{#var:multiplier}}*{{Market Value Calculator | {{{?Name}}} | {{#var:material}} }})round2}} }} | - }} |
Revision as of 20:33, 19 September 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. |