MediaWiki API 說明

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

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

list=recentchanges <pre>(rc) </pre>

(main | query | recentchanges)
  • 此模組需要讀取權限。
  • 此模块可作为发生器使用。
  • 来源:MediaWiki
  • 许可协议:GPL-2.0+

列舉出近期變動。

參數:
rcstart

枚举的起始时间戳。

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

枚举的结束时间戳。

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

列举的方向:

newer
最早的优先。注意:rcstart应早于rcend。
older
最新的优先(默认)。注意:rcstart应晚于rcend。
單值:newer、older
預設值:older
rcnamespace

过滤更改为仅限这些名字空间。

多值 (以 | 分隔):0、1、2、3、4、5、6、7、8、9、10、11、12、13、14、15、2300、2301、2302、2303
rcuser

只列出此用户的更改。

类型:用户名
rcexcludeuser

不要列出此用户的更改。

类型:用户名
rctag

只列出带此标签的更改。

rcprop

包含的额外信息束:

user
Adds the user responsible for the edit and tags if they are an IP.
userid
Adds the user ID responsible for the edit.
comment
Adds the comment for the edit.
parsedcomment
Adds the parsed comment for the edit.
flags
为编辑添加标记。
timestamp
添加编辑的时间戳。
title
添加编辑的页面标题。
ids
添加页面ID、最近更改ID和新旧修订的ID。
sizes
Adds the new and old page length in bytes.
redirect
Tags edit if page is a redirect.
patrolled
Tags patrollable edits as being patrolled or unpatrolled.
loginfo
Adds log information (log ID, log type, etc) to log entries.
tags
Lists tags for the entry.
sha1
Adds the content checksum for entries associated with a revision.
多值 (以 | 分隔):user、userid、comment、parsedcomment、flags、timestamp、title、ids、sizes、redirect、patrolled、loginfo、tags、sha1
預設值:title|timestamp|ids
rctoken
已停用。

请改用action=query&meta=tokens

多值 (以 | 分隔):patrol
rcshow

Show only items that meet these criteria. For example, to see only minor edits done by logged-in users, set rcshow=minor|!anon.

多值 (以 | 分隔):minor、!minor、bot、!bot、anon、!anon、redirect、!redirect、patrolled、!patrolled、unpatrolled
rclimit

要回傳變更總數。

不允許超過 500 (機器人為 5,000)。
类型:整数或max
預設值:10
rctype

显示的更改类型。

多值 (以 | 分隔):edit、external、new、log
預設值:edit|new|log
rctoponly

Only list changes which are the latest revision.

类型:布尔值(详细信息
rccontinue

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

範例:
近期變動清單
api.php?action=query&list=recentchanges
获取有关最近未巡查更改的页面信息。
api.php?action=query&generator=recentchanges&grcshow=!patrolled&prop=info