Extension:Newest Pages
リリースの状態: 安定 |
|
|---|---|
| 実装 | 特別ページ, パーサー拡張機能 |
| 説明 | Provides a list of the most recently created pages on the wiki |
| 作者 | Rob Church (Robchurchトーク) |
| 最新バージョン | 1.22.0 (2019-09-16) |
| MediaWiki | 1.40+ |
| PHP | 7.0+ |
| データベースの変更 | いいえ |
|
$wgNewestPagesLimit |
|
| ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
| ダウンロード | README CHANGELOG |
| translatewiki.net で翻訳を利用できる場合は、Newest Pages 拡張機能の翻訳にご協力ください | |
| 問題点 | 未解決のタスク · バグを報告 |
The Newest Pages extension provides a flexible dual-use special page which lists the most recently created pages on the wiki. This code doesn't use the recentchanges table, and so items do not expire, as with Special:Newpages.
インストール
- ダウンロードして、ファイルを
extensions/フォルダー内のNewestPagesという名前のディレクトリ内に配置します。
開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NewestPages
- 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'NewestPages' );
- Configure as required.
完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
設定
- $wgNewestPagesLimit
- The maximum number of pages that can be listed with this extension. In any case, the number of pages listed will be limited to 5000, but this variable can set a lower limit.
使用法
The list can be accessed as a conventional special page, or through inclusion into another page.
特別ページ
The special page is located at Special:Newestpages and provides a full interface to filter according to namespace, limit the number of results, and toggle the inclusion of redirect pages.
Inclusion
You can include a list of pages into another page using named parameters, e.g.
{{Special:Newestpages|namespace=User}}
will produce a list of the newest pages in the User namespace.
Available parameters:
- namespace - Specify which namespace to show pages from (default: -1)
- Use 0 or - for main namespace
- Use -1 or all for all namespaces (except MediaWiki namespace)
- Use namespace name (e.g. User, Talk, etc.) for specific namespaces
- limit - Number of results to show
- Default: 50 (can be changed with $wgNewestPagesLimit)
- Maximum: 5000
- redirects - Include redirect pages (1) or exclude them (0) (default: 1)
例:
Show 5 newest pages from main namespace:
{{Special:Newestpages|namespace=0|limit=5}}
Show 10 newest pages from all namespaces, excluding redirects:
{{Special:Newestpages|namespace=all|limit=10|redirects=0}}
Show 20 newest pages from User namespace, including redirects:
{{Special:Newestpages|namespace=User|limit=20|redirects=1}}
| この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: |
