Jump to content

Schema:TemplateDataEditor

PHP logging

EventLogging::logEvent( 'TemplateDataEditor', 21143805, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"TemplateDataEditor": 21143805
			}
		}
	}
}

JavaScript logging

mw.track( 'event.TemplateDataEditor', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 21143805
description"Interactions with the TemplateData editor."
properties
action
type"string"
description"The action that the user took that triggered the log event. * dialog-open-create - Open the dialog to create a new TemplateData record where none existed. This is sent each time the dialog is opened. * dialog-open-edit - Open the dialog to edit an existing TemplateData. Sent every time the dialog is opened. If the templatedata was created earlier in the same editing pageview, we still send "dialog-open-edit" on subsequent dialog opening. * parameter-default-change - Edit a parameter's "Default" field. * parameter-description-change - Edit a parameter's "Description" field. Sent once per parameter per dialog session. * parameter-example-change - Edit a parameter's "Example" field. Sent once per parameter per dialog session. * parameter-label-change - Edit a parameter's "Label" field. Sent once per parameter per dialog session. * parameter-priority-change - Change a parameter's priority away from the default "Optional". Sent once per parameter per dialog session. * parameter-reorder - Drag parameters to change their order. Sent once per dialog session. * parameter-type-change - A parameter's "Type" field was changed away from the default "Unknown". Sent once per parameter per dialog session. * save-page-create - User attempts to save the page, and we are creating a new TemplateData record. * save-page-edit - User attempts to save changes to an existing TemplateData record. * save-tag-edit-generator-used - The page was saved and a meaningfull edit made to the <templatedata> tag. The wizard was used at least once, and most like used to make a change. * save-tag-edit-no-generator - As above, but the wizard was never used. * template-description-change - Edit the template's Description field. Sent once per dialog session."
requiredtrue
enum
"dialog-open-create"
"dialog-open-edit"
"parameter-default-change"
"parameter-description-change"
"parameter-example-change"
"parameter-label-change"
"parameter-priority-change"
"parameter-reorder"
"parameter-type-change"
"save-page-create"
"save-page-edit"
"save-tag-edit-generator-used"
"save-tag-edit-no-generator"
"template-description-change"
page_id
type"integer"
description"The title (without namespace) of the page on which the action occurred (may not exist)."
requiredtrue
page_namespace
type"integer"
description"The ID of the page's namespace."
requiredtrue
page_title
type"string"
description"The title (without namespace) of the page on which the action occurred (may not exist)."
requiredtrue
rev_id
type"integer"
description"The page's current revision ID, for pages that already exist when TemplateWizard is used. 0 if the target page doesn't exist yet."
requiredtrue
user_edit_count
type"integer"
requiredtrue
description"Total number of edits made by this user, or 0 if logged out."
user_id
type"integer"
requiredtrue
description"The user id, or 0 if logged out."
user_edit_count_bucket
type"string"
requiredfalse
description"Reduced granularity edit count, safe to keep in the sanitized stream. This is optional, and will not be present for anonymous users."
enum
"0 edits"
"1-4 edits"
"5-99 edits"
"100-999 edits"
"1000+ edits"