Template:Tag: Difference between revisions

From Celeste Wiki
Jump to navigation Jump to search
Content added Content deleted
(Undid revision 3905257 by 2600:1702:1350:87D0:5491:691B:8A51:8E1C (talk))
m (1 revision imported: Reference-related templates)
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 style="white-space:nowrap">
}}{{#switch:{{{2|pair}}}
-->{{#switch:{{{2|pair}}}
|c|close = <!--nothing-->
|c|close =
|s|single
|e|empty|s|single|v|void
|o|open
|o|open
|p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
|p|pair = &lt;{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
}}<!--
}}{{#switch:{{{2|pair}}}
Content between tags
|c|close = {{{content|}}}
-->{{#switch:{{{2|pair}}}
|s|single = &#32;&#47;&gt;
|o|open = &gt;{{{content|}}}
|c|close = {{{content|}}}
|e|empty|s|single|v|void = &#32;&#47;&gt;
|p|pair = &gt;{{{content|...}}}
}}{{#switch:{{{2|pair}}}
|o|open = &gt;{{{content|}}}
|p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|s|single
}}<!--
|o|open = <!--nothing-->
Closing tag
|c|close
-->{{#switch:{{{2|pair}}}
|p|pair = &lt;&#47;{{{1|tag}}}&gt;
|e|empty|s|single|v|void
}}{{#if:{{{plain|}}}|
|o|open =
|</code>
|c|close
}}<noinclude>
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
{{documentation}}
}}<!--
--></code><noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 23:52, 8 January 2021

<tag>...</tag>