Jump to content

Extension:SoftwareVersion

From mediawiki.org
Revision as of 22:47, 13 August 2012 by KrenairBot (talk | contribs) (This extension appears to be in SVN, not Git.)
MediaWiki extensions manual
SoftwareVersion
Release status: stable
Implementation other (invalid type)
Description Customizes Special:Version for ShoutWiki
Author(s) Jack Phoenix
Latest version 0.4 (2010)
MediaWiki 1.15.0+
License GNU General Public License 2.0 or later
Download Template:WikimediaDownload/svn
  • $wgSoftwareVersionExecutablePath
Quarterly downloads 5 (Ranked 129th)
Public wikis using 6,841 (Ranked 28th)
Translate the SoftwareVersion extension if it is available at translatewiki.net

The SoftwareVersion extension resets MediaWiki's version on Special:Version to $wgVersion and adds a new column into Special:Version with information about the current SVN revision.

This extension was written by Jack Phoenix for ShoutWiki. ShoutWiki used its own Subversion (SVN) repo instead of the official MediaWiki Subversion (at svn.wikimedia.org), and ShoutWiki wanted to display the current (internal) SVN revision on Special:Version and have it displayed on its own column instead of being displayed in the MediaWiki column; because code revision r1000 is different for the official MediaWiki SVN and ShoutWiki's internal SVN.

If the site's source code is running from SVN's trunk, the new column in Special:Version will show "trunk". If it's running from /tags/weekly/, it will show whatever is the name of the "branch". ShoutWiki had weekly releases tagged as /tags/weekly/release date, i.e. /tags/weekly/20101001, so the new column in Special:Version would display "20101001".

Installation

  1. Download the source code and save it as extensions/SoftwareVersion/SoftwareVersion.php
    1. You will want to customize the extension to remove the ShoutWiki references, because chances are that you're not running ShoutWiki's version of MediaWiki ;-)
  2. Add
    require_once("$IP/extensions/SoftwareVersion/SoftwareVersion.php");
    
    to your wiki's LocalSettings.php
  3. Installation can now be verified through Special:Version on your wiki