Difference between revisions of "Template:Tag"

81 bytes added ,  22:01, 28 May 2021
add syntaxhighlight class
>Pppery
(Undid revision 3905257 by 2600:1702:1350:87D0:5491:691B:8A51:8E1C (talk))
>Shirayuki
(add syntaxhighlight class)
Line 5: Line 5:
  |s|single
  |s|single
  |o|open
  |o|open
  |p|pair  = <{{{1|tag}}}{{#if:{{{params|}}}| {{{params}}}}}
  |p|pair  = <{{#tag:span|{{{1|tag}}}{{#if:{{{params|}}}| {{{params}}}}}|class="nt"}}
}}{{#switch:{{{2|pair}}}
}}{{#switch:{{{2|pair}}}
  |c|close  = {{{content|}}}
  |c|close  = {{{content|}}}
Line 15: Line 15:
  |o|open  = <!--nothing-->
  |o|open  = <!--nothing-->
  |c|close
  |c|close
  |p|pair  = &lt;&#47;{{{1|tag}}}&gt;
  |p|pair  = &lt;&#47;{{#tag:span|{{{1|tag}}}|class="nt"}}&gt;
}}{{#if:{{{plain|}}}|
}}{{#if:{{{plain|}}}|
  |</code>
  |</code>
Line 21: Line 21:
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>
{{#tag:span|hoge|class="nt"}}
Anonymous user