今天是2024年11月25日 第48周 星期一
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
更改
跳到导航
跳到搜索
機器人35:更新模板使用量為5460
{{Documentation subpage}}
{{High-risk|5460}}
{{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}}
'''注意: '''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>
=== 重定向 ===
* {{tl|OOUI button}}
=== 参见 ===
* [[commons:Template:Clickable button]], corresponding clickable button at Commons.
{{Button templates}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories and interwikis go here: -->
[[Category:维基百科格式化与函数模板]]
[[Category:维基百科按钮模板]]
}}</includeonly>
{{High-risk|5460}}
{{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}}
'''注意: '''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>
=== 重定向 ===
* {{tl|OOUI button}}
=== 参见 ===
* [[commons:Template:Clickable button]], corresponding clickable button at Commons.
{{Button templates}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories and interwikis go here: -->
[[Category:维基百科格式化与函数模板]]
[[Category:维基百科按钮模板]]
}}</includeonly>