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.
(Remove untrue statement. The template does not include nowiki tags and hence does not behave in all cases as if it does.)
m (99 revisions imported: All these templates have originated from Wikipedia. Credits go directly to them.)
 
(32 intermediate revisions by 21 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|158386,000+}}
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) -->
{{Nosubst}}
<!--
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE.
YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT.
-->
 
== 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.
This template allows "=" to be used in template parameters.
 
== ExampleExamples ==
* <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}}
{{TemplateDataHeader}}
<templatedata>
 
{
<TemplateData>
{ "description": "A template to allow = to be used in template parameters","params":{}}
"params": {},
</TemplateData>
"format": "{{_\n| _ = _\n}}"
}
</templatedata>
 
== See also ==
{{Escape template list}}
* {{tl|((}}, which produces: {{((}}
* [[mw:Help:Magic words]]
* {{tl|))}}, which produces: {{))}}
* {{tl|!}}, which produces: {{!}}
* {{tl|ifequal}}
 
 
<includeonly><!----PLEASE{{sandbox ADD CATEGORIES BELOW THIS LINE:---->other||
<!-- Add categories below this line, and interwikis at Wikidata -->
[[Category:Wikipedia characterCharacter-substitution templates]]
[[Category:Template namespace templates]]
[[Category:Mathematical formatting templates]]
}}</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu