跳转到内容

Template:Info:修订间差异

计算器百科,非营利的计算器专业知识百科。
春上冰月留言 | 贡献
无编辑摘要
春上冰月留言 | 贡献
无编辑摘要
 
(未显示同一用户的4个中间版本)
第1行: 第1行:
<includeonly>
<includeonly><div class="infoBox" style="width:{{{width|80%}}};border-left: 10px solid {{{color|#1e90ff}}};background-color:{{{backgroundColor|rgb(249,249,249)}}};border-top: 1px solid #aaa;border-right: 1px solid #aaa;border-bottom: 1px solid #aaa;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;"><div class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}}"}}><div class="infoBoxIcon" style="{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}{{{icon-style|}}};display: table-cell;padding: 2px 0 2px .5em;vertical-align: middle;">{{{leftimage|[[image:Icon-info.png|50px|link=]]}}}</div>
<div class="infoBox" style="width:{{{width|80%}}};border-left: 10px solid {{{color|#1e90ff}}};background-color:{{{backgroundColor|rgb(249,249,249)}}};border-top: 1px solid #aaa;border-right: 1px solid #aaa;border-bottom: 1px solid #aaa;">
<div class="infoBoxText" style="{{{text-style|}}};display: table-cell;padding: .25em .5em .25em 1.3em;width: 100%;vertical-align: middle;">{{{text|{{{1|'''警告!你还没有添加任何内容'''}}}}}}</div></div></div></includeonly><noinclude>
<div class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}}"}}>
<div class="infoBoxIcon" style="{{#if:{{{backgroundColor|}}}|background-color:{{{backgroundColor}}};}}{{{icon-style|}}};display: table-cell;padding: 2px 0 2px .5em;vertical-align: middle;">{{{leftimage|[[image:Icon-info.png|50px|link=]]}}}</div>
<div class="infoBoxText" style="{{{text-style|}}};display: table-cell;padding: .25em .5em .25em 1.3em;width: 100%;vertical-align: middle;">{{{text|{{{1|'''警告!你还没有添加任何内容'''}}}}}}</div>
</div></div>
</includeonly>
<noinclude>
{{Info}}
{{Info}}
一个简易的模板框,适用于各种需要挂警告、禁止的情形


参数如下
{{Documentation}}
{{Code|<nowiki>{{info
</noinclude><noinclude>[[Category:元模板‎]]</noinclude>
|width=50%
|text= 欢迎使用info模板框
|text-style= color: red; font-weight: bold; font-style: italic;
|leftimage= [[image:Icon-info.png|50px|link=]]
|color= red
|backgroundColor=rgb(249,249,249)
}}
</nowiki>}}
 
上面的代码产生的效果
{{info
|width=50%
|text= 欢迎使用info模板框
|text-style= color: red; font-weight: bold; font-style: italic;
|leftimage= [[image:Icon-info.png|50px|link=]]
|color= red
|backgroundColor=rgb(249,249,249)
}}
基本上所有参数都有默认值,如果你不带任何参数使用此模板
{{Code|<nowiki>{{Info}}</nowiki>}}
效果:
{{Info}}
</noinclude>
<noinclude>[[Category:元模板‎]]</noinclude>

2016年2月19日 (五) 07:05的最新版本

警告!你还没有添加任何内容
模板文档  [查看] [编辑] [历史] [刷新]

一个简易的模板框,适用于各种需要挂警告、禁止的情形

参数如下

{{info |width=50% |text= 欢迎使用info模板框 |text-style= color: red; font-weight: bold; font-style: italic; |leftimage= [[image:Icon-info.png|50px|link=]] |color= red |backgroundColor=rgb(249,249,249) }}

上面的代码产生的效果

欢迎使用info模板框

基本上所有参数都有默认值,如果你不带任何参数使用此模板

{{Info}}

效果:

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