Parsoid/Parser Unification/Cite CSS
This page is currently a draft.
|
Like all extensions, the Cite extension has localized messages. However, a significant part of the localized messages are for formatting and for localizing the numbering scheme.
Parsoid take a different approach here and uses CSS to support formatting-specific localization of the Cite extension. One of the reasons for this approach is to make the editing experience consistent in editing clients like VisualEditor. When citations are modified (added / removed), the CSS approach lets the rendering to adjust consistently. Otherwise, VE (and other clients) will have to make a server request to rerender all citations each time one is added / removed which makes for a poor / inefficient UX.
Given this difference in how Parsoid handles citation formatting, as we are starting to migrate read views to be based on Parsoid HTML, wikis will have to add CSS rules to their MediaWiki:Common.css files to target citations.
List of impacted wikis
Pretty much any wiki that uses localized numbering schemes will be impacted.
... to be continued ...
Examples of CSS rules
... point to examples present in the visual diffing repo ...
How can we verify changes?
... changes should be visible when you edit a page in VE ..