模板: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

參見[編輯原始碼]