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:IconWithText: Difference between revisions

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
Created page with "<includeonly>{{#vardefine:filename|{{#replace:{{{1}}}|:|_}}}}<div style="text-align:center;display:inline-block">[[File:{{#var:filename}}.png|{{{size|20px}}}|link={{{1}}}]]{{#if:{{{quantity|}}}| × {{{quantity}}}}}<br/>{{#if:{{{nolink|}}}|{{{1}}}|[[{{{1}}}]]}}</div></includeonly><noinclude> Displays an icon with a link to the page of the represented icon. Note: As the use of this template prevents the user from seeing the according license of the used icon by..."
 
m 3 revisions imported
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:filename|{{#replace:{{{1}}}|:|_}}}}<div style="text-align:center;display:inline-block">[[File:{{#var:filename}}.png|{{{size|20px}}}|link={{{1}}}]]{{#if:{{{quantity|}}}|&nbsp;×&nbsp;{{{quantity}}}}}<br/>{{#if:{{{nolink|}}}|{{{1}}}|[[{{{1}}}]]}}</div></includeonly><noinclude>
<includeonly>{{#vardefine:filename|{{#replace:{{{1}}}|:|_}}}}<div style="text-align:center;display:inline-block">[[File:{{#var:filename}}.png|{{{size|64px}}}|link={{{1}}}]]{{#if:{{{quantity|}}}|&nbsp;×&nbsp;{{{quantity}}}}}<br/>{{#if:{{{bold|}}}|'''}}{{#if:{{{nolink|}}}|{{{1}}}|[[{{{1}}}]]}}{{#if:{{{bold|}}}|'''}}</div></includeonly><noinclude>
Displays an icon with a link to the page of the represented icon.
Displays an icon with a link to the page of the represented icon and the name below the icon.


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.
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.
Line 6: Line 6:
  <nowiki>{{IconWithText|Wood}}</nowiki>
  <nowiki>{{IconWithText|Wood}}</nowiki>
{{IconWithText|Wood}}
{{IconWithText|Wood}}
  <nowiki>{{IconWithText|Wood|size=50px|nolink=1}}</nowiki>
  <nowiki>{{IconWithText|Wood|size=50px|nolink=1|bold=1}}</nowiki>
{{IconWithText|Wood|size=50px|nolink=1}}
{{IconWithText|Wood|size=50px|nolink=1|bold=1}}
  <nowiki>{{IconWithText|Wood|size=30px|quantity=5}}</nowiki>
  <nowiki>{{IconWithText|Wood|size=30px|quantity=5}}</nowiki>
{{IconWithText|Wood|size=30px|quantity=5}}
{{IconWithText|Wood|size=30px|quantity=5}}

Latest revision as of 23:46, 21 October 2025

Displays an icon with a link to the page of the represented icon and the name below the icon.

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

{{IconWithText|Wood}}
{{IconWithText|Wood|size=50px|nolink=1|bold=1}}

Wood
{{IconWithText|Wood|size=30px|quantity=5}}
 × 5
Wood