Difference between revisions of "Template:=/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Eyesnore
m (Reverted edits by 66.87.64.63 (talk) to last version by Eyesnore)
m (94 revisions imported)
 
(31 intermediate revisions by 20 users not shown)
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]].}}
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{High-risk|158,000+}}
+
{{High-risk|386,000+}}
{{Nosubst}}
+
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) -->
<!--  
 
    PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE.
 
    YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT.
 
-->
 
  
 
== Usage ==
 
== Usage ==
This template allows "=" to be used in template parameters. This is equivelent to <code><nowiki><nowiki>=</nowiki></nowiki></code>.
+
This template allows "=" to be used in unnamed template parameters. It inserts the one-character [[equals-sign]] ("=") into the text. However, in [[wp:CS1]] cite titles, the [[Unicode]] form "&amp;#61;" could be used instead, where a literal "=" is not wanted during formatting of a title.
  
== Example ==
+
== Examples ==
*<code><nowiki>{{Font color|black|yellow|2 + 2 {{=}} 4}}</nowiki></code> produces: {{Font color|black|yellow|2 + 2 {{=}} 4}}
+
* <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:
 
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}}
+
* <code><nowiki>{{Font color|black|yellow|3= 2 + 2 = 4}}</nowiki></code> produces: {{Font color|black|yellow|3= 2 + 2 = 4}}
  
 
== TemplateData ==
 
== TemplateData ==
{{TemplateDataHeader}}
+
{{TemplateData header}}
 
+
<templatedata>
<TemplateData>
+
{
{"description":"A template to allow = to be used in template parameters","params":{}}
+
"description": "A template to allow = to be used in template parameters",
</TemplateData>
+
"params": {},
 +
"format": "{{_\n| _ = _\n}}"
 +
}
 +
</templatedata>
  
 
== See also ==
 
== See also ==
* {{tl|((}}, which produces: {{((}}
+
* [[Template:((]] which produces: {{code|{{((}}}}
* {{tl|))}}, which produces: {{))}}
+
* [[Template:))]] which produces: {{code|{{))}}}}
* {{tl|!}}, which produces: {{!}}
+
* <nowiki>{{!}}</nowiki> which produces: {{code|{{!}}}} – this is a Wikimedia [[mw:Help:Magic words#Other|"magic word" added in MediaWiki 1.24]]
 
* {{tl|ifequal}}
 
* {{tl|ifequal}}
 +
* [[mw:Help:Magic words]]
  
 
+
<includeonly>{{sandbox other||
<includeonly><!----PLEASE ADD CATEGORIES BELOW THIS LINE:---->
+
<!-- Add categories below this line, and interwikis at Wikidata -->
[[Category:Wikipedia character-substitution templates]]
+
[[Category:Character-substitution templates]]
 
[[Category:Template namespace templates]]
 
[[Category:Template namespace templates]]
 
[[Category:Mathematical formatting templates]]
 
[[Category:Mathematical formatting templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 16:27, 14 October 2020

Usage

This template allows "=" to be used in unnamed template parameters. It inserts the one-character equals-sign ("=") into the text. However, in wp:CS1 cite titles, the Unicode form "&#61;" could be used instead, where a literal "=" is not wanted during formatting of a title.

Examples

  • {{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

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for =

A template to allow = to be used in template parameters

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
No parameters specified

See also