Difference between revisions of "Template:Trading Value Table"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{{#vardefine:name | {{SUBPAGENAME}} }}
 
{{#vardefine:name | {{SUBPAGENAME}} }}
{{#ifeq:{{#var:name|Wood|{{#vardefine:stuff|Woody}}}}}}
 
 
{| {{STDT|sortable c_25 align-center}}
 
{| {{STDT|sortable c_25 align-center}}
 
! Item
 
! Item
Line 13: Line 12:
 
! data-sort-type=number | Wood per Silver
 
! data-sort-type=number | Wood per Silver
 
|-
 
|-
{{#ask:[[Resource 1::{{lc:{{#var:name}}}}]] OR [[Resource 2::{{lc:{{#var:name}}}}]] OR [[Resource 3::{{lc:{{#var:name}}}}]] OR [[Resource 4::{{lc:{{#var:name}}}}]] OR [[Resource 5::{{lc:{{#var:name}}}}]] OR [[Resource 6::{{lc:{{#var:name}}}}]] OR [[Stuff Tags::Metallic, Woody]]
+
{{#ask:[[Resource 1::{{lc:{{#var:name}}}}]] OR [[Resource 2::{{lc:{{#var:name}}}}]] OR [[Resource 3::{{lc:{{#var:name}}}}]] OR [[Resource 4::{{lc:{{#var:name}}}}]] OR [[Resource 5::{{lc:{{#var:name}}}}]] OR [[Resource 6::{{lc:{{#var:name}}}}]] OR [[Resource 1::Stuff]]
 
  | named args=yes
 
  | named args=yes
 
  | ?Name=?Name
 
  | ?Name=?Name
Line 19: Line 18:
 
  | ?Type2=?Type2
 
  | ?Type2=?Type2
 
  | format=template
 
  | format=template
  | template=Ingredient List Row
+
  | template=Trading Value Table Row
| limit = 500
 
| sort = Type, Type2, Name
 
}}
 
|}
 
{{#ask:[[{{#var:stuff}}::{{#sub:Stuff Tags|{{#pos:Stuff Tags|{{#var:name}}}}|{{#pos:Stuff Tags|{{#var:name}}|{{#len:{{#var:name}}}}}}}}]]
 
| named args=yes
 
| ?Name=?Name
 
| ?Type=?Type
 
| ?Type2=?Type2
 
| format=template
 
| template=Ingredient List Row
 
 
  | limit = 500
 
  | limit = 500
 
  | sort = Type, Type2, Name
 
  | sort = Type, Type2, Name

Revision as of 09:09, 4 June 2021