MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:https://www.mediawiki.org/wiki/API:Main_page/zh

prop=info (in)

main | query | info

获取基本页面信息。

参数:
inprop

要获取的额外属性:

protection
列出每个页面的保护等级。
talkid
每个非讨论页面的讨论页的页面ID。
watched
列出每个页面的被监视状态。
watchers
监视人员数,如果允许。
visitingwatchers
访问了每个页面的最近编辑的监视者数量,如果允许。
notificationtimestamp
每个页面的监视列表通知时间戳。
subjectid
每个讨论页的母页面的页面ID。
url
为每个页面提供一个完整URL、一个编辑URL和规范URL。
readable
已弃用。用户是否可以阅读此页面。
preload
提供由EditFormPreloadText返回的文本。
displaytitle
在页面标题实际显示的地方提供方式。
varianttitles
提供网站内容语言所有变体的显示标题。
值(以|替代物分隔):displaytitle、notificationtimestamp、preload、protection、subjectid、talkid、url、varianttitles、visitingwatchers、watched、watchers、readable
intestactions

测试当前用户是否可以在页面上执行某种操作。

通过|替代物隔开各值。
Maximum number of values is 50 (500 for clients allowed higher limits).
intestactionsdetail

Detail level for intestactions. Use the main module's errorformat and errorlang parameters to control the format of the messages returned.

boolean
Return a boolean value for each action.
full
Return messages describing why the action is disallowed, or an empty array if it is allowed.
quick
Like full but skipping expensive checks.
以下值中的一个:boolean、full、quick
Default: boolean
intoken
已弃用。

请改用action=query&meta=tokens

值(以|替代物分隔):block、delete、edit、email、import、move、protect、unblock、watch
incontinue

当更多结果可用时,使用这个继续。

list=categorymembers (cm)

  • 此模块需要读取权限。
  • 此模块可作为发生器使用。
  • 来源:MediaWiki
  • 许可协议:GPL-2.0-or-later

在指定的分类中列出所有页面。

参数:
cmtitle

要列举的分类(必需)。必须包括分类:前缀。不能与cmpageid一起使用。

cmpageid

要枚举的分类的页面 ID。不能与cmtitle一起使用。

Type: integer
cmprop

要包含的信息束:

ids
添加页面ID。
title
添加页面标题和名字空间ID。
sortkey
添加用于分类中排序的关键字(十六进制字符串)。
sortkeyprefix
添加用于分类中排序的关键字前缀(关键字的人类可读部分)。
type
添加页面被分类的类型(pagesubcatfile)。
timestamp
添加页面被包括时的时间戳。
值(以|替代物分隔):ids、sortkey、sortkeyprefix、timestamp、title、type
Default: ids|title
cmnamespace

仅包含这些名字空间的页面。注意可使用cmtype=subcatcmtype=file替代cmnamespace=146

值(以|替代物分隔):0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、828、829、2300、2301、2302、2303
要指定所有值,请使用*
cmtype

包含的分类成员类型。当cmsort=timestamp被设置时会忽略。

值(以|替代物分隔):file、page、subcat
Default: page|subcat|file
cmcontinue

当更多结果可用时,使用这个继续。

cmlimit

返回页面的最大数量。

类型:整数或max
The value must be between 1 and 500.
Default: 10
cmsort

要作为排序方式的属性。

以下值中的一个:sortkey、timestamp
Default: sortkey
cmdir

排序的方向。

以下值中的一个:asc、ascending、desc、descending、newer、older
Default: ascending
cmstart

开始列举的时间戳。只能与cmsort=timestamp一起使用。

类型:时间戳(允许格式
cmend

列举的结尾时间戳。只能与cmsort=timestamp一起使用。

类型:时间戳(允许格式
cmstarthexsortkey

开始列举的关键词,由cmprop=sortkey返回。不能与cmsort=sortkey一起使用。

cmendhexsortkey

结束列举的关键字,由cmprop=sortkey返回。只能与cmsort=sortkey一起使用。

cmstartsortkeyprefix

要开始列举的排序关键词前缀。只能与cmsort=sortkey一起使用。覆盖cmstarthexsortkey

cmendsortkeyprefix

要结束列举before的关键字前缀(而不是at;如果此值出现,它将不被包括!)只能与cmsort=sortkey一起使用。覆盖cmendhexsortkey。

cmstartsortkey
已弃用。

请改用cmstarthexsortkey。

cmendsortkey
已弃用。

请改用cmendhexsortkey。