模板:按钮:修订间差异

来自SS唯基
跳到导航 跳到搜索
(修改)
无编辑摘要
 
第1行: 第1行:
<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-constructive | white = | blue = mw-ui-progressive | #default ={{{color|}}}> }} {{{class|}}} {{#if:{{{styles|}}}|style={{{styles}}}}}>{{{1|按钮文本}}}</span><noinclude>
<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-constructive | white = | blue = mw-ui-progressive | #default = {{{color|}}} }} {{{class|}}}" {{#if:{{{styles|}}}|style={{{styles}}}}}>{{{1|按钮文本}}}</span><noinclude>


{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

2022年8月3日 (三) 00:48的最新版本

按钮文本


Documentation icon 模板文档[-查看-] [编辑] [历史] [刷新]
搬运于维基百科的按钮模版

这个模板产生一个带有按钮外观的文字区域,可以放在内文链接中制作可点击的按钮。

  • {{按钮|看起来是个按钮}}
    • 效果看起来是个按钮
  • [[传奇殿堂|{{按钮|传奇殿堂}}]]
  • {{按钮|按钮文本|color=white}}
    • 效果按钮文本
  • {{按钮|按钮文本|color=blue}}
    • 效果按钮文本
  • {{按钮|按钮文本|color=red}}
    • 效果按钮文本
  • {{按钮|按钮文本|styles=color:#008000}}
    • 效果按钮文本
  • {{按钮|按钮文本|styles=background-color:#34b324;color:#fFFFFF}}
    • 效果按钮文本


模板数据

参数列表
参数 描述 类型 状态
文本 1 按鈕文本 字串 必填
颜色 color blue為藍色,red為紅色,其他值為白色 字串 選填