This task involves the work of making it possible for experienced volunteers to configure the initial reference check on-wiki, on a per project basis.
Requirements
Meta
- Each facet listed in the "Configurability" section below ought to be editable:
- On-wiki
- On a per-project basis
- In a single JSON file
- Located within the MediaWiki namespace
Configurability
Wikis, on a per-project basis, ought to be able to configure the following faces of the reference check experience:
ID | Configurable "facet" | Potential value(s) | Default value | Implementation | Notes | Status |
---|---|---|---|---|---|---|
1. | Account state: what account states Edit Check is available for | Logged in, Logged out, Logged in & out | Logged in & out | T330112 (this ticket) | 🟢 Implemented | |
2. | Experience level: what experience levels Edit Check is available for | greater or less than an integer | <100 edits | T330112 (this ticket) | Edit count here refers to the cumulative number of edits an account has made at the project they are editing | 🟢 Implemented |
3. | Sections: what sections the reference check is not available within | The names/titles of sections Edit Check should not be activated within | Empty | T346949 | E.g. en.wiki's LEADCITE policy suggests citations should not be included in the lead section of an article. | Not yet implemented |
4 | Categories: what categories an Edit Check is not available within | The names/links of categories a page would need to exist within for Edit Check not to be activated | Empty | T347775 | Not yet implemented | |
5. | Citation placement: define where a citation is automatically placed: before or after a period (.) | Before period or after period | After period | T344962 | 🟢 Implemented | |
6 | Character count: define the number of net new characters that need to be added for Edit Check to be activated | Integer | 50 | T330112 (this ticket) | 🟢 Implemented | |
Help Documentation
https://www.mediawiki.org/wiki/Edit_check/Configuration
Testing instructions
- Visit: https://en.wikipedia.beta.wmflabs.org/wiki/MediaWiki:Editcheck-config.json
- Verify configurable facets "1.", "2.", "5." and "6." are shown
- Adjust each of the values named in "2."
- Verify those adjustments have the impact you intended.
See: https://www.mediawiki.org/wiki/Edit_check/Configuration for additional documentation.
Done
- All "Decisions to be made" are addressed and documented
- Requirements are implemented
- Members of the Growth Team review technical implementation to ensure it the approach we're taking to start will not preclude our ability to migrate to Community Configuration 2.0 (T323811) in the future.
References
Currently wikis, use a variety of "languages"/"formats" for on-wiki scripting/coding:
- Lua
- Javascript
- Regex
- Template scripting
Decision(s) to be made
- 1. What language/format will the heuristics Edit Check will depend on be implemented on-wiki so that experienced volunteers are able to audit and iterate upon these heuristics?
- To start, volunteers will be able to configure Edit Check on-wiki similarly to how they currently configure other features on-wiki by editing JSON files within the MediaWiki namespace. E.g. https://en.wikipedia.org/wiki/MediaWiki:Citoid-template-type-map.json.
At the outset, all configurable facets of Edit Check will live within a single JSON "object."
As new checks are introduced, we anticipate expanding this "single file" to accommodate the new checks that are introduced.
See T330112#9094862 for more context.
- 2. How will on-wiki configuration be implemented in ways such that it decreases the likelihood that people use it as a vector for exclusion? E.g. Here we're imagining a scenario where the people who are most actively configuring Edit Check are people who are motivated to minimize their workload.
- To start, we're going to depend on wikis' existing social and technical conventions to hold people accountable to configuring Edit Check in ways that align with Wikipedia's objectives and Movement's mission and values.
This task was inspired by @Mathglot who raised this question in T327330#8607428