Extension:FeaturedFeeds
From MediaWiki.org
|
FeaturedFeeds Release status: stable |
|||
|---|---|---|---|
![]() |
|||
| Implementation | Data extraction, API, Hook | ||
| Description | Adds syndication feeds of wiki's featured content | ||
| Author(s) | Max Semenik (MaxSemtalk) | ||
| Last version | continuous updates | ||
| MediaWiki | 1.19+ | ||
| PHP | 5.2+ | ||
| Database changes | no | ||
| License | WTFPL 2.0 | ||
| Download |
CHANGELOG |
||
|
|||
|
|||
| Check usage and version matrix; stats | |||
FeaturedFeeds is an extension that creates daily feeds (Atom or RSS) of wiki's featured content (ranging from Featured Articles to Media of the Day). The feeds are added to site's main page and are available via the API. See also: /WMF deployment, wikis using this extension.
Contents |
Using FeaturedFeeds[edit]
This extension requires that wikis use an automated process to publish their featured content daily (or at least very often).
Installation[edit]
- Download the files from Git or download a snapshot. Choose the version that matches your version of MediaWiki.
- Create a directory
FeaturedFeedsin your$IP/extensionsdirectory. - Extract the files to this
$IP/extensions/FeaturedFeedsdirectory. - Add to the end of LocalSettings.php:
require_once("$IP/extensions/FeaturedFeeds/FeaturedFeeds.php");
- Installation can now be verified through Special:Version on your wiki
Configuration[edit]
A wiki must have some means of caching set up to use FeaturedFeeds, or everything will be super slow.
Settings[edit]
| Variable name | Description |
|---|---|
| $wgFeaturedFeeds | Contains array of feed definitions in the following format:
'feed name' => array( 'page' => <message name>, 'title' => <message name>, 'description' => <message name>, 'entryName' => <message name>, ) Mandatory items:
Also see below for optional settings. |
| $wgFeaturedFeedsDefaults | Provides default values for some parameters of every feed from $wgFeaturedFeeds.
Default value: array( 'limit' => 10, 'inUserLanguage' => false, )
|
| $wgDisplayFeedsInSidebar | Whether links to feeds should be displayed in sidebar on main page |
On-site configuration[edit]
API module[edit]
FeaturedFeeds adds API action=featuredfeed. Parameters:
- feedformat
- feed format, rss or atom. If omitted, RSS will be assumed.
- feed
- Feed name. Required.
- language
- Feed language. Not the language of Wikipedia from which to retrieve data, but akin to uselang=<...> parameter to index.php. Might be ignored, depending on each feed's settings. If omitted, content language will be assumed.
| This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
