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}}
{{doc/subpage}}
{{shortcut|intlang}}
{{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 {{T|Translate}}, deletion notice {{T|Delete}}. Otherwise {{T|Language}} should be let to handle the job.
Intlang — interface language. It is used to get the current user's wiki 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}}. It might also have a use on categories that might not have much sense to be separated into separate language domains like categories meant only for images.
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)

Latest revision as of 02:04, 12 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 used to get the current user's wiki 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}}. It might also have a use on categories that might not have much sense to be separated into separate language domains like categories meant only for images. 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