Difference between revisions of "Template:Tag"

From D&D 5e
Jump to: navigation, search
(parameter shortcuts, optimize)
m (44 revisions imported: Export Template:Quote from mediawiki.org)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
+
{{#if:{{{plain|}}}|
 +
|<code style="white-space:nowrap">
 +
}}{{#switch:{{{2|pair}}}
 
  |c|close  = <!--nothing-->
 
  |c|close  = <!--nothing-->
 
  |s|single
 
  |s|single
Line 7: Line 9:
 
  |c|close  = {{{content|}}}
 
  |c|close  = {{{content|}}}
 
  |s|single = &#32;&#47;&gt;
 
  |s|single = &#32;&#47;&gt;
  |o|open
+
  |o|open   = &gt;{{{content|}}}
  |p|pair  = &gt;{{{content|}}}
+
  |p|pair  = &gt;{{{content|...}}}
 
}}{{#switch:{{{2|pair}}}
 
}}{{#switch:{{{2|pair}}}
 
  |s|single
 
  |s|single
Line 14: Line 16:
 
  |c|close
 
  |c|close
 
  |p|pair  = &lt;&#47;{{{1|tag}}}&gt;
 
  |p|pair  = &lt;&#47;{{{1|tag}}}&gt;
}}</code><noinclude>
+
}}{{#if:{{{plain|}}}|
 +
|</code>
 +
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 21:40, 28 January 2018

{{#if:|

|

}}{{#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>

}}{{#if:|

|

}}

50px Template documentation[create]