模板:Info:修订间差异

添加1,411字节 、​ 2023年2月17日 (星期五)
已保护“模板:Info”:​高流量页面([编辑=允许巡查员和管理员](无限期)[移动=允许巡查员和管理员](无限期))
(// Edit via Wikiplus)
(已保护“模板:Info”:​高流量页面([编辑=允许巡查员和管理员](无限期)[移动=允许巡查员和管理员](无限期)))
 
(未显示2个用户的6个中间版本)
<includeonly><templatestyles src="Info/style.css" /><div class="mw-parser-output"><div class="infoBox {{{class|}}}" style="width:{{{width|80%}}};border-left: 10px solid {{{color|#1e90ff}}};{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}"><div class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}};"}}>
{{#if:{{{title|}}}|<div class="infoBoxTitle" style="{{{title-style|}}}">{{{title}}}</div>}}<div class="infoBoxIcon" style="{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}{{{icon-style|}}}">{{{leftimage|[[image:Icon-info.png|{{#if:{{{smallimage|}}}|25px|50px}}|link=]]}}}</div><div class="infoBoxText" style="{{{text-style|}}}{{{content-style|}}}">{{{text|{{{content|{{{1|'''警告!你还没有添加任何内容'''}}}}}}}}}</div>{{#if:{{{below|}}}|<div class="infoBoxBelow" style="{{{below-style|}}}">{{{below}}}</div>}}
</div></div></div>{{#ifeq:{{NAMESPACENUMBER}}|10|{{#switch:{{{type|}}}
| top = [[Category:页顶提示模板]]
| middle = [[Category:页中提示模板]]
| #default = [[Category:页顶提示模板]] }}|}}</includeonly><noinclude>
{{Documentation}}
[[分类:元模板]]</noincludetemplatedata>
{
"params": {
"text": {
"aliases": [
"1",
"content"
],
"label": "内容",
"type": "content",
"required": true
},
"title": {
"label": "标题",
"type": "content"
},
"width": {
"label": "宽度",
"type": "string",
"default": "80%"
},
"color": {
"label": "左边框颜色",
"type": "string",
"default": "#1e90ff"
},
"text-style": {
"label": "文本样式",
"type": "string"
},
"backgroundColor": {
"label": "背景颜色",
"type": "string"
},
"below": {
"label": "页脚",
"type": "content"
},
"leftimage": {
"label": "左侧图标",
"type": "content",
"default": "[[image:Icon-info.png|50px|link=]]"
},
"smallimage": {
"label": "图标大小",
"type": "string",
"default": "50px"
},
"class": {
"label": "类名",
"type": "string"
},
"type": {
"label": "模板类型",
"description": "可以是:top / middle / none"
},
"title-style": {
"label": "标题样式",
"type": "string"
},
"icon-style": {
"label": "图标样式",
"type": "string"
},
"content-style": {
"label": "内容样式",
"type": "string"
},
"below-style": {
"label": "页脚样式",
"type": "string"
}
},
"description": "消息提示框",
"format": "block"
}
</templatedata></noinclude>
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,462

个编辑