Extension:FeaturedFeeds/fr
![]() État de la version : stable |
|
---|---|
![]() |
|
Implémentation | Extraction de données, API , Accroche |
Description | Adds syndication feeds of wiki's featured content |
Auteur(s) | Max Semenik (MaxSemdiscussion) |
Dernière version | continuous updates |
MediaWiki | 1.19+ |
PHP | 5.4+ |
Modifie la base de données |
Non |
Licence | WTFPL v2.0 |
Téléchargement | CHANGELOG |
|
|
Téléchargements trimestriels | 28 (Ranked 132nd) |
Utilisé par les wikis publics | 876 (Ranked 273rd) |
Traduire l’extension FeaturedFeeds sur translatewiki.net si elle y est disponible | |
Problèmes | Tâches ouvertes · Signaler un bogue |
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 featuredfeed API module. See also: Extension:FeaturedFeeds/WMF deployment .
Using FeaturedFeeds
This extension requires that wikis use an automated process to publish their featured content daily (or at least very often).
Installation
- Téléchargez et placez le(s) fichier(s) dans un répertoire appelé
FeaturedFeeds
dans votre dossierextensions/
. - Ajoutez le code suivant à la fin de votre fichier LocalSettings.php :
wfLoadExtension( 'FeaturedFeeds' );
Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.
Configuration
Settings
Variable name | Description |
---|---|
$wgFeaturedFeeds
|
Contains array of feed definitions in the following format:
'feed name' => [
'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: [
'limit' => 10,
'inUserLanguage' => false,
]
|
$wgDisplayFeedsInSidebar
|
Whether links to feeds should be displayed in sidebar on main page |
On-site configuration
- See the full subpage for details on the Wikimedia projects configuration
Message names
Each feed has the following messages controlling its behavior (replace * with feed name, chosen among those above):
Message | Description | Example |
---|---|---|
ffeed-*-page | Title of the page that contains day's featured content. Has one optional parameter, $1 , which gets substituted with feed language code for use in multilingual feeds (currently, only on Commons).
|
Wikipedia:Today's featured article/{{#time:F j, Y}}
|
ffeed-*-title | Feed name | Wikipedia featured articles feed |
ffeed-*-short-title | Short feed name, could be used on sidebar in the future | Featured articles |
ffeed-*-desc | More lengthy feed description | Best articles on Wikipedia!!! |
ffeed-*-entry | Title of each day's entry | {{CURRENTMONTHNAME}} {{CURRENTDAY}} Wikipedia featured article
|
How to set up a feed
Create a page named MediaWiki:Ffeed-*-page
containing the page title (again, replace * with the feed's name). Two cases are possible here:
- The wiki has a new page for each day, e.g. Wikipedia:Today's featured article/septembre 28, 2023 on the English Wikipedia. In such case, the title can use date and time magic words or
#time
parser functions to incorporate the date in the page title. The title in the example here isWikipedia:Today's featured article/{{#time:F j, Y}}
. - The wiki uses a single template that uses date magic internally to display proper content. In such cases, either point
MediaWiki:Ffeed-*-page
to that template directly, or, if it has<noinclude>
sections not intended for readers to see, point it to a page that contains a transclusion of the said template and nothing else.
MediaWiki:Ffeed-*-page
, otherwise your new feed might take up to one hour to catch up these changes.How to publish feeds in the sidebar
Just create page MediaWiki:Ffeed-enable-sidebar-links with content other than a dash (-) or an empty string. A section called "Featured content feeds" will appear in the sidebar on the main page.
API module
www.mediawiki.org has no featured feeds, so the generated API documentation on this wiki is not very useful.
Instead, see the generated API documentation on enwiki, which lists the feeds it provides and has a working example.
![]() | Cette extension est utilisée par au moins un des projets Wikimédia. Cela signifie probablement que l’extension est assez stable et fonctionnelle pour être utilisée sur des sites à fort trafic. Recherchez le nom de cette extension dans le CommonSettings.php de Wikimédia et dans le fichier de configuration InitialiseSettings.php pour situer les endroits où elle est installée. Une liste complète des extensions installées sur un Wiki donné peut être visualisée sur la page Special:Version de ce wiki. |
- Stable extensions/fr
- Data extraction extensions/fr
- API extensions/fr
- Hook extensions/fr
- WTFPL licensed extensions/fr
- Extensions in Wikimedia version control/fr
- BeforePageDisplay extensions/fr
- PageSaveComplete extensions/fr
- SidebarBeforeOutput extensions/fr
- All extensions/fr
- Extensions used on Wikimedia/fr
- Metadata/fr
- Feed generator extensions/fr