Editing Template:Trading Value Table

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 1: Line 1:
<includeonly>{{#vardefine:volume | {{#if: {{Q | {{#vardefineecho:material | {{{ 1 | {{SUBPAGENAME}} }}} }} | Small Volume}} | 10 | 1 }} }}<!--
+
<includeonly>{{#vardefine:material | {{{ 1 | {{SUBPAGENAME}}}}} }}<!--
-->{{#vardefine:makefactor  | {{Q | {{#var:material}} | Work To Make Factor  | 1}} }}<!--
+
-->{{#vardefine:volume | {{#if: {{Q|{{#var:material}}|Small Volume}} | 10 | 1 }} }}<!--
-->{{#vardefine:buildfactor | {{Q | {{#var:material}} | Work To Build Factor | 1}} }}<!--
+
-->{{#vardefine:stuffcat | {{#if: {{Q|{{#var:material}}|Stuff Category}} | {{Q|{{#var:material}}|Stuff Category}} | no stuff category }} }}<!--
-->{{#vardefine:buildoffset | {{Q | {{#var:material}} | Work To Build Offset | 0}} }}<!--
+
-->{{#vardefine:makefactor | {{#if: {{Q|{{#var:material}}|Work To Make Factor}} | {{Q|{{#var:material}}|Work To Make Factor}} | 1 }} }}<!--
-->{{#vardefine:materialimage | {{Q | {{#var:material}} | Image }} }}<!--
+
-->{{#vardefine:buildfactor | {{#if: {{Q|{{#var:material}}|Work To Build Factor}} | {{Q|{{#var:material}}|Work To Build Factor}} | 1 }} }}<!--
-->{| {{STDT|sortable {{#switch: {{#vardefineecho:stuffcat | {{Q | {{#var:material}} | Stuff Category | no stuff category}} }}
+
-->{{#vardefine:buildoffset | {{#if: {{Q|{{#var:material}}|Work To Build Offset}} | {{Q|{{#var:material}}|Work To Build Offset}} | 0 }} }}<!--
   | #default = c_01
+
-->{{#switch: {{#var:stuffcat}}
   | Fabric   = c_09
+
   | #default = {{#vardefine:style | c_01 }}
   | Metallic = c_12
+
   | Fabric = {{#vardefine:style | c_09 }}
   | Leathery = c_22
+
   | Metallic = {{#vardefine:style | c_12 }}
   | Woody   = c_25
+
   | Leathery = {{#vardefine:style | c_22 }}
   | Stony   =
+
   | Woody = {{#vardefine:style | c_25 }}
}} align-left}}
+
   | Stony = {{#vardefine:style | }}
 +
}}<!--
 +
-->{| {{STDT|sortable {{#var:style}} align-center}}
 
! Item
 
! Item
! data-sort-type=number | Amount of {{lc: {{#var:material}} }}
+
! data-sort-type=number | Amount of {{lc:{{#var:material}}}}
 
! data-sort-type=number | Other ingredients
 
! data-sort-type=number | Other ingredients
 
! data-sort-type=number | [[Work To Make|Work to make]]
 
! data-sort-type=number | [[Work To Make|Work to make]]
 
! Relevant [[Skill|skill]]
 
! Relevant [[Skill|skill]]
 
! data-sort-type=number | [[Market Value|Market value]]
 
! data-sort-type=number | [[Market Value|Market value]]
! data-sort-type=number | [[Sell Price Multiplier|Sell price<br/>multiplier]]
+
! data-sort-type=number | [[Sell Price Multiplier|Sell price<br>multiplier]]
! data-sort-type=number | <abbr title="Market value/Combined material value">Profitability</abbr>
+
! data-sort-type=number | Work per silver
 +
! data-sort-type=number | Silver<br>per {{lc:{{#var:material}}}}
 
|-
 
|-
 
! style="text-align: left" | {{#var:material}}
 
! style="text-align: left" | {{#var:material}}
| 1 {{Icon Small|{{#var:material}}}} || – || {{Align Ticks|0}} || – || {{Align Silver|{{#vardefineecho:materialValue | {{Q|{{#var:material}}|Market Value Base}} }} }} {{Icon Small|silver}}
+
| 1 {{Icon Small|{{#var:material}}}} || – || {{ticks/seconds|0}} || – || {{Q|{{#var:material}}|Market Value Base}} {{Icon Small|silver}}
 
{{#ifeq: {{Q|{{#var:material}}|Kind}} | Stony
 
{{#ifeq: {{Q|{{#var:material}}|Kind}} | Stony
   | {{!}} –
+
   | {{!}} – {{!!}} – {{!!}} –
   | {{!}} 1
+
   | {{!}} 1 {{!!}} {{ticks/seconds|0}} {{!!}} {{Q|{{#var:material}}|Market Value Base}} {{Icon Small|silver}}
 
}}
 
}}
| 1
 
 
|-
 
|-
{{#ask: [[Stuff Tags::~*{{#var:stuffcat}}*]] OR [[Resource 1::{{#var:material}}]] OR [[Resource 2::{{#var:material}}]] OR [[Resource 3::{{#var:material}}]] OR [[Resource 4::{{#var:material}}]] OR [[Resource 5::{{#var:material}}]] OR [[Resource 6::{{#var:material}}]]
+
{{#ask: [[:+]] [[Stuff Tags::~*{{#var:stuffcat}}*]] OR [[:+]] [[Resource 1::{{#var:material}}]] OR [[:+]] [[Resource 2::{{#var:material}}]] OR [[Resource 3::{{#var:material}}]] OR [[Resource 4::{{#var:material}}]] OR [[Resource 5::{{#var:material}}]]
 +
  | named args = yes
 +
  | ?Name = ?Name
 +
  | ?Type = ?Type
 +
  | ?Skill 1 = ?Skill 1
 +
  | ?Skill 1 Level = ?Skill 1 Level
 +
  | ?Skill 2 = ?Skill 2
 +
  | ?Skill 2 Level = ?Skill 2 Level
 +
  | format = template
 +
  | template = Trading Value Table Row
 
   | limit = 300
 
   | limit = 300
 
   | sort = Name
 
   | sort = Name
  | format = template
+
}} <!-- It is necessary to split the query due to this wiki's restrictions on query size or depth. The second query should only ever return Phoenix armor on the chemfuel page. Only unwanted side-effect: It wont be sorted by name. -->
  | template = Trading Value Table Row
+
{{#ask: [[Resource 6::{{#var:material}}]]
  | link = none
 
 
   | named args = yes
 
   | named args = yes
 
   | ?Name = ?Name
 
   | ?Name = ?Name
 
   | ?Type = ?Type
 
   | ?Type = ?Type
   | ?Type2 = ?Type2
+
   | ?Skill 1 = ?Skill 1
   | ?Product Amount = ?Pa
+
   | ?Skill 1 Level = ?Skill 1 Level
  | ?Resource 1 = ?R1
+
   | ?Skill 2 = ?Skill 2
  | ?Resource 1 Amount = ?R1a
+
   | ?Skill 2 Level = ?Skill 2 Level
   | ?Resource 2 = ?R2
+
   | format = template
  | ?Resource 2 Amount = ?R2a
+
   | template = Trading Value Table Row
  | ?Resource 3 = ?R3
+
   | limit = 5
  | ?Resource 3 Amount = ?R3a
+
   | sort = Name
  | ?Resource 4 = ?R4
 
  | ?Resource 4 Amount = ?R4a
 
  | ?Resource 5 = ?R5
 
  | ?Resource 5 Amount = ?R5a
 
  | ?Resource 6 = ?R6
 
  | ?Resource 6 Amount = ?R6a
 
   | ?Skill 1 = ?S1
 
  | ?Skill 1 Level = ?S1l
 
   | ?Skill 2 = ?S2
 
   | ?Skill 2 Level = ?S2l
 
   | ?Work To Make = ?Work
 
   | ?Market Value Base = ?Value
 
 
}}
 
}}
 
|}</includeonly><noinclude>{{Documentation}}</noinclude>
 
|}</includeonly><noinclude>{{Documentation}}</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)