API:Watchlist feed
From MediaWiki.org
| Language: | English • 日本語 |
|---|
| 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
| feedwatchlist | ||
|---|---|---|
| Returns a watchlist feed. This module cannot be used as a Generator. |
||
| Prefix | none | |
| Required rights | none | |
| Post only? | No | |
| Generated help | Current | |
| Version added |
|
Returns a watchlist feed.
Parameters[edit]
feedformat: The format of the feed. Possible values: rss or atom. (Default:rss)hours: List pages modified within this many hours from now. Possible values: an integer between 1 and 72. (Default: 24) 1.11+linktosections: Link to changed sections instead of whole article pages – if possibleallrev: Include multiple revisions of the same page within given timeframe. 1.12+wlowner: Used along with token to access a different user's watchlist. 1.16+wltoken: Security token that requested user set in their preferences. 1.16+wlexcludeuser: Do not list changes made by this given user. 1.19+wltype: Only list certain types of changes. (Default:edit|new|log|categorize) 1.22+edit: Regular page edits.external: External edits.new: Page creations.log: Log entries.categorize: Changes in categorization arising from conditional parser functions. 1.27+
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 edits.bot: Only list bot edits.!bot: Don't list bot edits.anon: Only list edits by anonymous users.!anon: Only list edits by registered users.patrolled: Only list patrolled pages.!patrolled: Don't list patrolled pages.unread: Only list unread pages. 1.25+!unread: Don't list unread pages. 1.25+
linktodiffs: Link to change differences instead of article pages. From version 1.24 forward, difference links will always be emitted if available. 1.17+ (removed in 1.24)
Examples[edit]
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>
|
| The following documentation is the output of Special:ApiHelp/feedwatchlist, generated from feedwatchlist's source code. |
action=feedwatchlist
(main | feedwatchlist)
- This module requires read rights.
- Source: MediaWiki
- License: GPL-2.0+
Returns a watchlist feed.
Parameters:
- feedformat
-
The format of the feed.
- One of the following values: rss, atom
- Default: rss
- hours
-
List pages modified within this many hours from now.
- The value must be between 1 and 72.
- Type: integer
- Default: 24
- linktosections
-
Link directly to changed sections if possible.
- Type: boolean (details)
- allrev
-
Include multiple revisions of the same page within given timeframe.
- Type: boolean (details)
- wlowner
-
Used along with token to access a different user's watchlist.
- Type: user name
- wltoken
-
A security token (available in the user's preferences) to allow access to another user's watchlist.
- wlshow
-
Show only items that meet these criteria. For example, to see only minor edits done by logged-in users, set show=minor|!anon.
- Values (separate with |): minor, !minor, bot, !bot, anon, !anon, patrolled, !patrolled, unread, !unread
- wltype
-
Which types of changes to show:
- edit
- Regular page edits.
- new
- Page creations.
- log
- Log entries.
- external
- External changes.
- categorize
- Category membership changes.
- Values (separate with |): edit, new, log, external, categorize
- Default: edit|new|log|categorize
- wlexcludeuser
-
Don't list changes by this user.
- Type: user name
Examples:
- Show the watchlist feed.
- api.php?action=feedwatchlist [open in sandbox]
- Show all changes to watched pages in the past 6 hours.
- api.php?action=feedwatchlist&allrev=&hours=6 [open in sandbox]

