Difference between revisions of "Template:Required Resources"
Jump to navigation
Jump to search
Line 1: | Line 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: | + | <includeonly>{{#if: {{Q|{{{1|{{PAGENAME}}}}}|Resource 1}} | {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 1}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 1 Amount}} {{#if: {{{simple|}}}||[[{{Q|{{{1|{{PAGENAME}}}}}|Resource 1}}]]}} {{#if: |
− | {{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 2}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 2}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 2 Amount}} {{#if: {{{simple|}}}||[[{{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 3}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 3}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 3 Amount}} {{#if: {{{simple|}}}||[[{{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: | + | {{Q|{{{1|{{PAGENAME}}}}}|Resource 4}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 4}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 4 Amount}} {{#if: {{{simple|}}}||[[{{Q|{{{1|{{PAGENAME}}}}}|Resource 4}}]]}} }}{{#if: |
− | {{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 5}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 5}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 5 Amount}} {{#if: {{{simple|}}}||[[{{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> | + | {{Q|{{{1|{{PAGENAME}}}}}|Resource 6}} |{{{sep|, }}} {{Icon Small|{{Q|{{{1|{{PAGENAME}}}}}|Resource 6}}|16}} {{Q|{{{1|{{PAGENAME}}}}}|Resource 6 Amount}} {{#if: {{{simple|}}}||[[{{Q|{{{1|{{PAGENAME}}}}}|Resource 6}}]]}} }} }}</includeonly><noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
+ | {{#if: {{{simple|}}}|| |
Revision as of 08:43, 24 March 2021
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}}
170 Stuff {{#if: ||
{{Required Resources|Plate armor|3}}
170 Stuff {{#if: ||
{{Required Resources|Phoenix armor}}
150 Plasteel , 50 Uranium, 6 Advanced component, 75 Steel, 4 Component, 40 Chemfuel {{#if: ||
{{Required Resources|Phoenix armor|sep= +}}
150 Plasteel + 50 Uranium + 6 Advanced component + 75 Steel + 4 Component + 40 Chemfuel {{#if: ||
{{Required Resources|Phoenix armor|sep= +|simple=1}}
150 + 50 + 6 + 75 + 4 + 40 {{#if: 1||
{{Required Resources|Phoenix armor|sep= +|simple=1|2}}
The above documentation is transcluded from Template:Required Resources/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
{{#if: ||