跳转到内容

模板:Clickable button

来自维基学院

Parameter text is empty

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

模板介绍

[编辑源代码]

制作可变色按钮。

使用方法

[编辑源代码]
{{Clickable button|target=|text=|external=}}

{{Clickable button|FAQ|Frequently asked questions}} →Frequently asked questions

{{Clickable button|target={{fullurl:{{FULLPAGENAME}}|withJS=MediaWiki:VisualFileChange.js}}|text=This page with '''VisualFileChange'''|external=true}} →This page with VisualFileChange

{{Clickable button|:en:Wikipedia:Manual of Style/Layout|'''Wikipedia's manual of Style'''|class=ui-button-orange ui-button-large}} → Wikipedia's manual of Style

{{Clickable button|:en:Wikipedia:Twinkle/Preferences|'''Twinkle preferences'''|iconPrimary=ui-icon-wrench|class=ui-button-blue ui-button-large}} → Twinkle preferences

{{Clickable button|target={{fullurl:Special:Random/User talk|action=edit&section=new&preloadtitle=I+love+your+work+because}}|text=Do something good|iconSecondary=ui-icon-heart|external=true|class=ui-button-red}} →Do something good 

target
必填。按钮所连结页面
text
必填。显示出来的文字
external
选填。若为站外连结,请设定为yes
iconPrimary
选填。jQuery UI的图标(左边),如ui-icon-gear
iconSecondary
选填。jQuery UI的图标(右边),如ui-icon-triangle-1-s
class
选填。指定类型,可填入的参数例子:
  • 颜色:ui-button-green、ui-button-blue、ui-button-red
  • 大小:ui-button-large