Extension:RandomGameUnit

This page is a translated version of the page Extension:RandomGameUnit and the translation is 50% complete.
MediaWiki 拡張機能マニュアル
RandomGameUnit
リリースの状態: 安定
実装 パーサー拡張機能
説明 Displays a randomly chosen picture game, poll or a quiz
作者 Aaron Wright, David Pean, Jack Phoenix
最新バージョン 2.7 (2020-05-24)
MediaWiki 1.39+
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
  • $wgRandomGameDisplay
  • $wgRandomImageSize
Quarterly downloads 1 (Ranked 137th)
translatewiki.net で翻訳を利用できる場合は、RandomGameUnit 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

RandomGameUnit extension displays a randomly chosen picture game, poll or a quiz through the ‎<randomgameunit> tag.

要件

Along with one or more of the following extensions:

インストール

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

パラメーター

  • $wgRandomGameDisplaycontrols what games are enabled.
    • $wgRandomGameDisplay['random_poll']display a random poll. 既定値は true です。
    • $wgRandomGameDisplay['random_quiz']display a random quiz. 既定値は true です。
    • $wgRandomGameDisplay['random_picturegame']display a random picture game. 既定値は true です。
  • $wgRandomImageSizewidth (in pixels) for game images. 既定値は 50 です。