Extension:SoftwareVersion

From mediawiki.org
This page is a translated version of the page Extension:SoftwareVersion and the translation is 100% complete.
Manuel des extensions MediaWiki
SoftwareVersion
État de la version : stable
Implémentation other (invalid type)
Description Adapte Special:Version pour ShoutWiki
Auteur(s) Jack Phoenix
Dernière version 0.6.1 (2017-01-28)
MediaWiki 1.39.7+
Licence Licence publique générale GNU v2.0 ou supérieur
Téléchargement
Exemple ShoutWiki
  • $wgSoftwareVersionExecutablePath
Téléchargements trimestriels 7 (Ranked 138th)
Utilisé par les wikis publics 6,841 (Ranked 28th)
Traduire l’extension SoftwareVersion sur translatewiki.net si elle y est disponible

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

  • 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 ;-)
  • Téléchargez et placez le(s) fichier(s) dans un répertoire appelé SoftwareVersion dans votre dossier extensions/.
    Les développeurs et les contributeurs au code doivent à la place installer l'extension à partir de Git en utilisant:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SoftwareVersion
  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php  :
    wfLoadExtension( 'SoftwareVersion' );
    
  • Yes Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.