Extension:LanguageCode
From Linux Web Expert
<translate> This extension is currently not actively maintained!</translate> <translate> Although it may still work, any bug reports or feature requests will more than likely be ignored.</translate> |
LanguageCode Release status: unmaintained |
|
---|---|
Implementation | Variable |
Description | Magic words that display the current user or page language code |
Author(s) | Pierre Rudloff (Rudlofftalk) |
MediaWiki | |
Composer | archi-strasbourg/language-code |
License | GNU General Public License 3.0 |
Download | GitHub:
<translate> Note:</translate> README Releases |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
The LanguageCode extension adds some magic words that display the current user or page language code.
Installation
- <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>
LanguageCode
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'LanguageCode' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Usage
Display the user language
{{USERLANGUAGE}}
Display the page language
{{PAGELANGUAGE}}
See also
Categories:
- Pages with script errors
- Pages with broken file links
- Unmaintained extensions
- Extensions without an image
- Variable extensions
- Extensions without a compatibility policy
- Extensions without MediaWiki version
- Extensions supporting Composer
- GPL licensed extensions
- Extensions in GitHub version control
- ParserGetVariableValueSwitch extensions
- MagicWordwgVariableIDs extensions
- All extensions
- Extensions not in ExtensionJson