Feature summary:
Enable users writing a textMatch check to limit it to only headings.
Use case(s):
E.g. Russian Wikipedia editors would like to be able to create a Suggestion that detects "== Жизнь ==" ("Life") and suggests replacing it with "== Биография ==" ("Biography") to match their local standard.
Benefits:
There are likely to be many other similar textMatch Suggestions that various communities will want to create.
Development notes:
In discussion, devs suggest:
“type of node” is a thing we might want to generically implement, and then let textMatch rules inherit. [Similar to the existing] “only in a paragraph” hardcoded for some checks.
but they also note:
This would be a bit confusing to the people writing the configuration, though, since we'd need them to understand the difference between a node and an annotation
Requirements
Per offline discussion, we will enable the functionality described above by introducing a new capability that would enable any Check or Suggestion to be scoped to a particular node within the VE document model.
Open question(s)
- 1. What will the new configuration capability "Requirements" above specifies?
- Note: offline ContentIsOnly was proposed, I think.
Done
- Requirements are implemented
- Update mw:Edit_check/TextMatch#Configuration to include information about the functionality this ticket implements