MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:-{R|https://www.mediawiki.org/wiki/API:Main_page/zh}-

list=recentchanges (rc)

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、570、571、600、601、274、275、828、829
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