Editing
Template:Clickable button/doc
Jump to navigation
Jump to search
β οΈ
Warning:
You are not logged in.
Your IP address will be publicly visible
if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username instead of your IP, along with other benefits.
Anti-spam check. Do
not
fill this in!
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: '''<code><nowiki>{{Clickable button|Main Page}}</nowiki></code> **'''Result: '''{{Clickable button|Main Page}} *'''Code: '''<code><nowiki>{{Clickable button|Main Page|Cover page}}</nowiki></code> **'''Result: '''{{Clickable button|Main Page|Cover page}} *'''Code: '''<code><nowiki>{{Clickable button|Wikipedia|url=http://en.wikipedia.org}}</nowiki></code> **'''Result: '''{{Clickable button|Wikipedia|url=http://en.wikipedia.org}} *'''Code: '''<code><nowiki>{{Clickable button|Main Page|class=mw-ui-destructive}}</nowiki></code> **'''Result: '''{{Clickable button|Main Page|class=mw-ui-destructive}} *'''Code: '''<code><nowiki>{{Clickable button|Main Page|class=mw-ui-progressive}}</nowiki></code> **'''Result: '''{{Clickable button|Main Page|class=mw-ui-progressive}} === Template data === <templatedata> { "params": { "1": { "required": true, "label": "Link/Label", "description": "Defines the page to link to, and uses that page's title as the text for the button", "example": "Foobar", "type": "wiki-page-name" }, "2": { "suggested": true, "label": "Label", "description": "Defines the text that appears on the button" }, "url": { "suggested": true, "type": "url", "label": "URL", "description": "Defines a web address for the button to link to", "example": "https://www.example.com" }, "class": { "type": "string", "description": "Defines the visual type of the button", "example": "mw-ui-progressive, mw-ui-destructive" }, "style": { "type": "string" }, "category": { "type": "boolean" } }, "description": "Styles a link like a button, using the mediawiki.ui.button module", "format": "inline" } </templatedata>
Summary:
Please note that all contributions to Irony Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Irony Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Clickable button
(
edit
)
Module:Arguments
(
edit
)
Module:Clickable button
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Purge cache
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
Page values