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:makefactor  | {{Q | {{#var:material}} | Work To Make Factor  | 1}} }}<!--
+
== Usage ==
-->{{#vardefine:buildfactor | {{Q | {{#var:material}} | Work To Build Factor | 1}} }}<!--
+
{{#vardefine:name | {{SUBPAGENAME}} }}
-->{{#vardefine:buildoffset | {{Q | {{#var:material}} | Work To Build Offset | 0}} }}<!--
+
The table below contains everything that requires {{#var:name}}. If the item can be sold to traders the sell price multiplier and is given and it is calculated how profitable it is selling this item. The market value is calculated assuming no [[deterioration]] and normal [[quality]].
-->{{#vardefine:materialimage | {{Q | {{#var:material}} | Image }} }}<!--
+
{| {{STDT|sortable c_25 align-center}}
-->{| {{STDT|sortable {{#switch: {{#vardefineecho:stuffcat | {{Q | {{#var:material}} | Stuff Category | no stuff category}} }}
 
  | #default = c_01
 
  | Fabric  = c_09
 
  | Metallic = c_12
 
  | Leathery = c_22
 
  | Woody    = c_25
 
  | Stony    =
 
}} align-left}}
 
 
! Item
 
! Item
! data-sort-type=number | Amount of {{lc: {{#var:material}} }}
+
! data-sort-type=number | Amount of {{#var:name}}
! 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:name}}<br>per Silver
 +
! Sellable
 
|-
 
|-
! style="text-align: left" | {{#var:material}}
+
! style="text-align: left" | {{#var:name}}
| 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:name}}}} || - || {{ticks/seconds|0}} || - || {{Q|{{#var:name}}|Market Value Base}} {{Icon Small|silver}} || 1 || {{ticks/seconds|0}} || {{#expr:1/{{Q|{{#var:name}}|Market Value Base}}round2}} || [[File:check.png|16px]]
{{#ifeq: {{Q|{{#var:material}}|Kind}} | Stony
+
|-
  | {{!}}
+
{{#ask:([[Resource 1::Stuff]] OR [[Resource 1::{{#var:name}}]] OR [[Resource 2::{{#var:name}}]] OR [[Resource 3::{{#var:name}}]] OR [[Resource 4::{{#var:name}}]] OR [[Resource 5::{{#var:name}}]] OR [[Resource 6::{{#var:name}}]]
  | {{!}} 1
+
| named args=yes
 +
| ?Name=?Name
 +
| ?Type=?Type
 +
| format=template
 +
| template=Trading Value Table
 +
| limit = 500
 +
| sort = Name
 
}}
 
}}
| 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}}]]
+
<!---
   | limit = 300
+
{{#vardefine:material | {{SUBPAGENAME}} }}
   | sort = Name
+
 
   | format = template
+
{{#ifeq: {{#var:material}} | Wood
   | template = Trading Value Table Row
+
  | {{#vardefine:stuff | Woody }}
  | link = none
+
  | {{#vardefine:stuff | {{Q | {{#var:material}} | Kind}} }}
   | named args = yes
+
}}
   | ?Name = ?Name
+
 
  | ?Type = ?Type
+
{{#vardefine:Sellable | false }}
  | ?Type2 = ?Type2
+
 
  | ?Product Amount = ?Pa
+
{{#ifeq: {{{?Type}}} | Structure | |
   | ?Resource 1 = ?R1
+
{{#ifeq: {{{?Type}}} | Production | |
  | ?Resource 1 Amount = ?R1a
+
{{#ifeq: {{{?Type}}} | Buildings | |
   | ?Resource 2 = ?R2
+
{{#ifeq: {{{?Type}}} | Security | |
  | ?Resource 2 Amount = ?R2a
+
{{#ifeq: {{{?Type}}} | Misc | |
   | ?Resource 3 = ?R3
+
{{#ifeq: {{{?Type}}} | Miscellaneous | |
  | ?Resource 3 Amount = ?R3a
+
{{#ifeq: {{{?Type}}} | Floor | |
   | ?Resource 4 = ?R4
+
{{#ifeq: {{{?Type}}} | Temperature | |
  | ?Resource 4 Amount = ?R4a
+
{{#ifeq: {{{?Type}}} | Power | |
  | ?Resource 5 = ?R5
+
{{#ifeq: {{{?Type}}} | Ship | |
   | ?Resource 5 Amount = ?R5a
+
   {{#ifeq: {{{?Name}}} | Peg leg | |
  | ?Resource 6 = ?R6
+
   {{#ifeq: {{{?Name}}} | Wooden foot | |
  | ?Resource 6 Amount = ?R6a
+
   {{#ifeq: {{{?Name}}} | Wooden hand | |
  | ?Skill 1 = ?S1
+
   {{#ifeq: {{{?Name}}} | Torch lamp | |
   | ?Skill 1 Level = ?S1l
+
    {{#vardefine:Sellable | true }}
  | ?Skill 2 = ?S2
+
   }} }} }} }}
  | ?Skill 2 Level = ?S2l
+
}} }} }} }} }} }} }} }} }} }}
  | ?Work To Make = ?Work
+
 
   | ?Market Value Base = ?Value
+
{{#if: {{#pos: {{Q | {{{?Name}}} | Stuff Tags}} | {{#var:stuff}} }}
 +
   | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Sellable={{#var:Sellable}} | ?Stuff=true }} |
 +
   {{#ifeq: {{Q | {{{?Name}}} | Resource 1}} | {{#var:material}}
 +
    | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Sellable={{#var:Sellable}} }}
 +
   }}
 +
  {{#ifeq: {{Q | {{{?Name}}} | Resource 2}} | {{#var:material}}
 +
    | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Sellable={{#var:Sellable}} }}
 +
  }}
 +
   {{#ifeq: {{Q | {{{?Name}}} | Resource 3}} | {{#var:material}}
 +
    | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Sellable={{#var:Sellable}} }}
 +
   }}
 +
  {{#ifeq: {{Q | {{{?Name}}} | Resource 4}} | {{#var:material}}
 +
    | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Sellable={{#var:Sellable}} }}
 +
  }}
 +
   {{#ifeq: {{Q | {{{?Name}}} | Resource 5}} | {{#var:material}}
 +
    | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Sellable={{#var:Sellable}} }}
 +
  }}
 +
   {{#ifeq: {{Q | {{{?Name}}} | Resource 6}} | {{#var:material}}
 +
    | {{Trading Value Table Row | ?Name={{{?Name}}} | ?Type={{{?Type}}} | ?Sellable={{#var:Sellable}} }}
 +
   }}
 
}}
 
}}
|}</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)