Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:=/doc: Difference between revisions

Template page
Casiope (talk | contribs)
mNo edit summary
Casiope (talk | contribs)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
The template {{tlg|{{=}}}} allows the equals‐sign “=” to be used in unnamed template parameters.
== Usage ==
== Usage ==


This template allows "=" to be used in unnamed template parameters. It inserts the one-character equals-sign ("=") into the text. However, in cite titles, the Unicode form "=" could be used instead, where a literal "=" is not wanted during formatting of a title.
It inserts the one‐character equals sign =into the text. However, the Unicode form =could be used instead, where a literal =is not wanted during formatting of a title.
 
== Example ==
 
* {{tlx|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:
== Examples ==
* {{tlx|Font color|black|yellow|3= 2 + 2 = 4}} produces: {{Font color|black|yellow|3= 2 + 2 = 4}}


== See also ==
{|class=wikitable style="width:100%;"
! Markup
! Renders as
|-
| <code><nowiki>{{font color|black|yellow|2 + 2 {{=}} 4}}</nowiki></code>
| {{font color|black|yellow|2 + 2 {{=}} 4}}
|-
| <code><nowiki>{{font color|black|yellow|3= 2 + 2 = 4}}</nowiki></code>
| {{font color|black|yellow|3= 2 + 2 = 4}}
|}


* {{tl|((}}, which produces: {{((}}
[[Category:Templates]][[Category:Character‐substitution templates]][[Category:Templates documentation]]
* {{tl|))}}, which produces: {{))}}
* {{tl|!}}, which produces: {{!}}
* {{tl|ifequal}}

Latest revision as of 13:24, 22 July 2020

The template {{=}} allows the equals‐sign “=” to be used in unnamed template parameters.

Usage

It inserts the one‐character equals sign “=” into the text. However, the Unicode form “&#61;” could be used instead, where a literal “=” is not wanted during formatting of a title.

Examples

Markup Renders as
{{font color|black|yellow|2 + 2 {{=}} 4}} 2 + 2 = 4
{{font color|black|yellow|3= 2 + 2 = 4}} 2 + 2 = 4