Difference between revisions of "Template:Required Resources/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(multiplier parameter was added)
 
Line 2: Line 2:
  
 
== Parameters ==
 
== Parameters ==
'''First parameter''' is the item whose required resources are to be returned.
+
'''First parameter''' is the item whose required resources are to be returned (optional, default = PAGENAME).
  
 
'''Second parameter''' is a multiplier (optional, default = 1).
 
'''Second parameter''' is a multiplier (optional, default = 1).

Latest revision as of 20:41, 19 September 2022

Returns a list of the resources required to make an item.

Parameters[edit]

First parameter is the item whose required resources are to be returned (optional, default = PAGENAME).

Second parameter is a multiplier (optional, default = 1).

sep is the seperator parameter (optional, default = ",").

simple removes the name of the time and only leaves the icon (set to any text or value, usually "1").

Examples[edit]

{{Required Resources|Plate armor}}

Stuff 170 Stuff (Metallic/Woody, 1700 for SMVs)


{{Required Resources|Plate armor|3}}

Stuff 510 Stuff (Metallic/Woody, 5100 for SMVs)


{{Required Resources|Phoenix armor}}

Plasteel 150 Plasteel, Uranium 50 Uranium, Advanced component 6 Advanced components, Steel 75 Steel, Component 4 Components, Chemfuel 40 Chemfuel


{{Required Resources|Phoenix armor|sep= +}}

Plasteel 150 Plasteel + Uranium 50 Uranium + Advanced component 6 Advanced components + Steel 75 Steel + Component 4 Components + Chemfuel 40 Chemfuel


{{Required Resources|Phoenix armor|sep= +|simple=1}}

Plasteel 150 + Uranium 50 + Advanced component 6 + Steel 75 + Component 4 + Chemfuel 40


{{Required Resources|Phoenix armor|sep= +|simple=1|2}}

Plasteel 300 + Uranium 100 + Advanced component 12 + Steel 150 + Component 8 + Chemfuel 80