Template:=/doc
This template was deprecated in June 2022, when {{=}} became a Magic word. See phab:T91154 for more information. The usage notes below still apply. |
This is a documentation subpage for Template:=. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
changeThis template allows "=" to be used in unnamed template parameters. It inserts the equals-sign ("=") into the text. 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.
Examples
change{{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 template 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:
This should be italicised.
This will not be italicised.
TemplateData
changeThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:= in articles based on its TemplateData.
TemplateData for =
A template to allow = to be used in template parameters
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |
See also
changeTemplate call (m for magic word) |
Output (delayed interpretation as wikimarkup) | HTML alternative (never interpreted as wikimarkup) |
---|---|---|
{{!}} (m)
|
| | | or {{pipe}} |
{{=}}
|
= | = |
{{!!}}
|
|| | || |
{{!(}}
|
[ | [ |
{{)!}}
|
] | ] |
{{!((}}
|
[[ | [[ |
{{))!}}
|
]] | ]] |
{{(}}
|
{ | { |
{{)}}
|
} | } |
{{((}}
|
{{ | {{ |
{{))}}
|
}} | }} |
{{(((}}
|
{{{ | {{{ |
{{)))}}
|
}}} | }}} |
{{¡}}
|
│ | │ |