MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=watch

(main | watch)
  • มอดูลนี้ต้องการสิทธิในการอ่าน
  • มอดูลนี้ต้องการสิทธิในการเขียน
  • มอดูลนี้ยอมรับเฉพาะคำขอ POST เท่านั้น
  • แหล่งที่มา: MediaWiki
  • สัญญาอนุญาต: GPL-2.0-or-later

Add or remove pages from the current user's watchlist.

Specific parameters:
Other general parameters are available.
title
เลิกใช้แล้ว

The page to (un)watch. Use titles instead.

expiry

Expiry timestamp to be applied to all given pages. Omit this parameter entirely to leave any current expiries unchanged.

Type: expiry (details)
unwatch

If set the page will be unwatched rather than watched.

Type: boolean (details)
continue

เมื่อมีผลลัพธ์เพิ่มเติมพร้อมใช้งาน ใช้ตัวเลือกนี้เพื่อดำเนินการต่อ

titles

รายการชื่อหน้าที่จะทำงาน

คั่นค่าต่าง ๆ ด้วย | หรือข้อความทดแทน
Maximum number of values is 50 (500 for clients that are allowed higher limits).
pageids

รายการไอดีหน้าที่จะทำงาน

Type: list of integers
คั่นค่าต่าง ๆ ด้วย | หรือข้อความทดแทน
Maximum number of values is 50 (500 for clients that are allowed higher limits).
revids

A list of revision IDs to work on. Note that almost all query modules will convert revision IDs to the corresponding page ID and work on the latest revision instead. Only prop=revisions uses exact revisions for its response.

Type: list of integers
คั่นค่าต่าง ๆ ด้วย | หรือข้อความทดแทน
Maximum number of values is 50 (500 for clients that are allowed higher limits).
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
แจกแจงหมวดหมู่ทั้งหมด
alldeletedrevisions
แสดงรายการรุ่นแก้ไขที่ถูกลบทั้งหมดโดยผู้ใช้หรือในเนมสเปซ
allfileusages
List all file usages, including non-existing.
allimages
Enumerate all images sequentially.
alllinks
แจกแจงลิงก์ทั้งหมดที่ชี้ไปยังเนมสเปซที่ระบุ
allpages
Enumerate all pages sequentially in a given namespace.
allredirects
List all redirects to a namespace.
allrevisions
แสดงรายการรุ่นแก้ไขทั้งหมด
alltransclusions
แสดงรายการหน้าที่ถูกรวมทั้งหมด (หน้าที่ถูกฝังโดยใช้ {{x}}) รวมถึงที่ไม่มีอยู่
backlinks
ค้นหาหน้าทั้งหมดที่ลิงก์มาหน้าที่ระบุ
categories
แสดงรายการหมวดหมู่ทั้งหมดที่มีหน้าเหล่านั้นอยู่
categorymembers
แสดงรายการหน้าทั้งหมดในหมวดหมู่ที่ระบุ
deletedrevisions
Get deleted revision information.
duplicatefiles
List all files that are duplicates of the given files based on hash values.
embeddedin
Find all pages that embed (transclude) the given title.
exturlusage
Enumerate pages that contain a given URL.
fileusage
ค้นหาหน้าทั้งหมดที่ใช้ไฟล์ที่ระบุ
images
Returns all files contained on the given pages.
imageusage
Find all pages that use the given image title.
iwbacklinks
Find all pages that link to the given interwiki link.
langbacklinks
Find all pages that link to the given language link.
links
Returns all links from the given pages.
linkshere
ค้นหาหน้าทั้งหมดที่ลิงก์มาหน้าที่ระบุ
mostviewed
Lists the most viewed pages (based on last day's pageview count).
pageswithprop
List all pages using a given page property.
prefixsearch
Perform a prefix search for page titles.
protectedtitles
แสดงรายการชื่อหน้าทั้งหมดที่ถูกป้องกันไม่ให้สร้าง
querypage
Get a list provided by a QueryPage-based special page.
random
Get a set of random pages.
recentchanges
แจกแจงการปรับปรุงล่าสุด
redirects
Returns all redirects to the given pages.
revisions
Get revision information.
search
ทำการค้นหาข้อความเต็มรูปแบบ
templates
Returns all pages transcluded on the given pages.
transcludedin
Find all pages that transclude the given pages.
watchlist
Get recent changes to pages in the current user's watchlist.
watchlistraw
Get all pages on the current user's watchlist.
wblistentityusage
คืนรายการหน้าทั้งหมดที่เรียกใช้รหัสประจำรายการสนเทศตามที่ระบุ
readinglistentries
Internal. List the pages of a certain list.
ค่าใดค่าหนึ่งต่อไปนี้: allcategories, alldeletedrevisions, allfileusages, allimages, alllinks, allpages, allredirects, allrevisions, alltransclusions, backlinks, categories, categorymembers, deletedrevisions, duplicatefiles, embeddedin, exturlusage, fileusage, images, imageusage, iwbacklinks, langbacklinks, links, linkshere, mostviewed, pageswithprop, prefixsearch, protectedtitles, querypage, random, recentchanges, redirects, revisions, search, templates, transcludedin, watchlist, watchlistraw, wblistentityusage, readinglistentries
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 ban, en, crh, gan, iu, ku, sh, shi, sr, tg, tly, uz, wuu, zgh และ zh.

Type: boolean (details)
token

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

This parameter is required.