Template:Resource link: Difference between revisions
From Against the Storm Official Wiki
(created) |
(added comment) |
||
Line 1: | Line 1: | ||
{{#invoke:ResourceLink|renderLink|image={{{1}}}|size={{{2}}}}} | {{#invoke:ResourceLink|renderLink|image={{{1}}}|size={{{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. | |||
For example: | |||
<pre>{{Resource_link|Food Stockpiles}} | |||
{{Resource_link|Food Stockpiles|med}} | |||
{{Resource_link|Food Stockpiles|large}} | |||
{{Resource_link|Food Stockpiles|huge}}</pre> | |||
{{Resource_link|Food Stockpiles}} | |||
{{Resource_link|Food Stockpiles|med}} | |||
{{Resource_link|Food Stockpiles|large}} | |||
{{Resource_link|Food Stockpiles|huge}}</noinclude> |
Revision as of 15:13, 2 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.