Template:!
|
This template is used on 17,900+ pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
Use
This is the {{!}} template.
This template allows "|
" to be used in template parameters. This template is needed because in templates, the pipe is usually seen as a separator.
No special template is needed for "!
" (exclamation mark).
This template usually cannot be substituted (except in special cases, listed in the section below).
Substitution
It is possible to substitute {{!}} only if a normal "|
" works as expected. For example, after substituting the template with {{!}} in it, or after getting rid of an #if with {{!}} in it.
Example
This template code for {{Quotation}} using an ordinary pipe character,
{{Quotation|It is not possible to use an ordinary pipe character | in template parameters. It will be seen as a separator.}}
makes:
It is not possible to use an ordinary pipe character
– in template parameters. It will be seen as a separator.
however, this code using the {{!}} template,
{{Quotation|It is not possible to use an ordinary pipe character {{!}} in template parameters. It will be seen as a separator.}}
makes:
It is not possible to use an ordinary pipe character | in template parameters. It will be seen as a separator.
Related templates
The above documentation is transcluded from Template:!/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |