This is an old revision of this page, as edited by GKFX (talk | contribs) at 21:00, 25 December 2020 (Add actual documentation.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Revision as of 21:00, 25 December 2020 by GKFX (talk | contribs) (Add actual documentation.)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff){{!}} is not a template; it is a magic word. It may be used exactly like a template however, with the caveat that you must not pass parameters.
The code {{!}}
is used to escape the vertical bar character, |, so that it is interpreted later than it otherwise would. This is mostly useful when trying to include a table in a template. For example,
{{rquote|none|text= {| class="wikitable" |+ Caption text |- ! Header text !! Header text |- | Example || Example |- | Example || Example |} }}
yields nonsense:
“ | { | ” | ||
— - | Header text | Header text
, - |
---|
However escaping the bars with this magic word and similar templates gives:
{{rquote|none| {{{!}} class{{=}}"wikitable" {{!}}+ Caption text {{!}}- ! Header text !! Header text {{!}}- {{!}} Example {{!!}} Example {{!}}- {{!}} Example {{!!}} Example {{!}}} }}
“ |
|
” | ||||||
See also
Documentation for the magic word may be found in the MediaWiki documentation at mw:Help:Magic words#Other.
- m:Help:Template#A parameter value containing a pipe character
{{(!}}
Open table{{!)}}
Close table- Help:Conditional tables