Extension:Random In Category

From mediawiki.org
This page is a translated version of the page Extension:Random In Category and the translation is 36% complete.
MediaWiki 拡張機能マニュアル
Random In Category
リリースの状態: 安定
実装 特別ページ
説明 Direct the user to a random page in a specified category
作者 Victor Vasiliev (VasilievVVトーク)
最新バージョン 2.2.0 (2019-04-04)
MediaWiki 1.25+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
translatewiki.net で翻訳を利用できる場合は、Random In Category 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

The Random In Category extension allows you to direct the user to a random page in a specified category.

使用法

Very similarly to Special:Random, you can specify a category name as a parameter to the page. Thus, "Special:RandomInCategory/Foo" or "Special:RandomPageInCategory/Foo" (MW ≥ MW 1.22) will get you a page from the "Foo" category.

コアとの比較

MediaWiki バージョン:
1.22

In MediaWiki 1.22, a Special:RandomInCategory feature was added to core. The core version gives much more biased results than this extension (However, it has much less performance overhead). Versions of this extension for MediaWiki 1.22 and greater change the name that this extension provides from "Special:RandomInCategory" to Special:RandomPageInCategory to prevent conflict with the core feature.

インストール

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