API:Edit - Watch
From MediaWiki.org
| This page is part of the MediaWiki API documentation. |
| Language: |
English |
MediaWiki version: 1.14
Contents |
[edit] Watching and unwatching pages
Pages can be watched (added to your watchlist) and unwatched (removed from your watchlist) with action=watch. Of course, you can only add and remove pages to/from your own watchlist.
[edit] Parameters
title: Page to (un)watchunwatch: If set, unwatch the page. If not set, watch the page.
[edit] Examples
Watching Main Page
<?xml version="1.0" encoding="utf-8"?> <api> <watch title="Main Page" watched="" /> </api>
Unwatching Dog
<?xml version="1.0" encoding="utf-8"?> <api> <watch title="Dog" unwatched="" /> </api>
[edit] Possible errors
Only the usual stuff.