Template:=
Template:Transclusionless This magic word allows "=" to be used in unnamed template parameters, rather than being interpreted as the separator between the parameter name and value. It evaluates to the equals sign, =. Alternatively, the HTML entity "=" can be used if there is no need for it to be interpreted as wikimarkup, such as when the literal equals-sign is to be displayed to the user. Until June 2022, there was a template at this location with the same function, but it was replaced with a magic word for performance reasons in Phab:T91154.
Do not use syntax like {{Template:=}}
, and do not supply a parameter, for example {{=|foo}}
. In those cases, the template transcludes as an error message: Error: The retired template {{=}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code ----
- MediaWiki
- CURRENTVERSION: 1.43.1
- Site
- SITENAME: Archiepedia
- SERVER: https://www.archiepedia.org
- SERVERNAME: www.archiepedia.org
- SCRIPTPATH: /mediawiki
- STYLEPATH: /mediawiki/skins
- CONTENTLANGUAGE: en
- Counts
- NUMBEROFPAGES: 1,681
- NUMBEROFARTICLES: 0
- NUMBEROFFILES: 7
- NUMBEROFUSERS: 1
- NUMBERINGROUP:rollbacker: 0
- NUMBERINGROUP:accountcreator: 0
- NUMBERINGROUP:bureaucrat: 1
- NUMBERINGROUP:founder: 0
- NUMBEROFADMINS: 2
- NUMBEROFEDITS: 1,936
- Page
- PAGENAME: =
- FULLPAGENAME: Template:=
- SUBPAGENAME: =
- BASEPAGENAME: =
- NAMESPACE: Template
- SUBJECTSPACE: Template
- SUBJECTPAGENAME: Template:=
- TALKSPACE: Template talk
- Revision
- REVISIONID: 414
- REVISIONUSER: Oldiesmann
- REVISIONSIZE: 460
- REVISIONTIMESTAMP: 20250410000318
- REVISIONDAY: 10
- REVISIONMONTH: 04
- REVISIONYEAR: 2025
- Time
- CURRENTTIMESTAMP: 20250419132605
- CURRENTYEAR: 2025
- CURRENTMONTH: 04
- CURRENTMONTHNAME: April
- CURRENTWEEK: 16
- CURRENTDAY: 19
- CURRENTDAYNAME: Saturday
- CURRENTDOW: 6
- CURRENTTIME: 13:26
- CURRENTHOUR: 13
- CURRENTMINUTE: 26
- CURRENTSECOND: 05
to generate the = character.
Do not use this magic word in URLs. Instead, use percent-encoding or no encoding:
- Wrong:
https://example.com/?arg{{=}}789
- Sometimes correct:
https://example.com/?arg%3D789
("=" is a reserved character with special meaning it may break the URL when encoded at certain locations) - Correct:
https://example.com/?arg=789
Usage
{{Font color|black|yellow|2 + 2 {{=}} 4}}
produces: 2 + 2 = 4
You can also use named parameters to bypass the restriction:
{{Font color|black|yellow|3= 2 + 2 = 4}}
produces: 2 + 2 = 4
Unlike =
, the magic word only delays the interpretation of the symbol as code:
{{concat|<div style{{=}}"font-style:italic">This should be italicised.</div>}}
{{concat|<div style="font-style:italic">This will not be italicised.</div>}}
produces:
TemplateData
TemplateData for =
A magic word to allow = to be used in template parameters
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
See also
Template call (m for magic word) |
Output (delayed interpretation as wikimarkup) | HTML alternative (never interpreted as wikimarkup) |
---|---|---|
{{!}} (m) |
| | | or {{pipe}} |
{{=}} (m) |
= | = |
{{!!}} |
|| | || |
{{!(}} |
[ | [ |
{{)!}} |
] | ] |
{{!((}} |
[[ | [[ |
{{))!}} |
]] | ]] |
{{(}} |
{ | { |
{{)}} |
} | } |
{{((}} |
{{ | {{ |
{{))}} |
}} | }} |
{{(((}} |
{{{ | {{{ |
{{)))}} |
}}} | }}} |
{{(!}} |
{| | {| |
{{!+}} |
|+ | |+ |
{{!-}} |
|- | |- |
{{!)}} |
|} | |} |