Difference between revisions of "Template:Tag"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Happy-melon
(fix)
m (1 revision imported)
 
(32 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<tt>{{#switch:{{{3|pair}}
+
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
|close
+
Opening tag
|single  = <!--nothing-->
+
-->{{#switch:{{{2|pair}}}
|open
+
  |c|close =
|pair
+
  |e|empty|s|single|v|void
|#default = <nowiki><</nowiki>{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}<nowiki>></nowiki>
+
  |o|open
}}{{#switch:{{{3|pair}}}
+
  |p|pair = &lt;{{#if:{{{link|}}}|[[HTML element#{{{1|tag}}}|{{{1|tag}}}]]|{{{1|tag}}}}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
|open
+
}}<!--
|close
+
Content between tags
|single   =
+
-->{{#switch:{{{2|pair}}}
|pair
+
  |c|close = {{{content|}}}
|#default = {{{2|}}}
+
  |e|empty|s|single|v|void = &#32;&#47;&gt;
}}{{#switch:{{{3|pair}}}
+
  |o|open = &gt;{{{content|}}}
|open
+
  |p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|single  = <!--nothing-->
+
}}<!--
|close
+
Closing tag
|pair
+
-->{{#switch:{{{2|pair}}}
|#default = <nowiki></</nowiki>{{{1|tag}}}<nowiki>></nowiki>
+
  |e|empty|s|single|v|void
}}{{#switch:{{{3|pair}}}
+
   |o|open =
|single  = <nowiki></</nowiki>{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}<nowiki> /></nowiki>
+
  |c|close
}}</tt><noinclude>
+
  |p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
{{documentation}}
+
}}<!--
 +
--></code><noinclude>
 +
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:57, 8 March 2020

<tag>...</tag>

Template documentation[create]