Template:Language/interface/doc: Difference between revisions
Jump to navigation
Jump to search
Note:Allows you to change the displayed text if the language was not defined:
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

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.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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)

{{intlang|en=}}
→
Parameters
- {{{default-none}}} - When language is English, don't return value.
- {{{pref}}} - Add prefix before language abbreviation.