Template:Tag: Difference between revisions

From All Skies Encyclopaedia
imported>Happy-melon
(fix)
imported>SMcCandlish
(These are called attributes; no one who does HTML calls them "parameters".)
 
(29 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
<tt>{{#switch:{{{3|pair}}}
Opening tag
|close
-->{{#switch:{{{2|pair}}}
|single = <!--nothing-->
|c|close =
|open
|e|empty|s|single|v|void
|pair
|o|open
|#default = <nowiki><</nowiki>{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}<nowiki>></nowiki>
|p|pair = &lt;{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
}}{{#switch:{{{3|pair}}}
}}<!--
|open
Content between tags
|close
-->{{#switch:{{{2|pair}}}
|single = <!--nothing-->
|c|close = {{{content|}}}
|pair
|e|empty|s|single|v|void = &#32;&#47;&gt;
|#default = {{{2|}}}
}}{{#switch:{{{3|pair}}}
|o|open = &gt;{{{content|}}}
|p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|open
}}<!--
|single = <!--nothing-->
Closing tag
|close
-->{{#switch:{{{2|pair}}}
|pair
|e|empty|s|single|v|void
|#default = <nowiki></</nowiki>{{{1|tag}}}<nowiki>></nowiki>
|o|open =
}}{{#switch:{{{3|pair}}}
|c|close
|single = <nowiki><</nowiki>{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}<nowiki> /></nowiki>
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}</tt><noinclude>
}}<!--
{{documentation}}
--></code><noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 17:17, 26 July 2018

<tag>...</tag>