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
提供网站内容语言所有变体的显示标题。
值(以|替代物分隔):protectiontalkidwatchedwatchersvisitingwatchersnotificationtimestampsubjectidurlreadablepreloaddisplaytitlevarianttitles
intestactions

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

通过|替代物隔开各值。 值的最大数量是50(对于机器人则是500)。
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.
以下值中的一个:booleanfullquick
默认:boolean
intoken
已弃用。

请改用action=query&meta=tokens

值(以|替代物分隔):editdeleteprotectmoveblockunblockemailimportwatch
incontinue

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