Template:Info:修订间差异

添加1,455字节 、​ 2022年12月29日 (星期四)
( ̄▽ ̄)
imported>Hice
(创建页面,内容为“<includeonly><div class="infoBox {{{class|}}}" style="width:{{{width|80%}}};border-left: 10px solid {{{color|#1e90ff}}};{{#if:{{{backgroundColor|}}}|background-color...”)
 
(( ̄▽ ̄))
 
(未显示4个用户的58个中间版本)
第1行: 第1行:
<includeonly><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}}};"}}>
<div class="nomobile infoBox infoBoxx" style="width:{{{width|}}};{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}"><div class="{{{class|infoBoxContent new}}}" style="border-left: 9.7px solid {{{color|#1e90ff}}};{{#if:{{{backgroundColor|}}}|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|50px|link=]]}}}</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|}}}">{{{leftimage|[[File:Icon-info.png|50px|link=]]}}}</div><div class="infoBoxText" style="{{{text-style|}}}">{{{text|{{{1|'''警告!你还没有添加任何内容'''}}}}}}</div>{{#if:{{{below|}}}|<div class="infoBoxBelow" style="{{{below-style|}}}">{{{below}}}</div>}}
</div></div></includeonly><noinclude>
</div></div>
<div class="mobileonly" style="width:100%;{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}"><div class="{{{class|infoBoxOrange}}}" style="border-left: 10px solid {{{color|#1e90ff}}};{{#if:{{{backgroundColor|}}}|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|}}}"></div><div class="infoBoxText" style="{{{text-style|}}}">{{{text|{{{1|'''警告!你还没有添加任何内容'''}}}}}}</div>{{#if:{{{below|}}}|<div class="infoBoxBelow" style="{{{below-style|}}}">{{{below}}}</div>}}
</div></div>
<noinclude>{{doc}}


这是效果预览
{{info}}


举例说明:
----
 
<center><templatedata>
 除了|text= 以外都可以留空或者删去,不写任何东西 效果见上面的【效果预览】
{
|text=可以用参数【1】代替
"params": {
{{color|red|新增功能:可以使用参数title来增加一个标题 也可以用参数below增 一个页脚!}}
"1": {
<pre>
"description": "提示 内容",
{{info
"suggested": true,
|width=50%
"type": "content",
|title=欢迎来到萌娘百科!
"autovalue": "",
|text= 欢迎使用info模板框,这个模板是所有模板的父模板
"default": "警告 你还没有添 任何内容"
|text-style= color: red; font-weight: bold; font-style: italic;
},
|leftimage= [[image:Icon-info.png|50px|link=]]
"color": {
|color= red
"description": "左边缘竖线颜色",
|backgroundColor=
"default": "#1e90ff"
|below=萌娘百科,万物皆可萌!
},
|class=
"fontcolor": {
}}
"description": "文字颜色",
</pre>
"default": "#E6B800"
</noinclude>
},
<noinclude>[[Category:元模板‎]]</noinclude>
"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>
244

个编辑