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

From Super Fantasy Kingdom Official Wiki
wgg>Cadaei
Created page with "{{doc/start}} Displays a button that links to a page, optionally with an image. == Parameters == * <code>t</code>: (no value, empty) ** <code>1</code>: page name where the button links to ** <code>2</code>: optional text that is displayed instead of <code>1</code> * <code>t</code>: icon ** <code>1</code>: image file name ** <code>2</code>: page name for the link ** <code>3</code>: optional different name of the link text ** <code>i</code>: optional width of the image *..."
 
m 4 revisions imported
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc/start}}
Displays a button that links to a page, optionally with an image.
Displays a button that links to a page, optionally with an image.


== Parameters ==
== Parameters ==
* <code>iconClass</code>: optional classes for the icon
=== Exclusive parameters ===
* <code>t</code>: (no value, empty)
* <code>t</code>: (no value, empty)
** <code>1</code>: page name where the button links to
** <code>1</code>: page name where the button links to
Line 18: Line 19:


== Example ==
== Example ==
  <nowiki>{{Button|Frontpage-units.png|Units|t=icon}}</nowiki>
  <nowiki>{{Button|Frontpage-units.png|Units|t=icon}}</nowiki><noinclude>[[Category:Template documentation]]</noinclude>
{{doc/end}}

Latest revision as of 23:46, 21 October 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 to
    • 2: optional text that is displayed instead of 1
  • t: icon
    • 1: image file name
    • 2: page name for the link
    • 3: optional different name of the link text
    • i: optional width of the image
  • t: icon2
    • 1: image file name
    • 2: url for an external link
    • 3: name of the link text
    • i: optional width of the image

Example

{{Button|Frontpage-units.png|Units|t=icon}}