Extension:ArticleRatings

This page is a translated version of the page Extension:ArticleRatings and the translation is 25% complete.
MediaWiki 拡張機能マニュアル
ArticleRatings
リリースの状態: 安定
実装 タグ , 特別ページ
説明 Adds a complex interface for giving pages ratings.
作者 Adam Carter
最新バージョン 2.6
MediaWiki >= 1.39.0
データベースの変更 はい
テーブル ratings
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
README
Brickimedia
  • $wgAREUseInitialRatings
  • $wgARENamespaces
‎<rating />
change-rating
四半期ごとのダウンロード数 5 (Ranked 127th)
translatewiki.net で翻訳を利用できる場合は、ArticleRatings 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

The ArticleRatings extension adds an interface for rating pages. Privileged users (those with the change-rating user right, by default members of the reviewers group) will see a link on the toolbox on supported skins and they will be able to use the interface at Special:ChangeRating to change pages' ratings.

This extension was developed for Brickimedia, and is not as portable as it could be.

Installation

  • ダウンロードして、ファイルをextensions/フォルダー内のArticleRatingsという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ArticleRatings
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'ArticleRatings' );
    
    Configure MediaWiki:Are-ratings interface message on-wiki; see #Messages below for more info. This is not optional!
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

User rights

  • change-rating – new user right allows user to change the ratings of pages.

Tags

‎<rating /> adds the rating of a page to a page. ‎<rating /> on its own will add the rating of the page it is on, and <rating page="title" /> will give the rating of title.

Special pages

  • Special:ChangeRating – interface for changing pages' ratings.
  • Special:MassRatings – interface for getting the ratings of many pages at once.

Messages

  • MediaWiki:Are-ratings – JSON file giving the name, codename (has to be 2 characters long), image, and link, for each rating. Should be an array of objects, in PHP-valid JSON. See Brickipedia for an example. The codename is just a 2 character string used by the software to identify the ratings, it doesn't matter what it is, as long as each rating's is different. Whichever rating comes first will be the default rating (the one used before the rating has been changed)

Variables

  • $wgARENamespaces = $wgContentNamespaces; - Array of namespace numbers/constants that are allowed to have ratings on them.
  • $wgAREUseInitialRatings = false; - If true, the ratings tag has an init-rating parameter that wil set the initial rating to the codename supplied, not the default. Not recommended for production use, but can be used as a workaround to allow bots to use the extension.