Template:!

From Angelina Jordan Wiki
Revision as of 14:09, 31 October 2020 by Dcljr (talk | contribs) (doc style; ce & expand a bit)

|

Documentation

This provides a literal "pipe" character (|) in contexts where it would otherwise be interpreted as part of wiki markup syntax (e.g., in wikilinks, tables, and templates).

The template is actually not called if {{!}} is used, because that exact string is handled "natively" by the wiki software (MediaWiki). But, there are ways of forcing a call to the template (as seen in the examples below), and in those cases any input to the template is ignored.

The only thing the template does, in fact, is output {{!}}, so really the only reason this template page exists is to document the use of the built-in feature.

Usage

  • {{!}}

Examples

  • {{!}} ⇒ |
  • {{!|input that will be ignored}} ⇒ |
  • {{Template:!}} ⇒ |

The first example uses the built-in feature; the second and third actually call this template. They are all totally equivalent, except the first is a bit more efficient.