Difference between revisions of "Template:Tag"

From D&D 5e
Jump to: navigation, search
(Established convention uses "..." to seperate begin- and end tags with no content.)
(Not that I see the point of substing this, but let's make it not dump parser functions all over the place when it is.)
Line 1: Line 1:
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
+
<code style="white-space:nowrap;">{{{{{|safesubst:}}}#switch:{{{2|pair}}}
 
  |c|close  = <!--nothing-->
 
  |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}}}{{{{{|safesubst:}}}#if:{{{params|}}}|&#32;{{{params}}}}}
}}{{#switch:{{{2|pair}}}
+
}}{{{{{|safesubst:}}}#switch:{{{2|pair}}}
 
  |c|close  = {{{content|}}}
 
  |c|close  = {{{content|}}}
 
  |s|single = &#32;&#47;&gt;
 
  |s|single = &#32;&#47;&gt;
 
  |o|open  = &gt;{{{content|}}}
 
  |o|open  = &gt;{{{content|}}}
 
  |p|pair  = &gt;{{{content|...}}}
 
  |p|pair  = &gt;{{{content|...}}}
}}{{#switch:{{{2|pair}}}
+
}}{{{{{|safesubst:}}}#switch:{{{2|pair}}}
 
  |s|single
 
  |s|single
 
  |o|open  = <!--nothing-->
 
  |o|open  = <!--nothing-->

Revision as of 15:54, 20 November 2011

{{safesubst:#switch:pair

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

}}{{safesubst:#switch:pair

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

}}{{safesubst:#switch:pair

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

}}

50px Template documentation[create]