Difference between revisions of "Template:Tag"
m
Include <syntaxhighlight> classes for punctuation
>Shirayuki (exclude params) |
>ExE Boss m (Include <syntaxhighlight> classes for punctuation) |
||
Line 5: | Line 5: | ||
|s|single | |s|single | ||
|o|open | |o|open | ||
|p|pair = <{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}| {{{params}}}}} | |p|pair = {{#tag:span|<|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}| {{{params}}}}} | ||
}}{{#switch:{{{2|pair}}} | }}{{#switch:{{{2|pair}}} | ||
|c|close = {{{content|}}} | |c|close = {{{content|}}} | ||
|s|single =  /> | |s|single =  {{#tag:span|/>|class="p"}} | ||
|o|open = >{{{content|}}} | |o|open = {{#tag:span|>|class="p"}}{{{content|}}} | ||
|p|pair = >{{{content|...}}} | |p|pair = {{#tag:span|>|class="p"}}{{{content|...}}} | ||
}}{{#switch:{{{2|pair}}} | }}{{#switch:{{{2|pair}}} | ||
|s|single | |s|single | ||
|o|open = <!--nothing--> | |o|open = <!--nothing--> | ||
|c|close | |c|close | ||
|p|pair = </{{#tag:span|{{{1|tag}}}|class="nt"}}> | |p|pair = {{#tag:span|</|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|>|class="p"}} | ||
}}{{#if:{{{plain|}}}| | }}{{#if:{{{plain|}}}| | ||
|</code> | |</code> | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
{{#tag:syntaxhighlight||lang=text|class=wds-is-hidden|style=display:none!important}} | |||
</noinclude> | </noinclude> |