Extension:LanguageCode
This extension is obsolete! It has been replaced by core functionality in the MediaWiki software (which was added in version 1.43). |
LanguageCode Release status: stable |
|
---|---|
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: Note: README Releases |
The LanguageCode extension adds some magic words that display the current user or page language code.
Installation
edit- Download and place the file(s) in a directory called
LanguageCode
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'LanguageCode' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
editDisplay the user language
edit
{{USERLANGUAGE}}
Display the page language
edit
{{PAGELANGUAGE}}