API:SetNotificationTimestamp

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

Quick overview:

v · d · e
MediaWiki version: 1.14

This module is used to mark revisions of watched pages as visited. This affects the highlighting of changed pages in the watchlist and history, and the sending of email when the "Email me when a page on my watchlist is changed" preference is enabled.

This module requires POST requests; GET requests will not work.

Token[edit | edit source]

Users of this module must be correctly logged in, as a valid edit token is required. For example:

Obtaining an edit token

Parameters[edit | edit source]

  • entirewatchlist: Work on all watched pages.
  • token: Edit token retrieved in previous step (required).
  • timestamp: Timestamp to which to set the notification timestamp.
  • torevid: Revision to set the notification timestamp to (one page only).
  • newerthanrevid: Revision to set the notification timestamp newer than (one page only).
  • titles: A list of titles to work on. Standard rules and limits apply. (See API:Query#Specifying pages.)
  • pageids: A list of page IDs to work on. Standard rules and limits apply.
  • revids: A list of revision IDs to work on. Standard rules and limits apply.
  • redirects: Automatically resolve redirects.
  • converttitles: Convert titles to other variants if necessary. Only works if the wiki's content language supports variant conversion. Languages that support variant conversion include gan, iu, kk, ku, shi, sr, tg, uz, zh.
  • generator: Get the list of pages to work on using a generator. (See API:Query#Generators.)

Examples[edit | edit source]

Marking entire watchlist as visited

Marking all edits to "Wikipedia talk:Sandbox" since 1 January 2012 as unviewed