Template:=

From Valve Developer Community
Revision as of 07:01, 25 April 2025 by SirYodaJedi (talk | contribs) (You're right, the include is superfluous. I think the category should still be there, so that people are aware the shortcut exists.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

Tip.pngTip: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.

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

  • {{Code|if (i {{=}}{{=}} 0) return count {{=}}{{=}} 0;}}
  • {{Code|1=if (i == 0) return count == 0;}}
Note.pngNote:MediaWiki doesn't use this page. The wikitext {{=}} 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.