Extension:RecentPages

What can this extension do?
Adds a list of recently added pages to the current page. It can also do random pages. If used in conjunction with CustomNavBlocks can be used to add a side-panel of recent additions to the wiki. The  option will pull back recent pages from all the namespaces specified in $wgContentNamespaces. Pages that are redirects will be excluded.

Note that the only options you have for the random pages are mainspace and all content namespaces. There are technical reasons for that having to do with how RandomPage is set up. Basically, it defaults to the content namespaces, and there's probably some way to override that, but I got tired of fooling with it. A makeshift solution is just to pull everything and then filter it, but that gets pretty expensive if you're dealing with a small subset of the content pages, and it doesn't work at all if it's not a subset of the content pages (e.g. the User space is generally not a content namespace). However, mainspace is usually a pretty big subset of the content namespaces, so I left that as an option.

Examples
// Pull back six most recent normal pages // Pull back ten most recent pages from user namespace 

// Pull back six most recent pages in content namespaces 

// Pull back six most recent pages regardless of namespace

// Pull back six most recent pages regardless of namespace and display in double-column format

// Pull back six most recent pages regardless of namespace and display in double-column format

// Pull back twelve random pages from mainspace that have a minimum length of 600 characters 

// Pull back twelve random pages from mainspace that have a minimum length of 1,000 characters 

// Pull back twelve random pages from mainspace and sort them alphabetically 

Changelog

 * 0.1.1 &mdash; Weed out redirects from results; also add "content" options and "columns" argument
 * 0.1.2 &mdash; Add random tag

Code
Place the following code in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php: