Template:=/doc

From Angelina Jordan Wiki
Revision as of 03:00, 18 July 2024 by Dcljr (talk | contribs) (wording)
This is a subpage documenting Template:=. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This provides an equals sign (=) for use in contexts where that character would otherwise be interpreted as part of wiki markup syntax (for example, in template calls).

Any input to the template is ignored.

The template is actually not called if {{=}} is used, because that exact string is handled "natively" by MediaWiki. (This is why there are so few pages that show up as using this template, even though {{=}} is being used on hundreds of pages.)

The examples below show a couple of ways of forcing a call to the template.

Usage

  • {{=}}

Examples

  • {{=}} ⇒ =
  • {{=|}} ⇒ =
  • {{Template:=}} ⇒ =
  • {{code|style{{=}}"color:red"}}style="color:red"

The first example uses the built-in feature; the second and third actually call this template. (In the second example, empty input is being passed to the template in the first unnamed/positional parameter). All three examples are totally equivalent in terms of their effects, except the first is a bit more efficient than the other two.

Note that the fourth example could also be accomplished by using:

  • {{code|1=style="color:red"}}style="color:red"