Difference between revisions of "Template:=/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Meteor sandwich yum
m (94 revisions imported)
 
(50 intermediate revisions by 32 users not shown)
Line 1: Line 1:
{{documentation subpage}}
+
{{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}}
    PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
+
{{High-risk|386,000+}}
    YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
+
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) -->
-->
 
{{high-risk|270,000+}}
 
==Usage==
 
  
This template allows "<code>=</code>" to be used in template parameters.  
+
== 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 "&amp;#61;" could be used instead, where a literal "=" is not wanted during formatting of a title.
  
This template cannot be [[WP:SUBST|substituted]].
+
== Examples ==
 +
* <code><nowiki>{{Font color|black|yellow|2 + 2 {{=}} 4}}</nowiki></code> produces: {{Font color|black|yellow|2 + 2 {{=}} 4}}
  
==Example==
+
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>{{Colors|black|yellow|2 + 2 {{=}} 4}}</nowiki></code> {{Arrow}} {{Colors|black|yellow|2 + 2 {{=}} 4}}
+
== TemplateData ==
 
+
{{TemplateData header}}
You can also use named parameters to bypass the restriction:
+
<templatedata>
*<code><nowiki>{{Colors|black|yellow|3= 2 + 2 = 4}}</nowiki></code> {{Arrow}} {{Colors|black|yellow|3= 2 + 2 = 4}}
+
{
 +
"description": "A template to allow = to be used in template parameters",
 +
"params": {},
 +
"format": "{{_\n| _ = _\n}}"
 +
}
 +
</templatedata>
  
==TemplateData==
+
== See also ==
{{TemplateDataHeader}}
+
* [[Template:((]] which produces: {{code|{{((}}}}
<TemplateData>
+
* [[Template:))]] which produces: {{code|{{))}}}}
{"description":"A template to allow = to be used in template parameters","params":{}}
+
* <nowiki>{{!}}</nowiki> which produces: {{code|{{!}}}} – this is a Wikimedia [[mw:Help:Magic words#Other|"magic word" added in MediaWiki 1.24]]
</TemplateData>
+
* {{tl|ifequal}}
 +
* [[mw:Help:Magic words]]
  
==See also==
+
<includeonly>{{sandbox other||
* {{tl|((}} &mdash; produces {{((}}
+
<!-- Add categories below this line, and interwikis at Wikidata -->
* {{tl|))}} &mdash; produces {{))}}
+
[[Category:Character-substitution templates]]
* {{tl|!}} &mdash; produces {{!}}
+
[[Category:Template namespace templates]]
* {{tl|Ifequal}}
+
[[Category:Mathematical formatting templates]]
<includeonly>
+
}}</includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
 
[[Category:Escape templates|{{PAGENAME}}]]
 
[[Category:Template namespace templates|{{PAGENAME}}]]
 
[[Category:Mathematical formatting templates|{{PAGENAME}}]]
 
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
 
</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