• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Clickable button 2

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
This template is currently being merged with Template:Clickable button.
This template is being merged with another template, according to the specific instructions at Wikipedia:Templates for discussion/Holding cell, after which it will be redirected or deleted. The decision to merge this template was made following this discussion initiated on 18 June 2021 at Templates for discussion.
Note: Please review this template's instructions at Wikipedia:Templates for discussion/Holding cell before proceeding with any type of merging.
Template documentation[view] [edit] [history] [purge]
Shortcuts
  • {{CLB2}}
  • {{Click}}
This template uses Lua:
  • Module:Clickable button 2

This template styles a link like a button, using the mediawiki.ui.button module. This expands the clickable area and tap target for the link. It can be used in the following ways,

  • Code: {{Clickable button 2|Main Page}}
    • Result: Main Page
  • Code: {{Clickable button 2|Main Page|Cover page}}
    • Result: Cover page
  • Code: {{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
    • Result: Main Page
  • Code: {{Clickable button 2|Main Page|class=mw-ui-destructive}}
    • Result: Main Page
  • Code: {{Clickable button 2|Main Page|class=mw-ui-progressive}}
    • Result: Main Page

Note: After the changes outlined in Phabricator task T110555 were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}} produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}.

Template data

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

Template parameters

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

See also

  • commons:Template:Clickable button, corresponding clickable button at Commons.
  • Wikimedia design style guide advice on buttons
  • v
  • t
  • e
Button templates
General button templates
  • {{Clickable button}}
  • {{Clickable button 2}}
  • {{Branded Button}}
  • {{Button}} (not clickable)
  • {{Blue button}}
  • {{Mw button}}
WikiProject-specific buttons
  • Article Wizard
    • button
    • button2
    • button wizard
  • {{Big Blue Button}}
  • {{Big Red Button}}
  • {{Big Cyan Button}}
  • {{Big Green Button}}
  • {{Big Lime Button}}
  • {{Big Orange Button}}
  • {{Big Turquoise Button}}
  • {{Big Fuchsia Button}}
  • {{Big Skyblue Button}}
  • {{Big Purple Button}}
  • {{AFC button}}
  • {{Cleanup Button}}
  • Category
The above documentation is transcluded from Template:Clickable button 2/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Clickable_button_2&oldid=2417"
Categories:
  • Wikipedia templates currently being merged or deleted
  • Lua-based templates
  • Wikipedia formatting and function templates
  • Wikipedia button templates
Last edited on 26 June 2021, at 11:34

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 26 June 2021, at 11:34.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop