MediaWiki API 說明

此頁為自動產生的 MediaWiki API 說明文件頁面。

說明文件與範例:https://www.mediawiki.org/wiki/API

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

測試目前使用者是否可執行頁面上的某項操作。

將幾個值以 |alternative 分隔。 上限值為 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

多值 (以 |alternative 分隔):editdeleteprotectmoveblockunblockemailimportwatch
incontinue

當有更多結果可用時,使用這個繼續。