Template:Language/interface/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{doc/subpage}}
{{shortcut|intlang}}
{{shortcut|intlang}}
Intlang — interface language. It is to get the current user's interface language.
Intlang — interface language. It is to get the current user's interface language. This should be used for templates that can be considered part of the wiki's interface rather than content of the given page. For example translation notices {{T|Translate}}, deletion notice {{T|Delete}}. Otherwise {{T|Language}} should be let to handle the job.


{{Code|{{Tl|intlang}}}} → '''{{intlang}}''' (see the difference when changing the language via flags on the top right)
{{Code|{{Tl|intlang}}}} → '''{{intlang}}''' (see the difference when changing the language via flags on the top right)

Revision as of 10:26, 8 May 2025

Edit-copy.png
This is a documentation subpage for Template:Language.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Shortcut
intlang

Intlang — interface language. It is to get the current user's interface language. This should be used for templates that can be considered part of the wiki's interface rather than content of the given page. For example translation notices {{Translate}}, deletion notice {{Delete}}. Otherwise {{Language}} should be let to handle the job.

{{intlang}}en (see the difference when changing the language via flags on the top right)


Note.pngNote:Allows you to change the displayed text if the language was not defined:

{{intlang|en=}}

Parameters

  • {{{default-none}}} - When language is English, don't return value.
  • {{{pref}}} - Add prefix before language abbreviation.

See also