Template:=/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
m
99 revisions imported: All these templates have originated from Wikipedia. Credits go directly to them.
No edit summary |
m (99 revisions imported: All these templates have originated from Wikipedia. Credits go directly to them.) |
||
(13 intermediate revisions by 11 users not shown) | |||
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]].}}
{{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
==
* <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 &#61;, the template only delays the interpretation of the symbol as code:
== TemplateData ==▼
<syntaxhighlight lang="html">
{{concat|<div class{{=}}"hatnote">This should be italicised.</div>}}
{{concat|<div class="hatnote">This will not be italicised.</div>}}
</syntaxhighlight>
produces:
{{concat|<div class{{=}}"hatnote">This should be italicised.</div>}}
{{concat|<div class="hatnote">This will not be italicised.</div>}}
▲== TemplateData ==
{{TemplateData header}}
<templatedata>
{
Line 27 ⟶ 33:
== See also ==
{{Escape template list}}
* [[mw:Help:Magic words]]
<includeonly>{{
<!-- Add categories below this line, and interwikis at Wikidata -->
[[Category:
[[Category:Template namespace templates]]
[[Category:Mathematical formatting templates]]
|