Template:Tag: Difference between revisions

From The FunKey Wiki
56 bytes removed ,  2 years ago
m
1 revision imported
(These are called attributes; no one who does HTML calls them "parameters".)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
{{#if:{{{plain|}}}|
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
|<code class="mw-highlight" style="{{#if:{{{wrap|}}}||white-space:nowrap}}">
Opening tag
-->}}{{#switch:{{{2|pair}}}
|c|close = <!--nothing-->
|e|empty |s|single|v|void
|o|open
|p|pair = &lt;{{#iftag:{{{linkspan|&lrm;&lt;|class="p"}}}|[[HTML element#{{{1|#tag}}}:span|{{{1|tag}}}]]|{{{1|tag}}}class="nt"}}{{#if:{{{params|{{{attribs|}}}}}}|&#32;{{{params|{{{attribs}}}}}}}}
-->}}{{#switch:{{{2|pair}}}
}}<!--
|c|close = {{{content|}}}
Content between tags
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}
-->{{#switch:{{{2|pair}}}
|co|closeopen = {{#tag:span|&gt;|class="p"}}{{{content|}}}
|p|pair = {{#ifeqtag:{{{1|tag}}}|!--|span|&gt;|class="p"}}{{{content|...}}}
|e|empty|s|single|v|void = &#32;&#47;&gt;
|o|open = &gt;}}{{#switch:{{{content2|pair}}}
|s|single
|p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|o|open = <!--nothing-->
}}<!--
|c|close
Closing tag
|p|pair = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}
-->{{#switch:{{{2|pair}}}
}}{{#if:{{{plain|}}}|
|e|empty|s|single|v|void
|</code>
|o|open =
--></code>}}<noinclude>
|c|close
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}<!--
--></code><noinclude>
{{Documentation}}
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.