Extension:RSS

The RSS extension displays one or more RSS feeds on a wiki page in a standard or user-definable format. It is stable but flagged as beta, because the current version fails to render certain kind of feeds. Since version 2.00, the extension is also compatible with wiki-page-generated feeds (RSS or ATOM).

Installation

 * 1) Download the files into
 * 2) Place the following text in your LocalSettings.php file: require_once("$IP/extensions/RSS/RSS.php");
 * 3) Installation can now be verified through your wiki's Special:Version

Usage
Use one section between -tags for each feed. The rss element may contain parameters if you provide them as attributes to the rss element:

This extension supports filtering-out (i.e. ) items based on title when in short list mode.

Templates for channel subelements and styling the RSS Feed
If a template is not specified, then the one in MediaWiki:Rss-item is used and determines which RSS feed channel subelements (items) are used.

This is by default (until extension version 1.8)

This is the new template, suggested and proposed for implementation in version 1.9+

The selected items are passed to another template Template:RSSPost which determines how the RSS Feed is rendered on the wiki pages. It iterates over each &lt;item&gt; of the RSS feed and substitutes the value of each element found there, e.g. &lt;title&gt;, &lt;link&gt;, &lt;date&gt;, &lt;author&gt;, etc.

Example
The following code renders the three recent items of the wikimedia blog feed on the present page and highlights some terms. The layout depends on the content of feed template Template:RSSPost and also of the item template MediaWiki:Rss-item as mentioned above: http://blog.wikimedia.org/feed/ http://blog.wikimedia.org/feed/

It does not work: Message "Error parsing XML for RSS" shown

 * Filed as Bug 30028 "Error parsing XML and HTML for RSS" - improve and harden Extension:RSS when parsing differently flavoured RSS feeds". If you have to make any comments, please add them to this bug.

The Extension fails to render a big group of feeds with the message "Error parsing XML for RSS". There's a known issue (bug) with the XML parsing of non-RSS feeds. I started investigations how this can finally be solved. --Wikinaut (talk) 08:36, 16 February 2012 (UTC)

Technical history
RSS extension is a modified version of
 * the RSS engine from Mafs, which is a modified version of
 * the RSS engine from Rdb78, which is a modified version of
 * the RSS engine from Duesentrieb, which is a modified version of
 * the RSS-feed extension by Mutante.

Version 1.94 2012-02-23

 * behaviour change and new name for $wgRSSUrlWhitelist for former $wgRSSAllowedFeeds as explained above

Version 1.92 2012-02-13

 * added optional date format string
 * added optional item length limitation
 * description of older versions can be found on previous versions of this page and the RELEASE NOTES.