Extension:SoftwareVersion/ja

From Linux Web Expert

MediaWiki 拡張機能マニュアル
SoftwareVersion
リリースの状態: 安定
実装 other (invalid type)
説明 Customizes Special:Version for ShoutWiki
作者 Jack Phoenix
最新バージョン 0.6.1 (2017-01-28)
MediaWiki 1.39.7+
ライセンス ライセンス未指定
ダウンロード
ShoutWiki
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').
translatewiki.net で翻訳を利用できる場合は、SoftwareVersion 拡張機能の翻訳にご協力ください

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".

インストール

  • 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 ;-)
  • <translate> [[<tvar name=2>Special:ExtensionDistributor/SoftwareVersion/ja</tvar>|Download]] and move the extracted <tvar name=name>SoftwareVersion/ja</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/SoftwareVersion%2Fja
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'SoftwareVersion/ja' );
    
  • 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>