Template:Language/doc
Jump to navigation
Jump to search
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.
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