打开/关闭菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:链接按钮:修订间差异

模板页面
删除的内容 添加的内容
JerryHan3留言 | 贡献
添加类别
JerryHan3留言 | 贡献
无编辑摘要
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
{{#if:{{{external|}}}
{{#if:{{{disabled|}}}
|<span class="plainlinks">[{{{link|https://chinadlrs.com/}}} <span class="mw-ui-button mw-ui-progressive mw-ui-small" {{#if:{{{color|}}}|style="border-color: {{{color|}}}; background-color: {{{color|}}}"|}}>{{{text|DL·RS 同人群官方网站}}}</span>]</span>
|<span class="mw-ui-button mw-ui-{{{mode|progressive}}} mw-ui-small" style="background-color:#c8ccd1;color:#ffffff;border-color:#c8ccd1;cursor:default;pointer-events:none;">{{{text|首页}}}</span>
|{{#if:{{{external|}}}
|[[{{{link|首页}}}|<span class="mw-ui-button mw-ui-progressive mw-ui-small" {{#if:{{{color|}}}|style="border-color: {{{color|}}}; background-color: {{{color|}}}"|}}>{{{text|首页}}}</span>]]
|<span class="plainlinks">[{{{link|https://chinadlrs.com/}}} <span class="mw-ui-button mw-ui-progressive mw-ui-small" {{#if:{{{color|}}}|style="border-color: {{{color|}}}; background-color: {{{color|}}}"|}}>{{{text|DL·RS 同人群官方网站}}}</span>]</span>
}}<noinclude>
|[[{{{link|首页}}}|<span class="mw-ui-button mw-ui-{{{mode|progressive}}} mw-ui-small" {{#if:{{{color|}}}|style="border-color: {{{color|}}}; background-color: {{{color|}}}"|}}>{{{text|首页}}}</span>]]
}}}}<noinclude>
{{doc}}
{{doc}}
<templatedata>
<templatedata>
第9行: 第11行:
"external": {
"external": {
"description": "决定按钮指向的是内链还是外链。留空为内链,填1为外链。",
"description": "决定按钮指向的是内链还是外链。留空为内链,填1为外链。",
"type": "number",
"type": "boolean",
"suggestedvalues": [
"suggestedvalues": [
"1"
"1"
]
],
"label": "外链"
},
},
"link": {
"link": {
"description": "指定按钮所链接到的页面。external参数为空时填写页面的’‘’完整名称‘’‘(包括命名空间),参数不为空时填写外部URL。",
"description": "指定按钮所链接到的页面。external参数为空时填写页面的’‘’完整名称‘’‘(包括命名空间),参数不为空时填写外部URL。",
"type": "content",
"type": "content",
"required": true
"required": true,
"label": "目标链接"
},
},
"color": {
"color": {
"description": "指定按钮的颜色。",
"description": "指定按钮的颜色。",
"type": "line"
"type": "line",
"label": "颜色",
"example": "#C00000"
},
},
"text": {
"text": {
"description": "指定按钮上显示的文本。",
"description": "指定按钮上显示的文本。",
"type": "line",
"type": "unbalanced-wikitext",
"required": true
"required": true,
"label": "按钮文本"
},
"disabled": {
"description": "填入数据以禁用按钮。",
"type": "boolean",
"suggestedvalues": [
"1"
],
"label": "禁用"
},
"mode": {
"label": "模式",
"description": "使用OOUI按钮的默认模式。",
"type": "string",
"suggestedvalues": [
"progressive",
"default",
"destructive"
]
}
}
},
},
第34行: 第59行:
"link",
"link",
"text",
"text",
"color"
"mode",
"color",
]
"disabled"
],
"format": "inline"
}
}
</templatedata>
</templatedata>
我们为您提供服务需要使用Cookie。使用我们的服务即表示您同意我们使用Cookie。