Difference between revisions of "Template:Required Resources/doc"
Jump to navigation
Jump to search
(simplified by using nbsp) |
|||
(2 intermediate revisions by 2 users not shown) | |||
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). | |
− | <code>simple</code> removes the name of the time and only leaves the icon. | + | <code>sep</code> is the seperator parameter (optional, default = ","). |
+ | |||
+ | <code>simple</code> removes the name of the time and only leaves the icon (set to any text or value, usually "1"). | ||
== Examples == | == Examples == | ||
<pre>{{Required Resources|Plate armor}}</pre> | <pre>{{Required Resources|Plate armor}}</pre> | ||
{{Required Resources|Plate armor}} | {{Required Resources|Plate armor}} | ||
+ | |||
+ | |||
+ | <pre>{{Required Resources|Plate armor|3}}</pre> | ||
+ | {{Required Resources|Plate armor|3}} | ||
Line 23: | Line 29: | ||
<pre>{{Required Resources|Phoenix armor|sep=&nbsp;+|simple=1}}</pre> | <pre>{{Required Resources|Phoenix armor|sep=&nbsp;+|simple=1}}</pre> | ||
{{Required Resources|Phoenix armor|sep= +|simple=1}} | {{Required Resources|Phoenix armor|sep= +|simple=1}} | ||
+ | |||
+ | |||
+ | <pre>{{Required Resources|Phoenix armor|sep=&nbsp;+|simple=1|2}}</pre> | ||
+ | {{Required Resources|Phoenix armor|sep= +|simple=1|2}} | ||
+ | |||
+ | <noinclude>[[Category: Template documentation]]</noinclude> | ||
+ | <includeonly>[[Category: Templates]]</includeonly> |
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}}
170 Stuff (Metallic/Woody, 1700 for SMVs)
{{Required Resources|Plate armor|3}}
510 Stuff (Metallic/Woody, 5100 for SMVs)
{{Required Resources|Phoenix armor}}
150 Plasteel, 50 Uranium, 6 Advanced components, 75 Steel, 4 Components, 40 Chemfuel
{{Required Resources|Phoenix armor|sep= +}}
150 Plasteel + 50 Uranium + 6 Advanced components + 75 Steel + 4 Components + 40 Chemfuel
{{Required Resources|Phoenix armor|sep= +|simple=1}}
{{Required Resources|Phoenix armor|sep= +|simple=1|2}}