API:Edit - Watch

From MediaWiki.org

Jump to: navigation, search
Tools clipart.png This page is part of the MediaWiki API documentation.
MediaWiki API
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)watch
  • unwatch: 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.