Template:=/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{mbox|type=notice|text=This template will soon be deprecated, as the {{tl|{{=}}}} will soon be a [[Wikipedia:Help:Magic words|Magic word]]. See reasons and status at [[Wikipedia:phab:T91154|phab:T91154]].}}
{{mbox|type=notice|text=This template will soon be deprecated, as the {{tl|{{=}}}} will soon be a [[Wikipedia:Help:Magic words|Magic word]]. See reasons and status at [[Wikipedia:phab:T91154|phab:T91154]].}}
{{Documentation subpage}}
{{Documentation subpage}}
{{template rating|p}}
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) -->


== Usage ==
== Usage ==
Line 8: Line 6:


== Examples ==
== Examples ==
* <code><nowiki>{{Font color|black|yellow|2 + 2 {{=}} 4}}</nowiki></code> produces: {{Font color|black|yellow|2 + 2 {{=}} 4}}
* {{tlc|Font color|black|yellow|2 + 2 {{=}} 4}} 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}}
* {{tlc|Font color|black|yellow|3{{=}} 2 + 2 = 4}} produces: {{Font color|black|yellow|3= 2 + 2 = 4}}


== TemplateData ==
== TemplateData ==
Line 22: Line 20:
</templatedata>
</templatedata>


== See also ==
<includeonly>{{sandbox other||{{testcases other||
* <nowiki>{{!}}</nowiki> which produces: <code>|</code> – this is a Wikimedia [[mw:Help:Magic words#Other|"magic word" added in MediaWiki 1.24]]
* [[mw:Help:Magic words]]


<includeonly>
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:Templates]]
[[Category:Character-substitution templates]]
[[Category:Character-substitution templates]]
</includeonly>
}}}}</includeonly>

Revision as of 15:58, 12 June 2023

header?
content?
Light bulb.png }}
It contains usage information, categories and other content that is not part of the original template page.

Usage

This template allows "=" to be used in unnamed template parameters. It inserts the one-character equals-sign ("=") into the text.

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}} produces: 2 + 2 = 4

TemplateData

A template to allow = to be used in template parameters

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
No parameters specified