Template:!/doc: Difference between revisions
Appearance
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 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 is a metatemplate; that is, a template that will rarely be used directly in articles, but rather used in other templates which will be used directly. |
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 |