Jump to content

Template:!/doc: Difference between revisions

From SeptemWiki
Created page with "{{metatemplate}} This template is used inside other templates to generate a vertical bar (<tt>|</tt>), since doing so would confuse the template syntax parser. You would pri..."
 
No edit summary
Line 10: Line 10:
!Header 2
!Header 2
{{!}}-
{{!}}-
{{!}}|Cell 1
{{!}}Cell 1
{{!}}|Cell 2
{{!}}Cell 2
{{!}}-
{{!}}-
{{!}}}</nowiki>
{{!}}}</nowiki>
would turn into:
<nowiki>{|class="wikitable"
|-
!Header 1
!Header 2
|-
|Cell 1
|Cell 2
|-
|}</nowiki>
and thus render as:
{|class="wikitable"
|-
!Header 1
!Header 2
|-
|Cell 1
|Cell 2
|-
|}

Revision as of 13:06, 9 April 2016


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