Manual:RCFeed
This is the schema for the machine-readable Recent Changes feed. It's related to MediaWiki's internal RecentChanges object, with additional information about the wiki in which the change was made.
プロパティ
MediaWiki バージョン: | ≧ 1.25 |
Common event
id |
文字列 | ID of the recent change event (rc_id). |
type |
文字列 | Type of recent change event (rc_type). Core types will be translated into strings (edit , new , log , categorize , external ); other types will be shown as raw numbers.
|
namespace |
数値 | ID of relevant namespace of affected page (rc_namespace, page_namespace). This is -1 ("Special") for log events.
|
title |
文字列 | Full page name, from Title::getPrefixedText .
|
comment |
文字列 | rc_comment |
timestamp |
数値 | Unix timestamp (derived from rc_timestamp). |
user |
文字列 | rc_user_text |
bot |
真偽値 | rc_bot |
Common server
server_url |
文字列 | $wgCanonicalServer
|
server_name |
文字列 | $wgServerName
|
server_script_path |
文字列 | $wgScriptPath
|
wiki |
文字列 | wfWikiID ($wgDBprefix , $wgDBname )
|
編集
For type=edit and type=new. Other types of events do not have these properties.
minor
boolean (rc_minor).patrolled
boolean (rc_patrolled). This property only exists if patrolling is supported for this event (based on$wgUseRCPatrol
,$wgUseNPPatrol
).length
objectlength.old
null | number (rc_old_len)length.new
number (rc_new_len)
revision
objectrevision.old
null | number (rc_last_oldid)revision.new
number (rc_this_oldid)
Log events
For type=log
log_id |
rc_log_id | |
log_type |
rc_log_type | |
log_action |
rc_log_action | |
log_params |
混合 | Property only exist if event has rc_params. |
log_action_comment |
例
{ "comment": "[[:File:Bulletins of American paleontology (1964) (20315870759).jpg]] removed from category", "wiki": "commonswiki", "server_name": "commons.wikimedia.org", "title": "Category:Bulletins of American paleontology", "timestamp": 1456759695, "server_script_path": "/w", "namespace": 14, "server_url": "https://commons.wikimedia.org", "user": "Wieralee", "bot": false, "type": "categorize", "id": 201307606 } { "comment": "sorting image request", "wiki": "enwiki", "server_name": "en.wikipedia.org", "title": "Talk:Kalette", "timestamp": 1425392294, "server_script_path": "/w", "namespace": 1, "server_url": "http://en.wikipedia.org", "length": { "new": 219, "old": 186 }, "user": "Mr. Granger", "bot": false, "type": "edit", "id": 718374724, "minor": false, "revision": { "new": 649690049, "old": 649645633 } }
{ "comment": "Bot: Removing redundant category ([[Template:Uploaded with GWToolset|Uploaded with GWToolset]])", "wiki": "commonswiki", "server_name": "commons.wikimedia.org", "title": "File:Interior of wheelhouse looking aft; pipes on aft wall were for heating. - Ferry TICONDEROGA, Route 7, Shelburne, Chittenden County, VT HAER VT,4-SHEL,1-66.tif", "timestamp": 1425392723, "server_script_path": "/w", "namespace": 6, "server_url": "http://commons.wikimedia.org", "length": { "new": 7278, "old": 7314 }, "user": "SteinsplitterBot", "bot": true, "patrolled": true, "type": "edit", "id": 156219030, "minor": true, "revision": { "new": 151956073, "old": 130736146 } }
{ "comment": "Új oldal, tartalma: „{{letm}} #[[író]]”", "wiki": "huwiktionary", "server_name": "hu.wiktionary.org", "title": "rakstnieks", "timestamp": 1425393635, "server_script_path": "/w", "namespace": 0, "server_url": "http://hu.wiktionary.org", "length": { "new": 19, "old": null }, "user": "Karesz52", "bot": false, "patrolled": false, "type": "new", "id": 1790735, "minor": false, "revision": { "new": 1782943, "old": null } }
関連項目
- wikitech:EventStreams - Exposes streams of events from Wikimedia Foundation wikis, including Recent changes events in the format described here.
$wgRCFeeds
- MachineReadableRCFeedFormatter - Source code of RCFeed data formatter
- API:Recentchanges