MediaWiki API 說明

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

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

prop=deletedrevisions (drv)

main | query | deletedrevisions
  • 此模組需要讀取權限。
  • 此模組可作為產生器使用。
  • 來源:MediaWiki
  • 協定:GPL-2.0-or-later

取得已刪除修訂的資訊。

可在很多途径中使用:

  1. 获得一组页面的已删除修订,通过设置标题或页面ID。以标题和时间戳排序。
  2. 通过设置它们的ID与修订ID获得关于一组已删除修订。以修订ID排序。
參數:
drvprop

各修訂所要取得的屬性:

ids
修訂 ID。
flags
修訂標籤(小修改)。
timestamp
修訂的時間戳記。
user
做出修訂的使用者。
userid
修訂創建者的使用者 ID
size
修訂的長度(位元組)。
slotsize
每次修订间隔的长度(字节)。
sha1
修訂的 SHA-1(base 16)。
slotsha1
每次修订间隔的SHA-1(base 16)。
contentmodel
每次修订间隔的内容模型ID。
comment
由用户对修订做出的摘要。
parsedcomment
由用户对修订做出的被解析的摘要。
content
每次修订间隔的内容。
tags
修訂標籤。
roles
List content slot roles that exist in the revision.
parsetree
已停用。 请改用action=expandtemplatesaction=parse。修订内容的XML解析树(需要内容模型wikitext)。
多值 (以 |alternative 分隔):idsflagstimestampuseruseridsizeslotsizesha1slotsha1contentmodelcommentparsedcommentcontenttagsrolesparsetree
預設值:ids|timestamp|flags|comment|user
drvslots

Which revision slots to return data for, when slot-related properties are included in drvprops. If omitted, data from the main slot will be returned in a backwards-compatible format.

多值 (以 |alternative 分隔):main
要指定所有值,請使用*
drvlimit

限制所回傳的修訂數量。

不允許超過 500 (機器人為 5,000)。
類型:整數或max
drvexpandtemplates
已停用。

请改用action=expandtemplates。展开修订内容中的模板(需要drvprop=content)。

類型:布林值(詳細資訊
drvgeneratexml
已停用。

请改用action=expandtemplatesaction=parse。生成用于修订内容的XML解析树(需要drvprop=content;被drvprop=parsetree所取代)。

類型:布林值(詳細資訊
drvparse
已停用。

请改用action=parse。解析修订内容(需要drvprop=content)。由于性能原因,如果此选项被使用,drvlimit会被强制为1。

類型:布林值(詳細資訊
drvsection

只检索此段落数的内容。

drvdiffto
已停用。

请改用action=compare。要比较修订差异的修订ID。使用prevnextcur分别用于上个、下个和当前修订。

drvdifftotext
已停用。

请改用action=compare。要比较修订差异的文本。只有修订的有限数字内的差异。覆盖drvdiffto。如果drvsection被设置,只有那个段落将与此文本之间比较差异

drvdifftotextpst
已停用。

请改用action=compare。在编辑文本前对其执行预保存转换。只当与drvdifftotext一起使用时有效。

類型:布林值(詳細資訊
drvcontentformat
已停用。

序列化用于drvdifftotext的格式并预估内容输出。

單值:text/x-wikitext/javascriptapplication/jsontext/csstext/plain
drvstart

要开始枚举的时间戳。当处理修订ID列表时会被忽略。

類型:時間戳記(允許格式
drvend

要停止枚举的时间戳。当处理修订ID列表时会被忽略。

類型:時間戳記(允許格式
drvdir

列舉的方向:

newer
最舊的優先。注意:drvstart應在drvend之前。
older
最新的優先(預設)。注意:drvstart應在drvend之後。
單值:newerolder
預設值:older
drvtag

僅列出以此標籤所標記的修訂。

drvuser

此列出由該使用者作出的修訂。

類型:使用者名稱
drvexcludeuser

不要列出由該使用者作出的修訂。

類型:使用者名稱
drvcontinue

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