Extension:GoogleNewsSitemap

What can this extension do?
This is like extension:DynamicPageList (Wikimedia), but instead outputting a categoryintersection in a wikipage, it makes a special page which outputs such a category-intersection as either an rss feed, an atom feed, or in google news sitemap format.

For example, this can create an rss feed of the last five articles added to category:Published, ordered by the date they were added to the category, as well as a bunch of other things.

This extension was originally made for wikinews. It requires more work before it will reach the standard required to be enabled on wikimedia servers. At the moment nobody is working on it. However it does work, just a little rough around the edges.

Usage
It uses the syntax of (stuff in [ ] is optional, stuff in means potential choices):

you can have multiple category and notcategory arguments.

For example if you wanted an rss feed of the last 7 articles added to Category:Foo and Category:Bar but not in Category:Baz, ordered by the date added to Category:Foo such that the one added most recently comes first, you would use the page http://my.wiki.example.com/w/index.php?title=Special:GoogleNewsSitemap/rss&category=foo&category=bar&notcategory=baz&stablepages=include&qualitypages=include

Just doing Special:GoogleNewsSitemap uses the category Published, and the feed type of atom, no notcategories, count of 50, order descending, ordermethod categoryadd, redirects include, stable and quality pages set to only. (These are sucky defaults, you may need to override a lot of them).

It can also be included as into a normal wiki page. (however that currently doesn't work. In theory you can. In practise use the DynamicPageList extension)

See extension:DynamicPageList (Wikimedia) to see what the options do. Well they are not exactly the same, they are very similar.

Download instructions
Download from svn or Special:ExtensionDistributor/GoogleNewsSitemap.

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

Configuration parameters
The categories in use by the sitemap format is controled by mediawiki:gnsm_categorymap which maps categories to sitemap keywords. it uses the format:
 * categoryname|keywordname
 * categorynameyouwanthidden|__MASK__