Extension:StatCounter.com Integration/ja

From Linux Web Expert

Revision as of 05:43, 27 January 2024 by imported>Shirayuki (Created page with "Extension:StatCounter.com Integration")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki 拡張機能マニュアル
StatCounter.com Integration
リリースの状態: 安定
実装 利用者アクティビティ
説明 Inserts StatCounter.com script into MediaWiki pages for tracking
作者 Jack Phoenix
最新バージョン 1.1
MediaWiki 1.41+
ライセンス パブリック ドメイン
ダウンロード
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 で翻訳を利用できる場合は、StatCounter.com Integration 拡張機能の翻訳にご協力ください

The StatCounter extension inserts StatCounter.com script into MediaWiki pages for tracking. The hit counter is displayed on the sidebar, in a new portlet. This portlet's title can be customized by editing [[MediaWiki:Statcounter]].

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/StatCounter</tvar>|Download]] and move the extracted <tvar name=name>StatCounter</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/StatCounter
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'StatCounter' );
    
  • Fill in [[MediaWiki:Statcounter-project-id]] (with a number) and [[MediaWiki:Statcounter-security]] (with a string). You will find the correct values for both of these as values of the JavaScript variables sc_project and sc_security, respectively, as provided to you by StatCounter.com
  • 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>
This extension doesnot work anymore, see discussion for the new solution

See also