Extension:MessageCommons
Appearance
Release status: beta |
|
|---|---|
| Implementation | User interface, Database |
| Description | Allows MediaWiki messages to be shared from a central database. |
| Author(s) | |
| Latest version | 2.0 (2020-05-26) |
| MediaWiki | 1.43+ |
|
|
| License | GNU General Public License 2.0 or later |
| Download | |
| Example | ShoutWiki & Interface Messages Wiki (ShoutWiki's MessageCommons wiki) |
| Translate the MessageCommons extension if it is available at translatewiki.net | |
| Issues | Open tasks · Report a bug |
The MessageCommons extension allows MediaWiki messages to be shared from a central database.
Installation
[edit]- Download and move the extracted
MessageCommonsfolder to yourextensions/directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MessageCommons
- Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'MessageCommons' );
- Set
$wgMessageCommonsIsCommonstotruefor the wiki where messages should be fetched from and set$wgMessageCommonsLangand$wgMessageCommonsDatabasein the wiki farm's GlobalSettings.php/CommonSettings.php
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Parameters
[edit]$wgMessageCommonsIsCommons(boolean)
- Set this to
truefor the wiki which "hosts" MessageCommons
$wgMessageCommonsLang(string)
- Set this to the language code ($wgLanguageCode) of the MessageCommons wiki
$wgMessageCommonsDatabase(string)
- Set this to the database name of the MessageCommons wiki
