Template:Tag:修订间差异

删除的内容 添加的内容
enwiki>Andrybak
Fix `|style=plain` in dark mode. See Template:Tag/testcases#Plain style
 
IdleTap-bot​(留言 | 贡献)
导入自求闻百科
 
第1行:
{{#ifexpr:{{{highlight|0}}}
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;color:inherit;|{{{style|}}}}}"><!--
|<!-- 有高亮模式 -->{{#tag:syntaxhighlight|
Opening tag
-->{{#switch:{{{2|pair}}}
|c|close = <!--nothing-->
|e|empty |s|single|v|void
|o|open
|p|pair|#default = &lt;{{#if:{{{link|}}}|[[HTML element#<{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;<nowiki/> {{{params|{{{attribs}}}}}}}}
-->}}{{#switch:{{{2|pair}}}▼
}}<!--
|c|close = {{{content|}}}
Content between tags
|s|single = <nowiki/> />
▲-->{{#switch:{{{2|pair}}}
|co|closeopen = >{{{content|}}}
|p|pair| = {{#ifeq:{{{1|tag}}}|!--||&gt;}}>{{{content|...}}}▼
|e|empty|s|single|v|void = &#32;&#47;&gt;▼
|o|open#default = &gt;>{{{2|{{{content|}}}}}}
-->}}{{#switch:{{{2|pair}}}▼
▲ |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|s|single
}}<!--
|o|open = <!--nothing-->
Closing tag
|c|close▼
▲-->{{#switch:{{{2|pair}}}
|p|pair|#default = </{{{1|tag}}}>
|e|empty|s|single|v|void
}}
|o|open =▼
|inline={{{inline|1}}}|lang=html}}<!-- 有高亮模式结束 -->
▲ |c|close
|p|pair<!-- =无高亮模式 -->{{#ifeqifexpr:{{{1bare|tag0}}}|!--|<code class="tag--&gt;|&lt;&template">}}{{#47;switch:{{{12|tag}}}&gt;}}
|c|close = <!--nothing-->
}}<!--
|s|single
--></code><noinclude>
▲ |o|open =
{{Documentation}}
|p|pair|#default = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params|}}}}}
}}{{#switch:{{{2|}}}
|c|close = {{{content|}}}
▲ |e|empty |s|single|v|void = &#32;&#47;&gt;
|o|open = &gt;{{{content|}}}
|p|pair| = &gt;{{{content|...}}}
|#default = &gt;{{{2|{{{content|}}}}}}
}}{{#switch:{{{2|}}}
|s|single
|o|open = <!--nothing-->
|c|close
|p|pair|#default = &lt;&#47;{{{1|tag}}}&gt;
}}{{#ifexpr:{{{bare|0}}}||</code>}}<!-- 无高亮模式结束 -->}}<noinclude>
{{documentation}}
</noinclude>