“模板:Tag”的版本间差异
跳到导航
跳到搜索
L>Tang891228 小 (代碼應使用英文規範) |
L>Pppery (Undid revision 3905257 by 2600:1702:1350:87D0:5491:691B:8A51:8E1C (talk)) |
||
第1行: | 第1行: | ||
<code style="white-space:nowrap | {{#if:{{{plain|}}}| | ||
|<code style="white-space:nowrap"> | |||
}}{{#switch:{{{2|pair}}} | |||
|c|close = <!--nothing--> | |c|close = <!--nothing--> | ||
|s|single | |s|single | ||
|o|open | |o|open | ||
|p|pair = <{{{1|tag}}}{{#if: | |p|pair = <{{{1|tag}}}{{#if:{{{params|}}}| {{{params}}}}} | ||
}}{{#switch:{{{2|pair}}} | }}{{#switch:{{{2|pair}}} | ||
|c|close | |c|close = {{{content|}}} | ||
|s|single =  /> | |s|single =  /> | ||
|o|open | |o|open = >{{{content|}}} | ||
|p|pair = > | |p|pair = >{{{content|...}}} | ||
}}{{#switch:{{{2|pair}}} | }}{{#switch:{{{2|pair}}} | ||
|s|single | |s|single | ||
|o|open | |o|open = <!--nothing--> | ||
|c|close | |c|close | ||
|p|pair = </{{{1|tag}}}> | |p|pair = </{{{1|tag}}}> | ||
}}</code><noinclude> | }}{{#if:{{{plain|}}}| | ||
|</code> | |||
}}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
2020年6月11日 (四) 04:28的版本
{{#if:|
|
}}{{#switch:pair
|c|close =
|s|single
|o|open
|p|pair = <tag{{#if:| {{{params}}}}}
}}{{#switch:pair
|c|close =
|s|single = />
|o|open = >
|p|pair = >...
}}{{#switch:pair
|s|single
|o|open =
|c|close
|p|pair = </tag>
}}{{#if:|
|
}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:| [[Category:Template documentation pages{{#translation:}}]] }}