Extension:EditCountNeue

This page is a translated version of the page Extension:EditCountNeue and the translation is 41% complete.
MediaWiki 拡張機能マニュアル
EditCountNeue
リリースの状態: ベータ
実装 パーサー関数 , 特別ページ , API
説明 Retrieves number of edits of a user
作者 NekoCharmトーク
互換性の方針 MediaWiki とともにリリースされるスナップショット。 master には後方互換性がありません。
MediaWiki >=1.35.0
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
EditCountNeue 拡張機能の翻訳にご協力ください

The EditCountNeue extension allows wikis to display the number of edits of a user, via a special page or a parser function. It is inspired by Editcount , and is rewritten to have more functionality and better support for newer versions of MediaWiki. EditCountNeue is a replacement of Editcount, please disable or remove Editcount before enabling EditCountNeue.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のEditCountNeueという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'EditCountNeue' );
    
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

使用法

特別ページ

EditCountNeue adds a special page called Special:EditCount under 利用者と権限 group. Select a user and click to see the number of edits of the user. It can also be accessed from Special:EditCount/<username>.

パーサー関数

EditCountNeue also adds a parser function to retrieve the number of edits of a user. 構文は以下の通りです:

{{#editcount: <利用者名> [ | <名前空間1> [ | <名前空間2> ... ] ] }}

username is required and is the name of the target user.

namespace1, namespace2 and so on are all optional and are the namespace names or namespace numbers of your need. If specified, the function returns the edit number of the specified namespaces. If omitted, returns the edit number of all namespaces.

An invalid username causes the function to return 0 as the result. An invalid namespace behaves as though that namespace argument does not exist. If all specified namespaces are invalid, the function returns 0.

API

EditCountNeue adds one API module list=editcount for query number of edits via API.

パラメーター
  • ecuser - The users to retrieve number of edits for.
  • ecnamepsace - Only list number of edits in these namespaces.
Example
api.php?action=query&list=editcount&ecuser=Example

関連項目