Jump to content

Manual:RCFeed/de

From mediawiki.org
This page is a translated version of the page Manual:RCFeed and the translation is 27% complete.

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.

Properties

MediaWiki Version:
1.25

Common event

id Zeichenkette ID of the recent change event (rc_id).
type Zeichenkette 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 number ID of relevant namespace of affected page (rc_namespace, page_namespace). This is -1 ("Special") for log events.
title Zeichenkette Full page name, from Title::getPrefixedText.
comment Zeichenkette rc_comment
timestamp number Unix timestamp (derived from rc_timestamp).
user Zeichenkette rc_user_text
bot Wahrheitswert rc_bot

Common server

server_url Zeichenkette $wgCanonicalServer
server_name Zeichenkette $wgServerName
server_script_path Zeichenkette $wgScriptPath
wiki Zeichenkette wfWikiID ($wgDBprefix , $wgDBname )

Edits

For type=edit and type=new. Other types of events do not have these properties.

Log events

For type=log

log_id rc_log_id
log_type rc_log_type
log_action rc_log_action
log_params mixed Property only exist if event has rc_params.
log_action_comment

Beispiel

{
	"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
	}
}

Siehe auch