MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针。
如果在编辑的过程中遇到了什么问题,可以去讨论板提问。
为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证。
MCBBS Wiki GitHub群组已上线!
您可以在回声洞中发表吐槽!
服务器状态监控。点击进入
本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>
模板:Button:修订间差异
跳到导航
跳到搜索
(// Edit via Wikiplus) |
无编辑摘要 标签:2017年版源代码编辑 |
||
第3行: | 第3行: | ||
{{documentation}} |
{{documentation}} |
||
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
||
<templatedata> |
|||
⚫ | |||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "文本", |
|||
"description": "按钮文本", |
|||
"required": true, |
|||
"type": "string" |
|||
}, |
|||
"color": { |
|||
"label": "颜色", |
|||
"description": "blue为蓝色,red为红色,其他值为白色", |
|||
"type": "string", |
|||
"suggestedvalues": [ |
|||
"blue", |
|||
"red", |
|||
"white" |
|||
] |
|||
}, |
|||
"class": { |
|||
"description": "額外的 css class", |
|||
"type": "string" |
|||
}, |
|||
"styles": { |
|||
"description": "額外的 css style", |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"description": "产生一个带有按钮外观的文字区域" |
|||
} |
|||
⚫ |
2023年7月16日 (日) 22:21的最新版本
这个模板产生一个带有按钮外观的文字区域,可以放在内文链接中制作可点击的按钮。
{{Button|看起来是个按钮}}
- 效果:
[[讨论:讨论板|{{Button|讨论板}}]]
{{Button|按钮文本|color=white}}
- 效果:
{{Button|按钮文本|color=blue}}
- 效果:
{{Button|按钮文本|color=red}}
- 效果:
{{Button|按钮文本|color=green}}
- 效果:
附注
此模板引用自维基百科 Template:New_clickable_button 页面,引用行为依据 CC BY-SA 4.0 条款
产生一个带有按钮外观的文字区域
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
文本 | 1 | 按钮文本 | 字符串 | 必需 |
颜色 | color | blue为蓝色,red为红色,其他值为白色
| 字符串 | 可选 |
class | class | 額外的 css class | 字符串 | 可选 |
styles | styles | 額外的 css style | 字符串 | 可选 |