模板:Info:修订间差异
RavenclawOIer(讨论 | 贡献) 小 (导入9个版本:info) |
RavenclawOIer(讨论 | 贡献) 无编辑摘要 |
||
| 第1行: | 第1行: | ||
{|class="common-box" style="margin: 0 {{{margin-h|auto}}}; width:{{{width|80%}}}; background: #f8f9fa; border-left: 10px solid {{{color|#1e90ff}}}; box-shadow:0 1px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 2px 1px -2px rgba(0,0,0,.2)" | {|class="common-box" style="margin: 0 {{{margin-h|auto}}}; width:{{{width|80%}}}; background: #f8f9fa; border-left: 10px solid {{{color|#1e90ff}}}; box-shadow:0 1px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 2px 1px -2px rgba(0,0,0,.2)" | ||
|- | |- | ||
| style="padding: 2px 0 2px 0.5em" | {{{leftimage|[[image:Icon-info. | | style="padding: 2px 0 2px 0.5em" | {{{leftimage|[[image:Icon-info.webp|50px|link=]]}}} | ||
| style="padding: 0.25em 0.5em"| <div style="{{{text-style|}}}">{{{text|{{{1|'''Nothing here (⊙_⊙)'''<br />Did you forget <code>text=</code> or <code>1=</code>?}}}}}}</div> | | style="padding: 0.25em 0.5em"| <div style="{{{text-style|}}}">{{{text|{{{1|'''Nothing here (⊙_⊙)'''<br />Did you forget <code>text=</code> or <code>1=</code>?}}}}}}</div> | ||
|} | |} | ||
<noinclude>{{doc}}</noinclude> | <noinclude>{{doc}}</noinclude> | ||
2020年3月23日 (一) 21:39的版本
| 文件:Icon-info.webp | Nothing here (⊙_⊙)
Did you forget text= or 1=? |
{
"params": {
"1": {
"aliases": [
"text"
],
"label": "text",
"description": "Text to be placed within the main body.",
"example": "Hi, this is a info box!",
"type": "string",
"required": true
},
"width": {
"description": "width of the template. Use CSS units; % often used.",
"example": "100px, 50%;",
"type": "string",
"default": "80%"
},
"color": {
"description": "Color of the left bar. Use CSS color.",
"example": "red, #6527CB, rgb(245,135,38) (rgba not recommended)",
"type": "string",
"default": "#1e90ff"
},
"leftimage": {
"description": "An image to be placed to the left of the info box. Internal file link recommended, although external URL could be accepted.",
"example": "
",
"type": "wiki-file-name",
"default": "
",
"suggested": true
},
"text-style": {
"description": "Additional text styles, applicable to the text argument.",
"type": "string"
}
},
"description": "Meta template for creating a variety of informational templates. Can also be used on its own.",
"paramOrder": [
"1",
"width",
"color",
"leftimage",
"text-style"
],
"format": "block"
}
| 上述文档嵌入自模板:Info/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |