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
.
Installation
[
edit
]
- Download
and move the extracted
NewestPages
folder to your
extensions/
directory.
Developers and code contributors should install the extension
from Git
instead, using:
cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NewestPages
- Add the following code at the bottom of your
LocalSettings.php
file:
wfLoadExtension
(
'NewestPages'
);
- Configure as required.
-
Done
? Navigate to
Special:Version
on your wiki to verify that the extension is successfully installed.
Configuration
[
edit
]
- $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.
Usage
[
edit
]
The list can be accessed as a conventional special page, or through inclusion into another page.
Special page
[
edit
]
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
[
edit
]
You can include a list of pages into another page using the inclusion mechanism, e.g.
{{Special:Newestpages/User}}
will produce a list of the newest pages in the User namespace.
To select the main namespace, use
-
as the namespace name, e.g.
{{Special:Newestpages/-}}
To select all namespaces, use
all
as the namespace name, e.g.
{{Special:Newestpages/all}}
You can also limit the number of results listed, e.g.
{{Special:Newestpages/-/5}}
will produce a list of (at most) the five newest articles.
| This extension is included in the following wiki farms/hosts and/or packages:
This is not an authoritative list.
Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.
Always check with your wiki farms/hosts or bundle to confirm.
|