Changes
Jump to navigation
Jump to search
m
update /doc
{{Documentation subpage}}
{{High-risk| 586256 }}
{{Used in system}}
{{template shortcut|CLB2}}
{{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: '''<code><nowiki>{{Clickable button 2|Main Page}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|Cover page}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|Cover page}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-destructive}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-destructive}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-progressive}}
'''Note: '''After the changes outlined in Phabricator task {{Phab|T110555}} were implemented, <code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-constructive}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code>.
=== Template data ===
<templatedata>
{
"params": {
"1": {
"required": true,
"label": "Link/Label"
},
"2": {
"suggested": true,
"label": "Label"
},
"url": {
"type": "url",
"label": "URL"
},
"class": {
"type": "string",
"autovalue": ""
},
"style": {
"type": "string"
},
"category": {
"type": "boolean"
}
},
"description": "Styles a link like a button, using the mediawiki.ui.button module",
"format": "inline"
}
</templatedata>
=== See also ===
* [[commons:Template:Clickable button]], corresponding clickable button at Commons.
{{Button templates}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories and interwikis go here: -->
[[Category:Wikipedia formatting and function templates]]
[[Category:Wikipedia button templates]]
}}</includeonly>
{{High-risk| 586256 }}
{{Used in system}}
{{template shortcut|CLB2}}
{{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: '''<code><nowiki>{{Clickable button 2|Main Page}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|Cover page}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|Cover page}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-destructive}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-destructive}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-progressive}}
'''Note: '''After the changes outlined in Phabricator task {{Phab|T110555}} were implemented, <code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-constructive}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code>.
=== Template data ===
<templatedata>
{
"params": {
"1": {
"required": true,
"label": "Link/Label"
},
"2": {
"suggested": true,
"label": "Label"
},
"url": {
"type": "url",
"label": "URL"
},
"class": {
"type": "string",
"autovalue": ""
},
"style": {
"type": "string"
},
"category": {
"type": "boolean"
}
},
"description": "Styles a link like a button, using the mediawiki.ui.button module",
"format": "inline"
}
</templatedata>
=== See also ===
* [[commons:Template:Clickable button]], corresponding clickable button at Commons.
{{Button templates}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories and interwikis go here: -->
[[Category:Wikipedia formatting and function templates]]
[[Category:Wikipedia button templates]]
}}</includeonly>