(创建页面,内容为“<includeonly><div class="infoBox {{{class|}}}" style="{{#ifeq:{{{type|}}}|middle|display:flow-root;}}{{#switch:{{{type|none}}}|middle|none={{#if:{{{width|}}}|width:{{{width}}};}}}}max-width:100%;border-left: 10px solid {{{color|#1e90ff}}};"><div class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}};"}}> {{#if:{{{title|}}}|<div class="infoBoxTitle" style="{{{title-style|}}}">{{{title}…”) |
小 (导入1个版本:从萌百导入“星空列车与白的旅行”相关页面) |
2024年5月19日 (日) 00:39的版本
效果预览
不填写任何参数时,效果如下。
警告!你还没有添加任何内容
简要说明
- 参数
text为必填,其他参数均为选填。- 也可以直接使用参数
1。例如{{Info|内容}}和{{Info|text=内容}}是等价的。
- 也可以直接使用参数
- 可以使用参数title来增加一个标题,也可以用参数below增加一个脚注。
- 在使用该模板制作其他模板时,可以使用参数
type填写分类。top(默认)为【页顶提示模板】,middle为【页中提示模板】,none为没有分类。
完整参数
{{info
|width=
|color=
|backgroundColor=
|leftimage=
|icon-style=
|smallimage=
|title=
|title-style=
|text=
|text-style=
|below=
|below-style=
|class=
|type=
}}
参数解析
{{info
|width = <!-- 模板宽度,默认为80% -->
|color = <!-- 左侧竖条颜色,默认为 #1e90ff -->
|backgroundColor = <!-- 背景颜色,默认为 #fbfbfb -->
|leftimage = <!-- 左侧图标,默认为 [[image:Icon-info.png|50px|link=]],会覆盖参数{{{smallimage}}}-->
|icon-style = <!-- 图标样式 -->
|smallimage = <!-- 图标大小。参数值不为空时,图标大小为25px,否则为50px -->
|title = <!-- 标题内容 -->
|title-style = <!-- 标题样式,格式为行内样式(inline style),如 color: red; font-style: italic; -->
|text = <!-- 文本内容,等效于{{{content}}}和{{{1}}} -->
|text-style = <!-- 文本样式,等效于{{{content-style}}} -->
|below = <!-- 底部内容 -->
|below-style = <!-- 底部样式 -->
|class = <!-- 模板额外class -->
|type = <!-- 模板类型,仅供模板页使用:top为【页顶提示模板】,middle为【页中提示模板】,none为没有分类;在模板页中默认为页顶提示模板,非模板页中默认为没有分类 -->
}}
| 上述文档嵌入自模板:Info/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |