「Template:Info」:修訂間差異

增加 1,398 位元組 、​ 2021年7月4日 (星期日)
無編輯摘要
imported>=海豚=
無編輯摘要
imported>=海豚=
無編輯摘要
第5行: 第5行:
{{#if:{{{title|}}}|<div class="infoBoxTitle" style="{{{title-style|}}}">{{{title}}}</div>}}<div class="infoBoxIcon" style="{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}{{{icon-style|}}}"></div><div class="infoBoxText" style="{{{text-style|}}}">{{{text|{{{1|'''警告!你还没有添加任何内容'''}}}}}}</div>{{#if:{{{below|}}}|<div class="infoBoxBelow" style="{{{below-style|}}}">{{{below}}}</div>}}
{{#if:{{{title|}}}|<div class="infoBoxTitle" style="{{{title-style|}}}">{{{title}}}</div>}}<div class="infoBoxIcon" style="{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}{{{icon-style|}}}"></div><div class="infoBoxText" style="{{{text-style|}}}">{{{text|{{{1|'''警告!你还没有添加任何内容'''}}}}}}</div>{{#if:{{{below|}}}|<div class="infoBoxBelow" style="{{{below-style|}}}">{{{below}}}</div>}}
</div></div>
</div></div>
<noinclude>{{doc}}</noinclude>
<noinclude>{{doc}}
 
 
----
<center><templatedata>
{
"params": {
"1": {
"description": "提示的内容",
"suggested": true,
"type": "content",
"autovalue": "",
"default": "警告!你还没有添加任何内容"
},
"color": {
"description": "左边缘竖线颜色",
"default": "#1e90ff"
},
"fontcolor": {
"description": "文字颜色",
"default": "#E6B800"
},
"size": {
"description": "图片大小",
"type": "number",
"default": "50px"
},
"title": {
"description": "标题",
"type": "content"
},
"title-style": {
"description": "标题样式"
},
"icon-style": {
"description": "图片样式"
},
"text-style": {
"description": "内容样式"
},
"text": {
"description": "提示的内容",
"type": "content"
},
"backgroundColor": {
"description": "背景颜色",
"default": "rgba(255,255,245)"
},
"leftimage": {
"description": "选用的图片",
"type": "wiki-file-name",
"default": "[[image:Icon-info.png|50px|link=]]"
},
"width": {
"type": "number"
},
"class": {},
"below": {},
"below-style": {}
},
"description": "页顶提示框模板",
"paramOrder": [
"1",
"color",
"backgroundColor",
"leftimage",
"fontcolor",
"size",
"title",
"title-style",
"icon-style",
"text-style",
"text",
"width",
"class",
"below",
"below-style"
]
}
</templatedata></center></noinclude>
匿名用戶