Difference between revisions of "Template:Tag"

229 bytes added ,  06:21, 31 May 2021
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  = &lt;{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
  |p|pair  = {{#tag:span|&lt;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
}}{{#switch:{{{2|pair}}}
}}{{#switch:{{{2|pair}}}
  |c|close  = {{{content|}}}
  |c|close  = {{{content|}}}
  |s|single = &#32;&#47;&gt;
  |s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}
  |o|open  = &gt;{{{content|}}}
  |o|open  = {{#tag:span|&gt;|class="p"}}{{{content|}}}
  |p|pair  = &gt;{{{content|...}}}
  |p|pair  = {{#tag:span|&gt;|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  = &lt;&#47;{{#tag:span|{{{1|tag}}}|class="nt"}}&gt;
  |p|pair  = {{#tag:span|&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|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>
Anonymous user