Template:Resource link: Difference between revisions
From Against the Storm Official Wiki
Tags: Replaced Undo |
m (updated arg names) |
||
Line 1: | Line 1: | ||
{{#invoke:ResourceLink|renderLink| | {{#invoke:ResourceLink|renderLink|resource={{{1|}}}|iconsize={{{2|}}}}}<noinclude> | ||
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 <code><nowiki>{{ImgS}}</nowiki></code>, or <code>{{ImgS}}</code>, for use in-line with text. You can also use <code>med</code>, <code>large</code>, or <code>huge</code>, as you can see below. | 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 <code><nowiki>{{ImgS}}</nowiki></code>, or <code>{{ImgS}}</code>, for use in-line with text. You can also use <code>med</code>, <code>large</code>, or <code>huge</code>, as you can see below. |
Revision as of 19:16, 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|Food Stockpiles}} {{Resource_link|Food Stockpiles|med}} {{Resource_link|Food Stockpiles|large}} {{Resource_link|Food Stockpiles|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.