MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=setnotificationtimestamp

(main | setnotificationtimestamp)
  • Denna modul kräver läsrättigheter.
  • Denna modul kräver skrivrättigheter.
  • Denna modul accepterar endast POST-begäranden.
  • Source: MediaWiki
  • License: GPL-2.0+

Update the notification timestamp for watched pages.

This affects the highlighting of changed pages in the watchlist and history, and the sending of email when the "Skicka e-post till mig när en sida eller fil på min bevakningslista ändras" preference is enabled.

Parametrar:
entirewatchlist

Work on all watched pages.

Type: boolean (details)
timestamp

Timestamp to which to set the notification timestamp.

Type: timestamp (allowed formats)
torevid

Revision to set the notification timestamp to (one page only).

Type: integer
newerthanrevid

Revision to set the notification timestamp newer than (one page only).

Type: integer
continue

When more results are available, use this to continue.

titles

A list of titles to work on.

Separera värden med | eller alternativ. Maximum number of values is 50 (500 for bots).
pageids

A list of page IDs to work on.

Type: list of integers
Separera värden med | eller alternativ. Maximum number of values is 50 (500 for bots).
revids

A list of revision IDs to work on.

Type: list of integers
Separera värden med | eller alternativ. Maximum number of values is 50 (500 for bots).
generator

Get the list of pages to work on by executing the specified query module.

Note: Generator parameter names must be prefixed with a "g", see examples.

allcategories
Enumerate all categories.
allfileusages
Lista all fil användningsområden, inklusive icke-existerande.
allimages
Enumerate all images sequentially.
alllinks
Enumerate all links that point to a given namespace.
allpages
Enumerate all pages sequentially in a given namespace.
allredirects
Lista alla omdirigeringar till en namnrymd.
allrevisions
Lista alla sidversioner.
alltransclusions
Lista alla mallinkluderingar (sidor inbäddade med {{x}}), inklusive icke-befintliga.
backlinks
Hitta alla sidor som länkar till den givna sidan.
categories
Lista alla kategorier sidorna tillhör.
categorymembers
Lista alla sidor i en angiven kategori.
duplicatefiles
Lista alla filer som är dubbletter av angivna filer baserat på hashvärden.
embeddedin
Hitta alla sidor som bäddar in (inkluderar) angiven titel.
exturlusage
Enumerate pages that contain a given URL.
fileusage
Hitta alla sidor som använder angivna filer.
images
Returns all files contained on the given pages.
imageusage
Hitta alla sidor som användare angiven bildtitel.
iwbacklinks
Find all pages that link to the given interwiki link.
langbacklinks
Find all pages that link to the given language link.
links
Returnerar alla länkar från angivna sidor.
linkshere
Hitta alla sidor som länkar till angivna sidor.
messagecollection
Query MessageCollection about translations.
pageswithprop
Lista alla sidor som använder en angiven sidegenskap.
prefixsearch
Perform a prefix search for page titles.
protectedtitles
List all titles protected from creation.
random
Hämta en uppsättning slumpsidor.
redirects
Returnerar alla omdirigeringar till angivna sidor.
revisions
Hämta information om sidversion.
search
Utför en heltextsökning.
templates
Returnerar alla sidinkluderingar på angivna sidor.
transcludedin
Hitta alla sidor som inkluderar angivna sidor.
watchlist
Hämta de senaste ändringarna på sidor i den nuvarande användarens bevakningslista.
watchlistraw
Hämta alla sidor på den aktuella användarens bevakningslista.
Ett av följande värden: allcategories, allfileusages, allimages, alllinks, allpages, allredirects, allrevisions, alltransclusions, backlinks, categories, categorymembers, duplicatefiles, embeddedin, exturlusage, fileusage, images, imageusage, iwbacklinks, langbacklinks, links, linkshere, messagecollection, pageswithprop, prefixsearch, protectedtitles, random, redirects, revisions, search, templates, transcludedin, watchlist, watchlistraw
redirects

Automatically resolve redirects in titles, pageids, and revids, and in pages returned by generator.

Type: boolean (details)
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 en, gan, iu, kk, ku, shi, sr, tg, uz och zh.

Type: boolean (details)
nocache
(no description)
Type: boolean (details)
prop_append
(no description)
Type: boolean (details)
token

A "csrf" token retrieved from action=query&meta=tokens

Denna parameter är obligatorisk.
Examples:
Återställ meddelandestatus för hela bevakningslistan.
api.php?action=setnotificationtimestamp&entirewatchlist=&token=123ABC [open in sandbox]
Reset the notification status for Main page.
api.php?action=setnotificationtimestamp&titles=Main_page&token=123ABC [open in sandbox]
Set the notification timestamp for Main page so all edits since 1 January 2012 are unviewed.
api.php?action=setnotificationtimestamp&titles=Main_page&timestamp=2012-01-01T00:00:00Z&token=123ABC [open in sandbox]
Reset the notification status for pages in the Användare namespace.
api.php?action=setnotificationtimestamp&generator=allpages&gapnamespace=2&token=123ABC [open in sandbox]