Template:RTInfo:修订间差异
来自魔学
创建页面,内容为“<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|#17abe3}}};"><div class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}};"}}> <div class="infoBoxTitle" style="{{{title-style|}}}">本文底本系转载而来<…” |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
<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|# | <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|#347fff}}};"><div class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}};"}}> | ||
<div class="infoBoxIcon" style="{{{icon-style|}}}">[[image:Icon-RT.png|{{#if:{{{smallimage|}}}|25px|50px}}|link=]]</div><div class="infoBoxText" style="{{{text-style|}}}{{{content-style|}}}"><b>本文底本系转载而来</b><br>本页最初由{{{1|'''警告!你还没有添加任何内容'''}}}转载而来。经过两方的独立修改,内容可能已经变得不同。</div>{{#if:{{{below|}}}|<div class="infoBoxBelow" style="{{{below-style|}}}">{{{below}}}</div>}} | |||
</div></div>{{TemplateCate|{{#switch:{{{type|}}} | </div></div>{{TemplateCate|{{#switch:{{{type|}}} | ||
|top=页顶提示模板 | |top=页顶提示模板 | ||
2023年4月2日 (日) 13:21的最新版本
效果预览
不填写任何参数时,效果如下。
本文底本系转载而来
本页最初由警告!你还没有添加任何内容转载而来。经过两方的独立修改,内容可能已经变得不同。
本页最初由警告!你还没有添加任何内容转载而来。经过两方的独立修改,内容可能已经变得不同。
简要说明
- 第一个参数
1为必填,其他参数均为选填。 - 可以用参数below增加一个脚注。
- 在使用该模板制作其他模板时,可以使用参数
type填写分类。top(默认)为【页顶提示模板】,middle为【页中提示模板】,none为没有分类。
完整参数
{{info
|width=
|color=
|backgroundColor=
|leftimage=
|icon-style=
|smallimage=
|title-style=
|text-style=
|below=
|below-style=
|class=
|type=
}}
参数解析
{{info
|width = <!-- 模板宽度,默认为80% -->
|color = <!-- 左侧竖条颜色,默认为 #1e90ff -->
|backgroundColor = <!-- 背景颜色,默认为 #fbfbfb -->
|leftimage = <!-- 左侧图标,默认为 [[image:Icon-RT.png|50px|link=]],会覆盖参数{{{smallimage}}}-->
|icon-style = <!-- 图标样式 -->
|smallimage = <!-- 图标大小。参数值不为空时,图标大小为25px,否则为50px -->
|title-style = <!-- 标题样式,格式为行内样式(inline style),如 color: red; font-style: italic; -->
|text-style = <!-- 文本样式,等效于{{{content-style}}} -->
|below = <!-- 底部内容 -->
|below-style = <!-- 底部样式 -->
|class = <!-- 模板额外class -->
|type = <!-- 模板类型,仅供模板页使用:top为【页顶提示模板】,middle为【页中提示模板】,none为没有分类;在模板页中默认为页顶提示模板,非模板页中默认为没有分类 -->
}}