Template:按钮:修订间差异

此后如竟没有炬火,我便是唯一的光。
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
第1行: 第1行:
<includeonly><span class="xd-button {{#switch: {{{colour|}}}|红 = xd-red|紅 = xd-red|蓝 = xd-blue|藍 = xd-blue|xd-blue}} {{{class|}}}" style="{{{style|}}}" title="{{{2|按钮}}}">{{#if: {{{url|}}}|[{{{url}}} {{{2|按钮}}}]|
<includeonly><span class="xd-button {{#switch: {{{colour|}}}|红 = xd-red|紅 = xd-red|蓝 = xd-blue|藍 = xd-blue|xd-white}} {{{class|}}}" style="{{{style|}}}" title="{{{2|按钮}}}">{{#if: {{{url|}}}|[{{{url}}} {{{2|按钮}}}]|
{{#if:{{{1|}}}|[[{{{1}}}|{{{2|按钮}}}]]|{{{2|按钮}}}}}
{{#if:{{{1|}}}|[[{{{1}}}|{{{2|按钮}}}]]|{{{2|按钮}}}}}
}}</span></includeonly><noinclude>
}}</span></includeonly><noinclude>

2024年3月4日 (一) 16:43的版本

生成按钮。

例如

{{按钮|希顶字母|按钮显示文字|colour = 红}}

将转换为 按钮显示文字

{{按钮||按钮显示文字|url = https://xdi8.top/|colour = 藍}}

将转换为 按钮显示文字。(为「红」「紅」「蓝」「藍」作了容错)