Extension:InteractiveBlockMessage

From Linux Web Expert

MediaWiki extensions manual
InteractiveBlockMessage
Release status: beta
Implementation Parser extension
Description Allows to use and create interactive block templates
Author(s) Petr Bena (Petrbtalk)
Latest version 1.1.0 (2014-04-01)
MediaWiki 1.17+
License GNU General Public License 2.0 or later
Download
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').
Translate the InteractiveBlockMessage extension if it is available at translatewiki.net

The InteractiveBlockMessage extensions adds a new magic word {{USERBLOCKED}} which, when used in the NS_USER or NS_USER_TALK namespaces, indicates the blocked status of the user (true if blocked, false if not blocked). It will make it possible to create more user-friendly block templates, which change appearance depending on the user's block status.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/InteractiveBlockMessage</tvar>|Download]] and move the extracted <tvar name=name>InteractiveBlockMessage</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/InteractiveBlockMessage
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'InteractiveBlockMessage' );
    
  • 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>