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:workfactor | {{#if: {{Q|{{#var:material}}|Work To Build Factor}} | {{Q|{{#var:material}}|Work To Build Factor}} | 1 }} }}<!---
-->{{#vardefine:materialimage | {{Q | {{#var:material}} | Image }} }}<!--
+
--->{{#switch: {{#var:stuffcat}}
-->{| {{STDT|sortable {{#switch: {{#vardefineecho:stuffcat | {{Q | {{#var:material}} | Stuff Category | no stuff category}} }}
+
   | #default = {{#vardefine:style | c_01 }}
   | #default = c_01
+
   | Fabric = {{#vardefine:style | c_09 }}
   | Fabric   = c_09
+
   | Metallic = {{#vardefine:style | c_12 }}
   | Metallic = c_12
+
   | Leathery = {{#vardefine:style | c_22 }}
   | Leathery = c_22
+
   | Woody = {{#vardefine:style | c_25 }}
   | Woody   = c_25
+
   | Stony = {{#vardefine:style | }}
   | Stony   =
+
}}<!---
}} align-left}}
+
--->{| {{STDT|sortable {{#var:style}} align-center}}
 
! Item
 
! Item
! data-sort-type=number | Amount of {{lc: {{#var:material}} }}
+
! data-sort-type=number | Amount of {{#var:material}}
! data-sort-type=number | Other ingredients
+
! data-sort-type=number | Other materials
! data-sort-type=number | [[Work To Make|Work to make]]
+
! data-sort-type=number | [[Work To Make|Work]]
! Relevant [[Skill|skill]]
+
! [[Skills|Work type]]
! data-sort-type=number | [[Market Value|Market value]]
+
! data-sort-type=number | [[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 | {{#var:material}}<br>per Silver
 
|-
 
|-
 
! 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}} {{!!}} {{#expr:1/{{Q|{{#var:material}}|Market Value Base}}round2}}
 
}}
 
}}
| 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}}]] OR [[Resource 6::{{#var:material}}]]
  | limit = 300
 
  | sort = Name
 
  | format = template
 
  | template = Trading Value Table Row
 
  | link = none
 
 
   | named args = yes
 
   | named args = yes
 
   | ?Name = ?Name
 
   | ?Name = ?Name
 
   | ?Type = ?Type
 
   | ?Type = ?Type
   | ?Type2 = ?Type2
+
   | ?From DLC = ?From DLC
   | ?Product Amount = ?Pa
+
   | ?Skill 1 = ?Skill 1
   | ?Resource 1 = ?R1
+
   | ?Skill 1 Level = ?Skill 1 Level
  | ?Resource 1 Amount = ?R1a
+
   | ?Skill 2 = ?Skill 2
   | ?Resource 2 = ?R2
+
   | ?Skill 2 Level = ?Skill 2 Level
  | ?Resource 2 Amount = ?R2a
+
   | format = template
  | ?Resource 3 = ?R3
+
   | template = Trading Value Table Row
  | ?Resource 3 Amount = ?R3a
+
   | limit = 500
  | ?Resource 4 = ?R4
+
   | sort = Name
  | ?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)