Difference between revisions of "Template:Tag"

From D&D 5e
Jump to: navigation, search
(parameter shortcuts, optimize)
(Established convention uses "..." to seperate begin- and end tags with no content.)
Line 7: Line 7:
 
  |c|close  = {{{content|}}}
 
  |c|close  = {{{content|}}}
 
  |s|single =  />
 
  |s|single =  />
  |o|open
+
  |o|open   = >{{{content|}}}
  |p|pair  = >{{{content|}}}
+
  |p|pair  = >{{{content|...}}}
 
}}{{#switch:{{{2|pair}}}
 
}}{{#switch:{{{2|pair}}}
 
  |s|single
 
  |s|single

Revision as of 15:10, 19 June 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]