Difference between revisions of "Template:Tag"
Jump to navigation
Jump to search
(6 revisions imported from mw:Template:Tag) |
m (1 revision imported) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | <code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!-- |
||
| − | {{#if:{{{plain|}}}| |
||
| + | Opening tag |
||
| − | |<code class="mw-highlight" style="{{#if:{{{wrap|}}}||white-space:nowrap}}"> |
||
| − | + | -->{{#switch:{{{2|pair}}} |
|
| − | + | |c|close = |
|
| − | + | |e|empty|s|single|v|void |
|
| − | + | |o|open |
|
| − | + | |p|pair = <{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}| {{{params|{{{attribs}}}}}}}} |
|
| + | }}<!-- |
||
| ⚫ | |||
| + | Content between tags |
||
| − | |c|close = {{{content|}}} |
||
| ⚫ | |||
| − | |s|single =  {{#tag:span|/>|class="p"}} |
||
| − | + | |c|close = {{{content|}}} |
|
| + | |e|empty|s|single|v|void =  /> |
||
| ⚫ | |||
| − | + | |o|open = >{{{content|}}} |
|
| ⚫ | |||
| − | |s|single |
||
| + | }}<!-- |
||
| − | |o|open = <!--nothing--> |
||
| + | Closing tag |
||
| ⚫ | |||
| + | -->{{#switch:{{{2|pair}}} |
||
| − | |p|pair = {{#tag:span|‎</|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|>|class="p"}} |
||
| + | |e|empty|s|single|v|void |
||
| − | }}{{#if:{{{plain|}}}| |
||
| + | |o|open = |
||
| − | |</code> |
||
| ⚫ | |||
| ⚫ | |||
| + | |p|pair = {{#ifeq:{{{1|tag}}}|!--|-->|</{{{1|tag}}}>}} |
||
| + | }}<!-- |
||
| ⚫ | |||
{{Documentation}} |
{{Documentation}} |
||
</noinclude> |
</noinclude> |
||