Jump to content

Template:!/doc

From SeptemWiki
Revision as of 13:06, 9 April 2016 by Shawn (talk | contribs)


This template is used inside other templates to generate a vertical bar (|), since doing so would confuse the template syntax parser. You would primarily use this if your template generated a table.

{{!}}
{{{!}}class="wikitable"
{{!}}-
!Header 1
!Header 2
{{!}}-
{{!}}Cell 1
{{!}}Cell 2
{{!}}-
{{!}}}

would turn into:

{|class="wikitable"
|-
!Header 1
!Header 2
|-
|Cell 1
|Cell 2
|-
|}

and thus render as:

Header 1 Header 2
Cell 1 Cell 2