Jump to content

Schema:PageDeletion

PHP logging

EventLogging::logEvent( 'PageDeletion', 7481655, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"PageDeletion": 7481655
			}
		}
	}
}

JavaScript logging

mw.track( 'event.PageDeletion', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 7481655
description"Logs a page deletion event"
properties
userId
type"integer"
description"User ID of the user deleting the page (zero for anons)."
requiredtrue
userText
type"string"
description"Username or IP address of the user deleting the page."
requiredtrue
pageId
type"integer"
description"The ID of the deleted page."
requiredtrue
namespace
type"integer"
description"The namespace of the deleted page"
requiredtrue
title
type"string"
description"The title of the deleted page, in DB form with no namespace prefix"
requiredtrue
comment
type"string"
description"The comment provided by the deleting user."
requiredtrue