Template:!

|

Documentation icon Template documentation[view] [edit] [history] [purge]


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