Difference between revisions of "Template:Tag"

From Dharmawiki
Jump to navigation Jump to search
m (1 revision imported)
 
 
(3 intermediate revisions by 2 users not shown)
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 =
+
|c|close = <!--nothing-->
  |s|single
+
|s|single
  |o|open
+
|o|open
  |p|pair = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
+
|p|pair   = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
}}<!--
+
}}{{#switch:{{{2|pair}}}
Content between tags
+
|c|close = {{{content|}}}
-->{{#switch:{{{2|pair}}}
+
|s|single = &#32;&#47;&gt;
  |c|close = {{{content|}}}
+
|o|open   = &gt;{{{content|}}}
  |s|single = &#32;&#47;&gt;
+
|p|pair   = &gt;{{{content|...}}}
  |o|open = &gt;{{{content|}}}
+
}}{{#switch:{{{2|pair}}}
  |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;
  |s|single
+
}}{{#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>

Latest revision as of 01:14, 17 April 2019

<tag>...</tag> Lua error in mw.lua at line 307: frame:expandTemplate: a title is required.