FANDOM



Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [purge/refresh]

Usage

See ! for usage. Needed for creating a pipe, in wikitables contained in Parser Functions such as {{#if:}} and {{#switch:}}.

This is the {{!}} meta-template.

This is an auxiliary template allowing the encoding of "|" within template parameters. It is necessary if the character is used in wiki table syntax, or if the parameter is automatically wikilinked and you wish to use a pipe to specify different link text from the target page name. In other cases it is better to use "|".

This template cannot be used for putting the character as text in a wiki table; in that case, again, "|" can be used.

Note that no special template is needed for "!" (exclamation mark).

Example

Use {{!}} to produce |

Substitution

The template page states that {{!}} cannot be substituted. That's not completely true because it is perfectly okay to {{subst wp:! }} as soon as an unescaped "|" works as expected, i.e. after substituting the template containing {{!}}, or after eliminating an #if: containing {{!}}

See also


The above text is transcluded from Template:!/doc.
You can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:!/doc. (View all subpages of this page.)
Community content is available under CC-BY-SA unless otherwise noted.