Extension:MySystemMessages

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎español • ‎polski • ‎português • ‎português do Brasil • ‎sicilianu • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
MySystemMessages
Release status: stable
Implementation MyWiki
Description Allows to add wiki specific system messages
Author(s) Karsten Hoffmeyer (Kghblntalk)
Latest version 1.0.1 (2015-01-07)
MediaWiki 1.17+
PHP 5.3+
Database changes No
License ISC License
Download
README
CHANGELOG
Translate the MySystemMessages extension if it is available at translatewiki.net
Check usage and version matrix.

The MySystemMessages extension allows to add wiki specific system messages. This extension comes in quite handy if you have multiple wiki instances which share the same content structure for, e.g. templates and forms. It makes it easier to deploy translations to these wiki instances by avoiding individual message setup on every instance. This also makes farming easier since the system messages may easily be deployed to all wiki instances.

Installation[edit]

  • Download and place the file(s) in a directory called MySystemMessages in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/MySystemMessages/MySystemMessages.php";
    
  • See the README for how to configure this extension.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

To add a system message to a page you will use the "int" parser function provided by core MediaWiki, i.e. {{int:message identifier}}, e.g. {{int:mysm-mymessage}}. Thus the message will be shown in the language the user selected in her or his preferences. If a message is not available in the internationalized version for a specific language the English version will be shown.

See also[edit]