Template:=/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (Robot - Speedily moving category Wikipedia character-substitution templates to Category:Character-substitution templates per CFDS.)
No edit summary
Line 1:
{{Documentation subpage}}
{{High-risk|386,000+}}
<!-- 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 ==
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.
 
== 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}}
 
== TemplateData ==
{{TemplateData header}}
 
<templatedata>
{
Line 27 ⟶ 23:
 
== See also ==
* {{tl|[[Template:((}},]] which produces: {{code|{{((}}}}
* {{tl|[[Template:))}},]] which produces: {{code|{{))}}}}
* <nowiki>{{tl|!}},</nowiki> which produces: {{code|{{!}}}} -- [[mw:Help:Magic words#Other|added in MediaWiki 1.24]]
* {{tl|ifequal}}
* [[mw:Help:Magic words]]
 
 
<includeonly>{{basepagesandbox subpageother||<!----PLEASE ADD CATEGORIES BELOW THIS LINE:---->
<!-- Add categories below this line, and interwikis at Wikidata -->
[[Category:Character-substitution templates]]
[[{{ns:Category}}:Template namespaceCharacter-substitution templates]]
[[{{ns:Category}}:MathematicalTemplate formattingnamespace templates]]
[[{{ns:Category}}:Character-substitutionMathematical formatting templates]]
}}</includeonly>

Revision as of 10:37, January 7, 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

You can also use named parameters to bypass the restriction:

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

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