模板:Info:修订间差异

来自兽耳维基
(+)
 
(+)
 
第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|#1e90ff}}};"><div class="infoBoxContent" {{#if:{{{backgroundColor|}}}|style="border-color:{{{backgroundColor}}};background-color:{{{backgroundColor}}};"}}>
<onlyinclude>{{#if: {{{1|{{{content|{{{text|{{{demo|<noinclude>demo</noinclude>}}}}}}}}}}}} | <templatestyles src="Info/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}}
{{#if:{{{title|}}}|<div class="infoBoxTitle" style="{{{title-style|}}}">{{{title}}}</div>}}<div class="infoBoxIcon" style="{{{icon-style|}}}">{{{leftimage|[[image:Icon-info.png|{{#if:{{{smallimage|}}}|25px|50px}}|link=]]}}}</div><div class="infoBoxText" style="{{{text-style|}}}{{{content-style|}}}">{{{text|{{{content|{{{1|'''警告!你还没有添加任何内容'''}}}}}}}}}</div>{{#if:{{{below|}}}|<div class="infoBoxBelow" style="{{{below-style|}}}">{{{below}}}</div>}}
    |gotcha=error
</div></div></includeonly><noinclude>{{Documentation}}</noinclude>
    |warning=warn
    |notice=info
    |=info
    |#default={{{2|{{{type|}}}}}}
    }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{content|{{{text}}}}}}}}}</div>
  | [[File:OOjs UI icon lightbulb-yellow.svg|18px|alt=Note|link=]]&nbsp;'''注意:''' }}<!--
--></onlyinclude>
{{documentation|content=
== 用法 ==
<pre>
{{Note|text=Foo}}
{{Note|type=info|text=Foo}}
{{Note|type=reminder|text=Foo}}
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}}宽松测试
 
* 文本 {{Note|inline=1|text=Foo}}
</pre>
{{Note|text=Foo}}
{{Note|type=info|text=Foo}}
{{Note|type=reminder|text=Foo}}
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}}宽松测试
 
* 文本 {{Note|inline=1|text=Foo}}
}}

2025年2月10日 (一) 15:57的最新版本

{{{text}}}

脚本错误:没有“documentation”这个模块。