Template:Language
This template is used on many pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.
Consider discussing changes on the talk page before implementing them.
Over 18,000+ pages are using this template.
When transcluded or used in namespaces highlighted with orange text this template returns language shortcut based on language prefix of the page otherwise it returns the shortcut based on user's interface language.
Templates Template:pagelang or Template:intlang are substituted in the subpages which are named after each namespace number
- Special namespace: Template:Language/-1 - only usable here: Special:ExpandTemplates
- (main) namespace: Template:Language/0
- Talk namespace: Template:Language/1
- User namespace: Template:Language/2 - checks for existence of
User:{{ROOTPAGENAME}}/language
and uses that as language if it exists else interface language - User talk namespace: Template:Language/3 - checks for existence of
User:{{ROOTPAGENAME}}/language
and uses that as language if it exists else interface language - Valve Developer Community namespace: Template:Language/4
- Valve Developer Community talk namespace: Template:Language/5
- File namespace: Template:Language/6
- File talk namespace: Template:Language/7
- MediaWiki namespace: Template:Language/8 - does nothing, just gives empty string
- MediaWiki talk namespace: Template:Language/9
- Template namespace: Template:Language/10 - returns current subpage if it's valid language shortcut used in LanguageBar else returns interface language
- Template talk namespace: Template:Language/11
- Help namespace: Template:Language/12
- Help talk namespace: Template:Language/13
- Category namespace: Template:Language/14
- Category talk namespace: Template:Language/15
Language prefix:
{{language}}
used or transcluded on pageHu/Info_target
becomes hu{{language}}
used or transcluded on pageCategory:Vi/Level Design
becomes vi{{language}}
used or transcluded on pageHelp:Eo/Contents
becomes eo{{language}}
used or transcluded on pageDota_2_Workshop_Tools/Addon_Overview/Addon_Creation
becomes en{{language}}
used or transcluded on pageJa/Dota_2_Workshop_Tools/Addon_Overview/Addon_Creation
becomes ja
See Also
The above documentation is transcluded from Template:Language/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.