Template:Clickable button

Documentation icon Template documentation[view] [change] [history] [refresh]

This template creates a clickable button and adds nice styling to it.

Provides a button with hover effects.

  • {{Clickable button|FAQ|Frequently asked questions}}
  • {{Clickable button|target={{fullurl:{{FULLPAGENAME}}|withJS=MediaWiki:VisualFileChange.js}}|text=This page with '''VisualFileChange'''|external=true}}
  • {{Clickable button|:en:Wikipedia:Manual of Style/Layout|'''Wikipedia's manual of Style'''|class=ui-button-orange ui-button-large}}
  • Code: {{Clickable button|Main Page}}
  • Code: {{Clickable button|Main Page|Cover page}}
  • Code: {{Clickable button|Main Page|url=http://simple.wiktionary.org}}
  • Code: {{Clickable button|Main Page|class=mw-ui-destructive}}
  • Code: {{Clickable button|Main Page|class=mw-ui-progressive}}

Template data

change

Styles a link like a button, using the mediawiki.ui.button module

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Link/Label1

Defines the page to link to, and uses that page's title as the text for the button

Example
Foobar
Page namerequired
Label2

Defines the text that appears on the button

Unknownsuggested
URLurl

Defines a web address for the button to link to

Example
https://www.example.com
URLoptional
classclass

Defines the visual type of the button

Example
mw-ui-progressive, mw-ui-destructive
Stringoptional
stylestyle

no description

Stringoptional
categorycategory

no description

Booleanoptional