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=templatedata

(main | templatedata)
  • มอดูลนี้ต้องการสิทธิในการอ่าน
  • แหล่งที่มา: TemplateData
  • สัญญาอนุญาต: GPL-2.0-or-later

Fetch data stored by the TemplateData extension.

Specific parameters:
Other general parameters are available.
includeMissingTitles

Return data about titles even if they are missing or lack TemplateData. By default titles are only returned if they exist and have TemplateData.

Type: boolean (details)
doNotIgnoreMissingTitles
เลิกใช้แล้ว

Return data about titles even if they are missing or lack TemplateData. By default (for backwards compatibility) titles are only returned if they exist and have TemplateData.

Type: boolean (details)
lang

คืนค่าที่เป็นท้องถิ่นในภาษานี้ การแปลที่ใช้ได้ทั้งหมดจะถูกคืนค่าโดยปริยาย

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)
ตัวอย่าง:
คืนค่าข้อมูลให้กับ Template:Stub และ Template:Example
api.php?action=templatedata&titles=Template:Foobar&includeMissingTitles=1 [เปิดในกระบะทราย]
Return TemplateData for Template:Phabricator, with no results if the template does not exist or exists but has no TemplateData
api.php?action=templatedata&titles=Template:Phabricator [เปิดในกระบะทราย]