Extension:FeedImport

What can this extension do?
Integrates an RSS or Atom feed into a Mediawiki page. It's based on Extension:GISWiki/RSS and additionally supports the use of Mediawiki templates to render the feed items.

Installation

 * 1) Install Magpie RSS. (No need to reference rss_fetch.inc, this is done from within the FeedImport extension.)
 * 2) Copy feedimport.php into your extension directory.
 * 3) Edit the MAGPIE_DIR variable to point to the Magpie location in feedimport.php:
 * 4) Reference feedimport.php from LocalSettings.php:

Parameters

 * charset : The charset used by the feed. iconv is used to convert this. Default:.
 * date_format : A format string accepted by PHP's date function. Default:.
 * dc_creator :
 * filter : Show only rss items containing at least one of the terms.
 * highlight : The terms separated by a space are highlighted.
 * max : Shows x most recent headlines.
 * nodate : Don't display an item's date. Default: off.
 * reverse : Display the rss items in reverse order.
 * short : Do not show the description text for each news item.
 * template : The MediaWiki template to use. The template can use the parameters,  ,  ,   and  . Default:.
 * title : Display an alternative title instead of channel name.  displays no channel name.

Embedding the feed
http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml|template=BBC

The Template

 * [ ]

Code
Download from SVN or use the following code. SVN is the official release, but as of 2007-10-14, the code below is more current.

Please add improvements to the code below.