Following the recommendations in T370879: Investigation: How to best support custom footnote marker groups in VE, Parsoid, and read mode? (TBD: still to be discussed), we should build a community configuration (feature home, extension, docker-dev module, local example) page. Our first use case will be a selector for the backlink labels, because the default is generally undesirable, and conflicts badly with subreferencing.
- Can we use Codex for the Special page UI? Yes.
- Rough design for admin page.
- Discuss concept.
- Fixed list of supported symbols. This can be incomplete for now and improved iteratively in follow-up work.
- Show preview of backlinks (dynamically generated in JS, not using parser). List of alphabets comes from PHP, probably through setJSConfigVars.
- Has no effect until the config page is saved.
- Behind a boolean feature flag $wgCiteCommunityConfiguration, default is disabled, hidden and inaccessible.
Out of scope:
- Save and load community configuration
- Override legacy backlink customizations for real (with fallbacks)
- CLDR alphabets
- Search mechanics, eg. type locale or name or language
Implementation
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Cite/+/1081640
Patchemo: https://6067b5f1bb.catalyst.wmcloud.org/wiki/Special:CiteConfiguration
How to run poc locally:
- start docker with Cite and CommunityConfiguration
- set feature flag $wgCiteCommunityConfiguration to true
- go to http://dev.wiki.local.wmftest.net:8080/wiki/Special:CiteConfiguration (no login required)