Difference between revisions of "Template:=/doc"
Jump to navigation
Jump to search
blackwiki>Cydebot m (Robot - Speedily moving category Wikipedia character-substitution templates to Category:Character-substitution templates per CFDS.) |
blackwiki>Milker |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{High-risk|386,000+}} | {{High-risk|386,000+}} | ||
| − | <!-- | + | <!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) --> |
| − | |||
| − | |||
| − | --> | ||
== Usage == | == 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 | + | 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 == |
| − | *<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 == | ||
{{TemplateData header}} | {{TemplateData header}} | ||
| − | |||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 27: | Line 23: | ||
== See also == | == See also == | ||
| − | * | + | * [[Template:((]] which produces: {{code|{{((}}}} |
| − | * | + | * [[Template:))]] which produces: {{code|{{))}}}} |
| − | * {{ | + | * <nowiki>{{!}}</nowiki> which produces: {{code|{{!}}}} -- [[mw:Help:Magic words#Other|added in MediaWiki 1.24]] |
* {{tl|ifequal}} | * {{tl|ifequal}} | ||
| + | * [[mw:Help:Magic words]] | ||
| + | |||
| − | <includeonly>{{ | + | <includeonly>{{sandbox other|| |
| − | [[Category:Character-substitution templates]] | + | <!-- Add categories below this line, and interwikis at Wikidata --> |
| − | [[Category:Template namespace templates]] | + | [[{{ns:Category}}:Character-substitution templates]] |
| − | [[Category:Mathematical formatting templates]] | + | [[{{ns:Category}}:Template namespace templates]] |
| + | [[{{ns:Category}}:Mathematical formatting templates]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 10:37, 7 January 2020
| This is a documentation subpage for Template:=. It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on 470,000+ pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Transclusion count updated automatically (see documentation). |
Contents
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 "=" 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
| Parameter | Description | Type | Status | |||
|---|---|---|---|---|---|---|
| No parameters specified | ||||||
See also
- Template:(( which produces:
{{ - Template:)) which produces:
}} - {{!}} which produces:
|-- added in MediaWiki 1.24 - {{ifequal}}
- mw:Help:Magic words