Jump to content

Schema:ExternalLinksChange

PHP logging

EventLogging::logEvent( 'ExternalLinksChange', 15716074, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"ExternalLinksChange": 15716074
			}
		}
	}
}

JavaScript logging

mw.track( 'event.ExternalLinksChange', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 15716074
description"Logs a change to the external links of a page. If multiple links are changed, multiple events should be fired for the same revision ID."
properties
revId
type"integer"
description"The id of the revision that made the change"
pageId
type"integer"
description"The id of the page being edited"
requiredtrue
pageNamespace
type"integer"
description"The namespace ID of the page at the time of the change"
requiredtrue
userId
type"integer"
description"If registered, the ID of the user making the change. Else 0."
requiredtrue
userText
type"string"
description"The user name or IP address of the user making the change at the time of the change."
requiredtrue
action
type"string"
requiredtrue
enum
"insert"
"remove"
description"If the link is being inserted, then 'insert'. If the link is being removed, then 'remove'. If a link is changed, both an 'insert' and 'remove' should be logged."
protocol
type"string"
description"The protocol of the URL -- if specified"
requiredfalse
domain
type"string"
description"The full domain name of the URL"
requiredtrue
path
type"string"
description"The path of the URL -- if specified"
requiredtrue
query
type"string"
description"The query string of the URL -- if specified"
requiredfalse
fragment
type"string"
description"The fragment of the URL -- if specified"
requiredfalse