Template:Resource link: Difference between revisions

From Against the Storm Official Wiki
m (updated arg names)
(changed resource example to something that's not a redlink)
Line 5: Line 5:
For example:
For example:


<pre>{{Resource_link|Food Stockpiles}}
<pre>{{Resource_link|Pickled Goods}}
{{Resource_link|Food Stockpiles|med}}
{{Resource_link|Pickled Goods|med}}
{{Resource_link|Food Stockpiles|large}}
{{Resource_link|Pickled Goods|large}}
{{Resource_link|Food Stockpiles|huge}}</pre>
{{Resource_link|Pickled Goods|huge}}</pre>


{{Resource_link|Food Stockpiles}}
{{Resource_link|Pickled Goods}}


{{Resource_link|Food Stockpiles|med}}
{{Resource_link|Pickled Goods|med}}


{{Resource_link|Food Stockpiles|large}}
{{Resource_link|Pickled Goods|large}}


{{Resource_link|Food Stockpiles|huge}}</noinclude>
{{Resource_link|Pickled Goods|huge}}</noinclude>

Revision as of 19:29, 3 February 2023

Script error: The function "renderLink" does not exist.

This template takes a resource name and turns it into an image followed by a link to the resource. Use the in-game name of the resource (with or without spaces should work, as the background code contains some deconfliction). The default is the icon size is {{ImgS}}, or x16px, for use in-line with text. You can also use med, large, or huge, as you can see below.

For example:

{{Resource_link|Pickled Goods}}
{{Resource_link|Pickled Goods|med}}
{{Resource_link|Pickled Goods|large}}
{{Resource_link|Pickled Goods|huge}}

Script error: The function "renderLink" does not exist.

Script error: The function "renderLink" does not exist.

Script error: The function "renderLink" does not exist.

Script error: The function "renderLink" does not exist.