The RSSPie extension fetches and displays RSS feeds on a wiki page using a simple tagging format.
Download
Template:ExtensionGitDownload
Installation
Template:ExtensionInstall
Usage
Each RSS feed must use its own set of <rss>
element tags. There are optional parameters available for the rss opening tag.
Attribute | Description |
---|---|
itemTemplate="PageName"
|
'PageName' (Default: Mediawiki:Rss_item_template) is used to define the display template for individual items in a feed. It requires a complete page name including namespace if needed. |
max="n"
|
show at most n channel subelements (items)
|
sort="newest"
|
Sort direction for feed items. Sorts newest first by default and can be set to oldest. |
dateFormat="(Y-m-d H:i:s)"
|
Date format string[1] |
descriptionTruncate="1000"
|
Truncates long descriptions automatically to the specified character length. |
Template for items in feeds
Editing the item template is not required, but allows customization on how the information is displayed. |
The template parser will substitute five pieces of information for each feed item as needed. {{{link}}} - The URL
{{{title}}} - Item Title
{{{author}}} - Author's Name
{{{date}}} - Epoch Date(Note: Display formatting is handled by Javascript in the browser.)
{{{description}}} - Full description or summarized content.
Default Mediawiki:Rss_item_template template:
'''<span class='plainlinks'>[{{{link}}} {{{title}}}]</span> - {{{author}}} - <span class='date_epoch'>{{{date}}}</span>''' : {{{description}}}
Example
This example displays a feed from Gampedia's home page with a maximum of six items displayed.
<rss max="6">http://www.gamepedia.com/news.rss</rss>
Configuration Settings
Variable | Default Value | Description |
---|---|---|
$rpCacheDuration | Default: 3600 seconds (One Hour) | Cache feed information for the specified amount of seconds. Note: Very short durations will increase server load and the number of requests made to the remote host. |