API:Watchlist feed
From MediaWiki.org
| This page is part of the MediaWiki action API documentation. |
MediaWiki action API
- Introduction and quick start
- FAQ
- Tutorial
- Formats
- Error reporting
- Restricting usage
- Cross-site requests
- Authentication
- Queries
- Searching (by title, content, coordinates...)
- Parsing wikitext and expanding templates
- Purging pages' caches
- Parameter information
- Changing wiki content
- Watchlist feed
- Wikidata
- Extensions
- Using the API in MediaWiki and extensions
- Miscellaneous
- Implementation
- Client code
- Asserting
| 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 atomhours: List pages modified within this many hours from now. The value must be between 1 and 72. Default is 24allrev: Include multiple revisions of the same page within given timeframewlowner: 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 preferenceswlexcludeuser: Do not list changes made by this given userwltype: Only list certain types of changes (available from MW1.22wmf4)edit: Regular page editsexternal: External editsnew: Page creationslog: Log entries
wlshow: Only list revisions that meet these criteria. Conflicting options (such asminorand!minor) cannot be used together. Use names below separated by a pipeminor: Only list minor edits!minor: Don't list minor editsbot: Only list bot edits!bot: Don't list bot editsanon: Only list edits by anonymous users!anon: Only list edits by registered userspatrolled: Only list patrolled pages!patrolled: Don't list patrolled pages
linktodiffs: Link to change differences instead of article pageslinktosections: Link to changed sections instead of whole article pages – if possible
Examples
Get the current user's Special:Watchlist as a feed.
| Result |
|---|
<?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>
|