Template:Info:修订间差异
跳到导航
跳到搜索
imported>=海豚= 无编辑摘要 |
(( ̄▽ ̄)) |
||
(未显示2个用户的8个中间版本) | |||
第1行: | 第1行: | ||
<div class="nomobile | <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|[[ | {{#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> | </div></div> | ||
<noinclude>{{doc}}</noinclude> | <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}} | |||
---- | |||
<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> |
2022年12月29日 (四) 20:16的最新版本
警告!你还没有添加任何内容
警告!你还没有添加任何内容
结构[编辑源代码]
{{Info |class= |width= 默认值是80% |color= 默认值是#1e90ff |title-style= |title= |icon-style= |leftimage= 默认值是[[File:Icon-info.png|50px|link=]] |text-style= |text= 默认值是'''警告!你还没有添加任何内容''' |below-style= |below= }}
{{Info |class= |width= |color= |title-style= |title= |icon-style= |leftimage= |text-style= |text= |below-style= |below= }}
所有参数都可以留空或者删去,但是会使模板失去作用,不写任何东西的效果见上面的【效果预览】。
除了|text= 以外的所有参数留空或者删去是合理的用法。
|text=可以用参数【1】代替
可以使用参数title来增加一个标题
可以使用参数below来增加一个页脚
举例说明[编辑源代码]
{{info |width=50% |title=欢迎来到H萌娘! |text= 欢迎使用info模板框,这个模板是所有模板的父模板 |class= infoBoxRed |text-style= color: red; font-weight: bold; font-style: italic; |leftimage= [[image:Icon-info.png|50px|link=]] |color= red |below=H萌娘,万物皆可H! |class= }}
页顶提示框模板
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
1 | 1 | 提示的内容
| 内容 | 推荐 |
color | color | 左边缘竖线颜色
| 未知 | 可选 |
backgroundColor | backgroundColor | 背景颜色
| 未知 | 可选 |
leftimage | leftimage | 选用的图片
| 文件 | 可选 |
fontcolor | fontcolor | 文字颜色
| 未知 | 可选 |
size | size | 图片大小
| 数字 | 可选 |
title | title | 标题 | 内容 | 可选 |
title-style | title-style | 标题样式 | 未知 | 可选 |
icon-style | icon-style | 图片样式 | 未知 | 可选 |
text-style | text-style | 内容样式 | 未知 | 可选 |
text | text | 提示的内容 | 内容 | 可选 |
width | width | 无描述 | 数字 | 可选 |
class | class | 无描述 | 未知 | 可选 |
below | below | 无描述 | 未知 | 可选 |
below-style | below-style | 无描述 | 未知 | 可选 |