Template:Language/interface/doc

From Valve Developer Community
Jump to navigation Jump to search
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