Extension:ExcludeRandom
Appearance
現在、この拡張機能は積極的な保守が行われていません! それでも機能する可能性はありますが、バグ報告や機能の要望は無視される可能性が高くなります。 |
リリースの状態: 保守されていない |
|
|---|---|
| 実装 | 自分のウィキ |
| 説明 | Allows pages to be excluded from Special:Random |
| 作者 | Matt Russell (ultradude25トーク) |
| 最新バージョン | 2.0.0 (2018-09-08) |
| MediaWiki | 1.16+ |
| PHP | 5.1+ |
| データベースの変更 | いいえ |
| ライセンス | 「修正」三条項 BSD ライセンス |
| ダウンロード | master スナップショットをダウンロード 注: |
|
|
|
The ExcludeRandom extension allows pages to be excluded from Special:Random. For example, this could be useful for hiding in-complete translation pages that have been yet to be moved to their own sub-domain.
インストール
- Downloadして、ファイルを
extensions/フォルダー内のExcludeRandomという名前のディレクトリ内に配置します。 - 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'ExcludeRandom' );
完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
設定
- $wgExcludeRandomPages
- The list of pages to be excluded, in an array.
*wildcard is supported (matches any amount of any characters).
使用法
$wgExcludeRandomPages = [ 'Main Page', '*/fr' ];
This will disallow Main Page and anything/fr from being selected by Special:Random.
