今天是2024年七月3日 第27周 星期三

代人,时大变了。

我们生活在大地上,但我们的梦想超越天空。

Template:Clickable button 2/doc

来自Akarin
< Template:Clickable button 2
白龙讨论 | 贡献2020年8月22日 (六) 17:52的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航 跳到搜索

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}}
  • Code: {{Clickable button 2|Main Page|Cover page}}
  • Code: {{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
  • Code: {{Clickable button 2|Main Page|class=mw-ui-destructive}}
  • Code: {{Clickable button 2|Main Page|class=mw-ui-progressive}}

注意: 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

模板参数

此模板首选参数行内格式。

参数说明类型状态
Link/Label1

无描述

未知必填
Label2

无描述

未知推荐
URLurl

无描述

URL可选
Classclass

无描述

自动值
字符串可选
Stylestyle

无描述

字符串可选
Categorycategory

无描述

布尔值可选

重定向

参见