Page MenuHomePhabricator

Implement warning-template-tags-regex option
Open, NormalPublic

Description

Right now we are checking tags in warning templates on talk pages using simple string matching, which leads to huge amount of strings as there is lot of templates on English wikipedia.

It would make it all so much easier if we could just use regex to match them.

Example:

- '2;<!-- Template:uw-vandalism2 -->'
- '2;<!-- Template:uw-huggleafd2 -->'
- '2;<!-- Template:uw-spam2 -->'
- '2;<!-- Template:uw-advert2 -->'
- '2;<!-- Template:uw-error2 -->'
- '2;<!-- Template:uw-biog2 -->'
- '2;<!-- Template:uw-npov2 -->'
- '2;<!-- Template:uw-disruptive2 -->'
- '2;<!-- Template:uw-test2 -->'
- '2;<!-- Template:uw-nor2 -->'
- '2;<!-- Template:uw-npa2 -->'
- '2;<!-- Template:uw-delete2 -->'
- '2;<!-- Template:uw-unsourced2 -->'
- '2;<!-- Template:uw-attempt2 -->'
- '2;<!-- Template:uw-speedy2 -->'

Could be all matched with a simple "Template:uw-[a-z]*2" regex.

Event Timeline

Petrb created this task.Oct 14 2017, 8:33 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 14 2017, 8:33 PM
Petrb triaged this task as Normal priority.Oct 14 2017, 8:33 PM

Perhaps this task can be added for Google-Code-in-2017 ?

Petrb moved this task from Backlog to Code / Features on the Huggle board.Oct 10 2018, 6:19 PM