Templat:Tag: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
fix
Cleanup dan perbarui sintaks.
Baris 1:
<code class="{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}" style="{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}"><!--
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
Opening tag
|c|close = <!--nothing-->
<code style="white-space:nowrap;"->{{#switch:{{{2|pair}}}
|s|single
|c|close =
|o|open
|s|single
|p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
|o|open
}}{{#switch:{{{2|pair}}}
|p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
|c|close = {{{content|}}}
}}<!--
|s|single = &#32;&#47;&gt;
Content between tags
|o|open = &gt;{{{content|}}}
}}-->{{#switch:{{{2|pair}}}
|p|pair = &gt;{{{content|...}}}
}}{{#switch: |c|close = {{{2content|pair}}}
|s|single = &#32;&#47;&gt;
|o|open = <!--nothing-->&gt;{{{content|}}}
|p|pair = {{#ifeq:{{{1|tag}}}|!--||&gt;}}{{{content|...}}}
|c|close
}}<!--
|p|pair = &lt;&#47;{{{1|tag}}}&gt;
Closing tag
}}</code><noinclude>
-->{{#switch:{{{2|pair}}}
{{documentation}}
|s|single
|o|open =
|c|close
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&gt;|&lt;&#47;{{{1|tag}}}&gt;}}
}}<!--
}}--></code><noinclude>
{{Documentation}}
</noinclude>