Difference between revisions of "Template:=/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>MZMcBride
(/doc)
 
m (94 revisions imported)
 
(93 intermediate revisions by 65 users not shown)
Line 1: Line 1:
{{template doc page}}
+
{{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]].}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
+
{{Documentation subpage}}
This is an auxiliary template allowing to encode "<code>=</code>"
+
{{High-risk|386,000+}}
within template parameters.
+
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) -->
  
For obvious reasons this is a '''high risk template''',
+
== Usage ==
and it cannot be [[WP:SUBST|substituted]].
+
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.
  
{{Lts|{{PAGENAME}}}}
+
== Examples ==
 +
* <code><nowiki>{{Font color|black|yellow|2 + 2 {{=}} 4}}</nowiki></code> produces: {{Font color|black|yellow|2 + 2 {{=}} 4}}
  
==See also==
+
You can also use named parameters to bypass the restriction:
* [[:Template:((]] &mdash; produces &#x7B;&#x7B;
+
* <code><nowiki>{{Font color|black|yellow|3= 2 + 2 = 4}}</nowiki></code> produces: {{Font color|black|yellow|3= 2 + 2 = 4}}
* [[:Template:))]] &mdash; produces &#x7D;&#x7D;
 
  
<includeonly>
+
== TemplateData ==
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
{{TemplateData header}}
[[Category:Template namespace templates|{{PAGENAME}}]]
+
<templatedata>
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
{
[[hsb:Předłoha:Eq]]
+
"description": "A template to allow = to be used in template parameters",
</includeonly>
+
"params": {},
 +
"format": "{{_\n| _ = _\n}}"
 +
}
 +
</templatedata>
 +
 
 +
== See also ==
 +
* [[Template:((]] which produces: {{code|{{((}}}}
 +
* [[Template:))]] which produces: {{code|{{))}}}}
 +
* <nowiki>{{!}}</nowiki> which produces: {{code|{{!}}}} – this is a Wikimedia [[mw:Help:Magic words#Other|"magic word" added in MediaWiki 1.24]]
 +
* {{tl|ifequal}}
 +
* [[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>

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