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|}}} |
|||
|c|close = <!--nothing--> |
|||
|s|single |
|||
|o|open |
|||
|p|pair|#default = <{{{1|tag}}}{{#if:{{{params|}}}|<nowiki/> {{{params|}}}}} |
|||
| ⚫ | |||
}}<!-- |
|||
|c|close = {{{content|}}} |
|||
Content between tags |
|||
|s|single = <nowiki/> /> |
|||
| ⚫ | |||
|o|open = >{{{content|}}} |
|||
| ⚫ | |||
| ⚫ | |||
|#default = >{{{2|{{{content|}}}}}} |
|||
| ⚫ | |||
| ⚫ | |||
|s|single |
|||
}}<!-- |
|||
|o|open = <!--nothing--> |
|||
Closing tag |
|||
| ⚫ | |||
| ⚫ | |||
|p|pair|#default = </{{{1|tag}}}> |
|||
|e|empty|s|single|v|void |
|||
}} |
|||
| ⚫ | |||
|inline={{{inline|1}}}|lang=html}}<!-- 有高亮模式结束 --> |
|||
| ⚫ | |||
|<!-- 无高亮模式 -->{{#ifexpr:{{{bare|0}}}||<code class="tag-template">}}{{#switch:{{{2|}}} |
|||
|c|close = <!--nothing--> |
|||
}}<!-- |
|||
|s|single |
|||
--></code><noinclude> |
|||
| ⚫ | |||
{{Documentation}} |
|||
|p|pair|#default = <{{{1|tag}}}{{#if:{{{params|}}}| {{{params|}}}}} |
|||
}}{{#switch:{{{2|}}} |
|||
|c|close = {{{content|}}} |
|||
| ⚫ | |||
|o|open = >{{{content|}}} |
|||
|p|pair| = >{{{content|...}}} |
|||
|#default = >{{{2|{{{content|}}}}}} |
|||
}}{{#switch:{{{2|}}} |
|||
|s|single |
|||
|o|open = <!--nothing--> |
|||
|c|close |
|||
|p|pair|#default = </{{{1|tag}}}> |
|||
}}{{#ifexpr:{{{bare|0}}}||</code>}}<!-- 无高亮模式结束 -->}}<noinclude> |
|||
{{documentation}} |
|||
</noinclude> |
</noinclude> |
||