API:Watchlist feed

From MediaWiki.org
Jump to: navigation, search
Tools clipart.png This page is part of the MediaWiki API documentation.
Language: English
MediaWiki API

Quick overview:

v · d · e
MediaWiki version: 1.9

This module is to present either the current users, or else, with the correct token any other users on the wiki, Watchlist in an RSS or Atom format.

Parameters

  • feedformat: The format of the feed to return. Either rss (default) or atom
  • hours: List pages modified within this many hours from now. The value must be between 1 and 72. Default is 24
  • allrev: Include multiple revisions of the same page within given timeframe
  • wlowner: The user whose watchlist you want (must be accompanied by token if it's not you)
  • wltoken: Security token that requested user set in their preferences
  • linktodiffs: Link to change differences instead of article pages

Examples

Get the current users Special:Watchlist as a feed.

<?xml version="1.0"?> 
<?xml-stylesheet type="text/css" href="http://bits.wikimedia.org/skins-1.5/common/feed.css?283-19"?> 
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> 
        <channel> 
                <title>MediaWiki - My watchlist [en]</title> 
                <link>http://www.mediawiki.org/wiki/Special:Watchlist</link> 
                <description>My watchlist</description> 
                <language>en</language> 
                <generator>MediaWiki 1.16wmf4</generator> 
                <lastBuildDate>Mon, 10 Jan 2011 23:58:22 GMT</lastBuildDate> 
        </channel> 
</rss>