Template:=: Difference between revisions
Jump to navigation
Jump to search
Tip:Instead of having to "escape" every single occurrence of an equals sign with {{=}} in an unnamed parameter of a template call, it may be easier to use the unnamed parameter like a named parameter.
Note:MediaWiki doesn't use this page. The wikitext
m (Added <includeonly> for our redundant template content.) |
(Included error message from Wikipedia in case the template is transcluded) Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly>=</includeonly><noinclude> | <includeonly>{{error|Error: The retired template {{tn|1==}} has been transcluded; see [[mw:Help:Magic words#Escaped characters]] for details. To fix this, use only the code {{((}}[[mw:Help:Magic words#=|=]]{{))}} to generate the = character.}} | ||
[[Category:Pages which use a template in place of a magic word|T{{PAGENAME}}]]</includeonly><noinclude> | |||
The expression <code><nowiki>{{=}}</nowiki></code> is used to insert a = character into a template or table where it would otherwise affect or break the formatting of the template/table instead of displaying the character. It is most likely to be used in conjunction with templates like {{T|Note}} or the {{T|Key}} template. See its documentation for further information. | The expression <code><nowiki>{{=}}</nowiki></code> is used to insert a = character into a template or table where it would otherwise affect or break the formatting of the template/table instead of displaying the character. It is most likely to be used in conjunction with templates like {{T|Note}} or the {{T|Key}} template. See its documentation for further information. | ||
{{Tip|Instead of having to "escape" every single occurrence of an equals sign with {{T|=}} in an unnamed parameter of a template call, it may be easier to use the unnamed parameter like a named parameter.<br> | {{Tip|Instead of having to "escape" every single occurrence of an equals sign with {{T|=}} in an unnamed parameter of a template call, it may be easier to use the unnamed parameter like a named parameter.<br> |
Revision as of 12:38, 24 April 2025
The expression {{=}}
is used to insert a = character into a template or table where it would otherwise affect or break the formatting of the template/table instead of displaying the character. It is most likely to be used in conjunction with templates like {{Note}} or the {{Key}} template. See its documentation for further information.

Both of the following deliver if (i == 0) return count == 0;:

{{=}}
is no longer a template call but instead a magic word since MediaWiki 1.39. We're above that since 2024-11-28. Deleting this page would have no impact, except for new editors trying to search it and not finding the above information.