跳转到内容

Template:Tag:修订间差异

轻之舟百科,让知识轻装启航
删除的内容 添加的内容
enwiki>Andrybak
Fix `|style=plain` in dark mode. See Template:Tag/testcases#Plain style
 
IdleTap-bot​(留言 | 贡献)
导入自求闻百科
 
第1行: 第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}}}
{{#switch:{{{2|}}}
|c|close =
|c|close = <!--nothing-->
|e|empty|s|single|v|void
|s|single
|o|open
|o|open
|p|pair = &lt;{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
|p|pair|#default = <{{{1|tag}}}{{#if:{{{params|}}}|<nowiki/> {{{params|}}}}}
⚫
}}{{#switch:{{{2|}}}
}}<!--
|c|close = {{{content|}}}
Content between tags
|s|single = <nowiki/> />
⚫
-->{{#switch:{{{2|pair}}}
|c|close = {{{content|}}}
|o|open = >{{{content|}}}
⚫
|p|pair| = >{{{content|...}}}
⚫
|e|empty|s|single|v|void = &#32;&#47;&gt;
|o|open = &gt;{{{content|}}}
|#default = >{{{2|{{{content|}}}}}}
⚫
}}{{#switch:{{{2|}}}
⚫
|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 = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
|<!-- 无高亮模式 -->{{#ifexpr:{{{bare|0}}}||<code class="tag-template">}}{{#switch:{{{2|}}}
|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|}}}
⚫
|s|single = &#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>
</noinclude>

2026年8月3日 (一) 06:35的最新版本

<tag>...</tag>