The editors' meeting has been canceled for technical reasons.

Template:Info/doc:修订间差异

来自NeuroWiki
跳转到导航 跳转到搜索
创建页面,内容为“{{High-risk|各类模板及大量}} == 效果预览 == 不填写任何参数时,效果如下。 {{info}} == 简要说明 == * 参数<code>text</code>为必填,其他参数均为选填。 ** 也可以直接使用参数<code>1</code>。例如<code><nowiki>{{Info|内容}}</nowiki></code>和<code><nowiki>{{Info|text=内容}}</nowiki></code>是等价的。 * 可以使用参数title来增加一个标题,也可以用参数below增加一个脚注。 * 在使用…”
 
无编辑摘要
 
第52行: 第52行:
}}
}}
</pre>
</pre>
<includeonly>[[en:Template:Info]]</includeonly><noinclude>[[Category:模板文档]]</noinclude>
<includeonly></includeonly><noinclude>[[en:Template:Info/doc]][[Category:模板文档]]</noinclude>

2025年1月12日 (日) 23:49的最新版本

Template:High-risk

效果预览

不填写任何参数时,效果如下。

警告!你还没有添加任何内容

简要说明

  • 参数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为没有分类;在模板页中默认为页顶提示模板,非模板页中默认为没有分类 -->
}}