Please note that some information on this wiki is still based on the demo version.
If you notice any errors, feel free to correct them.
Template:IconLinkSequence: Difference between revisions
From Super Fantasy Kingdom Official Wiki
wgg>Cadaei Created page with "<includeonly>{{#vardefine:filename|{{#replace:{{{1}}}|:|_}}}}[[File:{{#var:filename}}.png|{{{size|20px}}}|link={{{1}}}]]<!-- -->{{#if:{{{quantity|{{{quantity1|}}}}}}| × {{{quantity|{{{quantity1}}}}}}<!-- -->{{#if:{{{quantity2|}}}| › {{{quantity2}}}}}<!-- -->{{#if:{{{quantity3|}}}| › {{{quantity3}}}}}<!-- -->{{#if:{{{quantity4|}}}| › {{{quantity4}}}}}<!-- -->{{#if:{{{quantity5|}}}| › {{{quantit..." |
wgg>Cadaei allow unnamed paramters |
||
| Line 1: | Line 1: | ||
<includeonly>{{#vardefine:filename|{{#replace:{{{1}}}|:|_}}}}[[File:{{#var:filename}}.png|{{{size|20px}}}|link={{{1}}}]]<!-- | <includeonly>{{#vardefine:filename|{{#replace:{{{1}}}|:|_}}}}[[File:{{#var:filename}}.png|{{{size|20px}}}|link={{{1}}}]]<!-- | ||
-->{{#if:{{{quantity|{{{quantity1|}}}}}}| × {{{quantity|{{{quantity1}}}}}}<!-- | -->{{#if:{{{quantity|{{{quantity1|{{{2|}}}}}}}}}| × {{{quantity|{{{quantity1|{{{2|}}}}}}}}}<!-- | ||
-->{{#if:{{{quantity2|}}}| › {{{quantity2}}}}}<!-- | -->{{#if:{{{quantity2|{{{3|}}}|}}}| › {{{quantity2|{{{3|}}}}}}}}<!-- | ||
-->{{#if:{{{quantity3|}}}| › {{{quantity3}}}}}<!-- | -->{{#if:{{{quantity3|{{{4|}}}|}}}| › {{{quantity3|{{{4|}}}}}}}}<!-- | ||
-->{{#if:{{{quantity4|}}}| › {{{quantity4}}}}}<!-- | -->{{#if:{{{quantity4|{{{5|}}}|}}}| › {{{quantity4|{{{5|}}}}}}}}<!-- | ||
-->{{#if:{{{quantity5|}}}| › {{{quantity5}}}}}<!-- | -->{{#if:{{{quantity5|{{{6|}}}|}}}| › {{{quantity5|{{{6|}}}}}}}}<!-- | ||
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
Displays an icon with a link to the page of the represented icon and optionally a sequence of quantities. | Displays an icon with a link to the page of the represented icon and optionally a sequence of quantities. | ||
| Line 12: | Line 12: | ||
<nowiki>{{IconLinkSequence|Wood|quantity1=8|quantity2=16|quantity3=32}}</nowiki> | <nowiki>{{IconLinkSequence|Wood|quantity1=8|quantity2=16|quantity3=32}}</nowiki> | ||
{{IconLinkSequence|Wood|quantity1=8|quantity2=16|quantity3=32}} | {{IconLinkSequence|Wood|quantity1=8|quantity2=16|quantity3=32}} | ||
<nowiki>{{IconLinkSequence|Stone|8|16|32}}</nowiki> | |||
{{IconLinkSequence|Stone|8|16|32}} | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 10:08, 24 June 2023
Displays an icon with a link to the page of the represented icon and optionally a sequence of quantities.
Note: As the use of this template prevents the user from seeing the according license of the used icon by clicking on it, this template should be used only when it can be assumed the viewer knows the license of the used icon or the icon is in the public domain.
Usage / Example
{{IconLinkSequence|Wood|quantity1=8|quantity2=16|quantity3=32}}
{{IconLinkSequence|Stone|8|16|32}}


