Page MenuHomePhabricator

Make a suggestion to highlight maintenance templates
Open, Needs TriagePublic

Description

Maintenance templates are calls to action on pages. If they're present, they should cause a suggestion to be displayed that draws user attention to these templates.

This is similar to TextMatchEditCheck, where the wiki will need to configure a list of templates with specific messages to be shown.

Event Timeline

Change #1281476 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] BaseEditCheck: allow providing a node constructor to getAddedNodes

https://gerrit.wikimedia.org/r/1281476

Change #1281477 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] New edit check: MaintenanceTemplate

https://gerrit.wikimedia.org/r/1281477

Configuration:

"maintenanceTemplate": {
	"templates": {
		"DoMaintenance": {
			"message": "Maybe you should do some maintenance here?",
			"title": "Do maintenance"
		}
	}
}

Resulting in:

image.png (1,472×500 px, 156 KB)

Change #1281476 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] BaseEditCheck: allow providing a node constructor to getAddedNodes

https://gerrit.wikimedia.org/r/1281476