Extension:LanguageCode
![]() | This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() 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: 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[edit]
Display the user language[edit]
{{USERLANGUAGE}}
Display the page language[edit]
{{PAGELANGUAGE}}