模板樣式的src
屬性不得為空。
File:Edit-copy green.svg | This is a documentation subpage for Template:Clickable button 2. It contains usage information, categories and other content that is not part of the original template page. |
模板樣式的src
屬性不得為空。
Warning | This template is used on approximately 957,000 pages, or roughly 5937% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
模板樣式的src
屬性不得為空。
Warning | This template is used in system messages, and on approximately 957,000 pages, or roughly 5937% of all pages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
模板樣式的src
屬性不得為空。
File:Lua-Logo.svg | This template uses Lua: |
此模板顯示一個帶有按鈕外觀的鏈接,可以按照如下方式使用:
- 代碼:
{{Clickable button 2|Wikipedia:首页}}
- 代碼:
{{Clickable button 2|Wikipedia:首页|单击我访问首页}}
- 代碼:
{{Clickable button 2|Wikipedia:首页|url=https://zh.wikipedia.org}}
- 代碼:
{{Clickable button 2|Wikipedia:首页|class=mw-ui-destructive}}
- 代碼:
{{Clickable button 2|Wikipedia:首页|class=mw-ui-progressive}}
注意: 根據Phabricator專案T110555做出的更改,{{Clickable button 2|Wikipedia:首页|class=mw-ui-constructive}}
如今和{{Clickable button 2|Wikipedia:首页|class=mw-ui-progressive}}
效果一致。
模板數據[編輯原始碼]
顯示一個帶有按鈕外觀的鏈接
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
鏈接 | 1 | 指向的頁面 | 不明 | 必填 |
標籤 | 2 | 按鈕顯示的文本 | 不明 | 建議 |
URL | url | 指向的外部URL | URL | 非必填 |
class | class | 對應HTML的class屬性
| 字串 | 非必填 |
style | style | 對應HTML的style屬性 | 字串 | 非必填 |
category | category | 沒有描述 | 布林值 | 非必填 |
重定向[編輯原始碼]
- {{OOUI button}}