MediaWiki API 說明
此頁為自動產生的 MediaWiki API 說明文件頁面。
說明文件與範例:https://www.mediawiki.org/wiki/API
prop=info (in)
- 此模組需要讀取權限。
- 來源:MediaWiki
- 協定:GPL-2.0-or-later
取得基本頁面訊息。
參數:
- inprop
要取得的額外屬性:
- protection
- 列出各頁面的保護層級。
- talkid
- 各非對話頁的對話頁頁面 ID。
- watched
- 列出各頁面的監視狀態。
- watchers
- 監視者的數目,如有允許的話。
- visitingwatchers
- 有訪問頁面近期編輯數的各頁面監視者數目,如有允許的話。
- notificationtimestamp
- 各頁面的監視清單通知時間戳記。
- subjectid
- 各對話頁的父頁面頁面 ID。
- url
- 为每个页面提供一个完整URL、一个编辑URL和规范URL。
- readable
- 已停用。 使用者是否可閱讀此頁面。
- preload
- 取得由 EditFormPreloadText 回傳的文字。
- displaytitle
- 在页面标题实际显示的地方提供方式。
- varianttitles
- 提供网站内容语言所有变体的显示标题。
- 多值 (以 | 或 alternative 分隔):protection、talkid、watched、watchers、visitingwatchers、notificationtimestamp、subjectid、url、readable、preload、displaytitle、varianttitles
- 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.
- 單值:boolean、full、quick
- 預設值:boolean
- intoken
- 已停用。
- 多值 (以 | 或 alternative 分隔):edit、delete、protect、move、block、unblock、email、import、watch
- incontinue
當有更多結果可用時,使用這個繼續。
範例:
- 取得有關頁面 Main Page 的資訊。
- api.php?action=query&prop=info&titles=Main%20Page [在沙盒中開啟]
- 取得有關 Main Page 的一般與保護資訊。
- api.php?action=query&prop=info&inprop=protection&titles=Main%20Page [在沙盒中開啟]