API:Watch

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

Quick overview:

v · d · e
MediaWiki version: = 1.18

Token[edit | edit source]

To (un)watch a page, a token is required. This token is different to the edit token, is the same for all pages, but changes at every login. A(n) (un)watch token can be obtained like this: Obtaining a watch token

Watching and unwatching pages[edit | edit source]

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.

Parameters[edit | edit source]

  • title: Page to (un)watch
  • unwatch: If set, unwatch the page. If not set, watch the page.
  • token: Your (un)watch token.

Examples[edit | edit source]

Watching Main Page

Unwatching Dog

Possible errors[edit | edit source]

Only the usual stuff.