全站通知:
模板:Info
刷
历
编
跳到导航
跳到搜索
效果预览
不填写任何参数时,效果如下。
警告!你还没有添加任何内容
简要说明
- 参数
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为没有分类;在模板页中默认为页顶提示模板,非模板页中默认为没有分类 -->
}}

沪公网安备 31011002002714 号