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:Button: Difference between revisions
From Super Fantasy Kingdom Official Wiki
wgg>Cadaei excluded category |
wgg>Cadaei updated css classes |
||
| Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{t}}} | <includeonly>{{#switch:{{{t}}} | ||
|icon2=<div class=" | |icon2=<div class="link-button"><div style=" height: {{{h|65}}}px;">[[File:{{{1}}}|{{{i|95}}}px|link={{{2}}}]]</div><div class="link-button-text">[{{{2}}} {{{3}}}]</div></div> | ||
|icon=<div class=" | |icon=<div class="link-button"><div style=" height: {{{h|65}}}px;">[[File:{{{1}}}|{{{i|100}}}px|link={{{2}}}]]</div><div class="link-button-text">[[{{{2}}}|{{{3|{{{2}}}}}}]]</div></div> | ||
|#default =<div class=" | |#default =<div class="link-button" style="width:{{{w|94}}}px">[[{{{1}}}|{{{2|{{{1}}}}}}]]</div> | ||
}}</includeonly><noinclude>{{doc}} | }}</includeonly><noinclude>{{doc}} | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> | ||
Revision as of 21:25, 24 September 2025
Displays a button that links to a page, optionally with an image.
Parameters
iconClass: optional classes for the icon
Exclusive parameters
t: (no value, empty)1: page name where the button links to2: optional text that is displayed instead of1
t: icon1: image file name2: page name for the link3: optional different name of the link texti: optional width of the image
t: icon21: image file name2: url for an external link3: name of the link texti: optional width of the image
Example
{{Button|Frontpage-units.png|Units|t=icon}}


