Page MenuHomePhabricator

[POC] Initial community configuration page for Cite: reflist backlink label symbol selection
Closed, ResolvedPublic

Description

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:

Event Timeline

Follow up with Parsoid and legacy parser support for wiring these custom groups into rendering.

Change #1081640 had a related patch set uploaded (by Awight; author: Awight):

[mediawiki/extensions/Cite@master] [WIP] [POC] Community configuration page for Cite

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

awight renamed this task from Add a community configuration page for Cite custom group numbering labels to [POC] community configuration page for Cite custom group numbering labels.Oct 23 2024, 8:31 AM
awight assigned this task to MareikeHeuerWMDE.
awight moved this task from Sprint Backlog to Doing on the WMDE-TechWish-Sprint-2024-10-16 board.
awight renamed this task from [POC] community configuration page for Cite custom group numbering labels to [POC] Initial community configuration page for Cite: reflist backlink label symbol selection.Nov 1 2024, 8:23 AM
awight updated the task description. (Show Details)

Change #1087886 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[integration/config@master] Zuul: [mediawiki/extensions/Cite] Add CommunityConfiguration dependency

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

Change #1087886 merged by jenkins-bot:

[integration/config@master] Zuul: [mediawiki/extensions/Cite] Add CommunityConfiguration dependency

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

Test wiki created on Patch demo by MareikeHeuer(WMDE) using patch(es) linked to this task:
http://patchdemo.wmcloud.org/wikis/2bf4efa23d/w/

Test wiki on Patch demo by MareikeHeuer(WMDE) using patch(es) linked to this task was deleted:

http://patchdemo.wmcloud.org/wikis/2bf4efa23d/w/

WMDE-Fisch subscribed.

We're done with the POC exploration here.

Change #1081640 abandoned by WMDE-Fisch:

[mediawiki/extensions/Cite@master] [WIP] [POC] Community configuration page for Cite

Reason:

Just a PoC nothing to do here. Moved forward with the real implementation elsewhere.

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