Template:=

From Gentoo Wiki
Jump to: navigation, search

=

[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Use this template to encode a "=" within template parameters, because the equal sign character is normally interpreted as an operator that assigns a value to a named parameter.

Usage

{{=}}

See the template's testcases:

Correct

Used alone
Wiki code
{{=}}
Main version
=
Sandbox version


Used in a template parameter to display an equals sign
Wiki code
{{Cmd|ls --color{{=}}never}}
Main version
user $ls --color=never
Sandbox version
user $ls --colornever


Incorrect

Any parameters (not supported)
Wiki code
{{=|anything}}
Main version
=
Sandbox version


Linking to this template

Note that a visible wikilink to this template can be created on a talk page or in template documentation by using:

{{Tl|=}} (which gives the result: {{=}})

Other seemingly obvious alternatives using {{Tl}} simply do not work. See Template talk:= for more information.

See also

Note
The above documentation is transcluded from Template:=/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)