Difference between revisions of "Template:Tag"

From D&D 5e
Jump to: navigation, search
(Use <code>)
(parameter shortcuts, optimize)
Line 1: Line 1:
 
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
 
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
  |close
+
  |c|close  = <!--nothing-->
  |single  = <!--nothing-->
+
  |s|single
  |open
+
  |o|open
  |pair
+
  |p|pair  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
  |#default = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}&gt;
 
 
}}{{#switch:{{{2|pair}}}
 
}}{{#switch:{{{2|pair}}}
  |single   = <!--nothing-->
+
  |c|close  = {{{content|}}}
  |open
+
|s|single = &#32;&#47;&gt;
  |close
+
  |o|open
|pair
+
  |p|pair   = &gt;{{{content|}}}
|#default = {{{content|}}}
 
 
}}{{#switch:{{{2|pair}}}
 
}}{{#switch:{{{2|pair}}}
  |open
+
  |s|single
  |single   = <!--nothing-->
+
  |o|open   = <!--nothing-->
  |close
+
  |c|close
  |pair
+
  |p|pair   = &lt;&#47;{{{1|tag}}}&gt;
|#default = &lt;&#47;{{{1|tag}}}&gt;
 
}}{{#switch:{{{2|pair}}}
 
|single  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}&#32;&#47;&gt;
 
 
}}</code><noinclude>
 
}}</code><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 04:36, 23 January 2011

{{#switch:pair

|c|close  = 
|s|single
|o|open
|p|pair   = <tag{{#if:| {{{params}}}}}

}}{{#switch:pair

|c|close  = 
|s|single =  />
|o|open
|p|pair   = >

}}{{#switch:pair

|s|single
|o|open   = 
|c|close
|p|pair   = </tag>

}}

50px Template documentation[create]