Template:=/doc: Difference between revisions

From Space Station 14 Wiki
Template:=/doc
m (1 revision imported)
(Replaced content with "#REDIRECT [[Wikipedia:{{#subst:{{FULLPAGENAME}}}}]]")
Tag: Replaced
Line 1: Line 1:
{{mbox|type=notice|text=This template will soon be deprecated, as the {{tl|{{=}}}} will soon be a [[Help:Magic words|Magic word]]. See reasons and status at [[phab:T91154]].}}
#REDIRECT [[Wikipedia:{{#subst:{{FULLPAGENAME}}}}]]
{{Documentation subpage}}
{{High-risk|386,000+}}
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) -->
 
== Usage ==
This template allows "=" to be used in unnamed template parameters. It inserts the [[equals-sign]] ("=") into the text. Alternatively, the [[HTML]] entity "&amp;#61;" 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 ==
* <code><nowiki>{{Font color|black|yellow|2 + 2 {{=}} 4}}</nowiki></code> produces: {{Font color|black|yellow|2 + 2 {{=}} 4}}
 
You can also use named parameters to bypass the restriction:
* <code><nowiki>{{Font color|black|yellow|3= 2 + 2 = 4}}</nowiki></code> produces: {{Font color|black|yellow|3= 2 + 2 = 4}}
 
Unlike &amp;#61;, the template only delays the interpretation of the symbol as code:
<syntaxhighlight lang="html">
{{concat|<div class{{=}}"hatnote">This should be italicised.</div>}}
{{concat|<div class&#61;"hatnote">This will not be italicised.</div>}}
</syntaxhighlight>
produces:
{{concat|<div class{{=}}"hatnote">This should be italicised.</div>}}
{{concat|<div class&#61;"hatnote">This will not be italicised.</div>}}
 
== TemplateData ==
{{TemplateData header}}
<templatedata>
{
"description": "A template to allow = to be used in template parameters",
"params": {},
"format": "{{_\n| _ = _\n}}"
}
</templatedata>
 
== See also ==
{{Escape template list}}
* [[mw:Help:Magic words]]
 
<includeonly>{{sandbox other||
<!-- Add categories below this line, and interwikis at Wikidata -->
[[Category:Character-substitution templates]]
[[Category:Template namespace templates]]
[[Category:Mathematical formatting templates]]
}}</includeonly>

Revision as of 22:46, 20 February 2022

  1. REDIRECT [[Wikipedia:{{#subst:Template:=/doc}}]]