Template:Tag: Difference between revisions

From Central Student Government Wiki
Jump to navigation Jump to search
MediaWiki>ExE Boss
Use {{Yesno}} and TemplateStyles (match {{xtag}})
Administrator (talk | contribs)
m 1 revision imported
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude>{{#if:{{yesno|{{{plain|}}}}}||
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
{{#if:{{yesno|{{{wrap|}}}}}||
Opening tag
<templatestyles src="Template:Nowrap/styles.css" />
-->{{#switch:{{{2|pair}}}
}}<code class="mw-highlight {{#if:{{yesno|{{{wrap|}}}}}||nowrap}}">
  |c|close =
}}{{#switch:{{{2|pair}}}
  |e|empty|s|single|v|void
|c|close = <!--nothing-->
  |o|open
|s|single
  |p|pair = &lt;{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
|o|open
}}<!--
|p|pair   = {{#tag:span|&lrm;&lt;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
Content between tags
}}{{#switch:{{{2|pair}}}
-->{{#switch:{{{2|pair}}}
|c|close = {{{content|}}}
  |c|close = {{{content|}}}
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}
  |e|empty|s|single|v|void = &#32;&#47;&gt;
|o|open   = {{#tag:span|&gt;|class="p"}}{{{content|}}}
  |o|open = &gt;{{{content|}}}
|p|pair   = {{#tag:span|&gt;|class="p"}}{{{content|...}}}
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
}}{{#switch:{{{2|pair}}}
}}<!--
|s|single
Closing tag
|o|open   = <!--nothing-->
-->{{#switch:{{{2|pair}}}
|c|close
  |e|empty|s|single|v|void
|p|pair   = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}
  |o|open =
}}{{#if:{{yesno|{{{plain|}}}}}||
  |c|close
</code>
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}</onlyinclude>
}}<!--
--></code><noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
</noinclude>

Latest revision as of 11:29, 5 March 2025

<tag>...</tag>