Difference between revisions of "Template:Required Resources"

From RimWorld Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{Q|{{{1|{{PAGENAME}}}}}|Resource 1}}
+
<includeonly>{{#if: {{Q|{{{1|{{PAGENAME}}}}}|Resource 1}} | {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 1}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 1 Amount}} [[{{Q|{{{1|{{PAGENAME}}}}}|Resource 1}}]] {{#if:
{{Q|{{{1|{{PAGENAME}}}}}|Resource 1}}
+
{{Q|{{{1|{{PAGENAME}}}}}|Resource 2}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 2}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 2 Amount}} [[{{Q|{{{1|{{PAGENAME}}}}}|Resource 2}}]] }}{{#if:
 
+
{{Q|{{{1|{{PAGENAME}}}}}|Resource 3}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 3}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 3 Amount}} [[{{Q|{{{1|{{PAGENAME}}}}}|Resource 3}}]] }}{{#if:
 
+
{{Q|{{{1|{{PAGENAME}}}}}|Resource 4}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 4}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 4 Amount}} [[{{Q|{{{1|{{PAGENAME}}}}}|Resource 4}}]] }}{{#if:
{{#if: {{Q|{{{1|{{PAGENAME}}}}}|Resource 1}} | {{icon Big|{{Q|{{{1|{{PAGENAME}}}}}|Resource 1}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 1 Amount}}
+
{{Q|{{{1|{{PAGENAME}}}}}|Resource 5}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 5}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 5 Amount}} [[{{Q|{{{1|{{PAGENAME}}}}}|Resource 5}}]] }}{{#if:
 
+
{{Q|{{{1|{{PAGENAME}}}}}|Resource 6}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 6}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 6 Amount}} [[{{Q|{{{1|{{PAGENAME}}}}}|Resource 6}}]] }} }}</includeonly><noinclude>
[[plasteel]] + {{icon|uranium|50}} [[uranium]] and {{icon|advcomponent|6}} [[advanced component]]s.
 
 
 
}}
 
 
 
 
 
Resource 1 Plasteel +
 
Resource 1 Amount 150  +
 
Resource 2 Uranium +
 
Resource 2 Amount 50  +
 
Resource 3 Advanced component +
 
Resource 3 Amount 6  +
 
Resource 4 Steel +
 
Resource 4 Amount 75  +
 
Resource 5 Component +
 
Resource 5 Amount 4  +
 
Resource 6 Chemfuel +
 
Resource 6 Amount 40  +
 
<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 07:29, 24 March 2021

Documentation icon Template documentation[view] [edit] [history] [purge]

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

Parameters

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

{{Required Resources|Plate armor}}

Stuff 170 Stuff


{{Required Resources|Plate armor|3}}

Stuff 170 Stuff


{{Required Resources|Phoenix armor}}

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


{{Required Resources|Phoenix armor|sep=&nbsp;+}}

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


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

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


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

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