Parsoid CSS: Don't make enwiki's default the default for all languages

* The default formatting for linkbacks for multiple named refs is
  determined by the "cite_references_link_many_format" message.
  It is only defined in en.json as "<sup>[[$1|$2]]</sup>". $2 is
  the output of referencesFormatEntryNumericBacklinkLabel.

  So, change the default Parsoid CSS rule to match that.

* But, since we have shipped Parsoid CSS all this while with the enwiki
  default, temporarily add "ext.cite.style.en.json" with that enwiki
  default so that on deploy, enwiki citations in VE continue to display
  as before.

Change-Id: I6f4b0e25189284ad0950977752739e7dc2951fec
This commit is contained in:
Subramanya Sastry 2022-11-14 16:02:00 -06:00
parent 731b162d4e
commit 8cfad38705
2 changed files with 7 additions and 1 deletions

View file

@ -83,7 +83,7 @@ span[ rel~='mw:referencedBy' ] {
span[ rel~='mw:referencedBy' ] a:before {
counter-increment: mw-ref-linkback;
content: counter( mw-ref-linkback, lower-alpha );
content: counter( mw-references, decimal ) '.' counter( mw-ref-linkback, decimal );
line-height: 1;
vertical-align: super; /* <sup> use in Cite */
font-size: smaller; /* <sup> use in Cite */

View file

@ -0,0 +1,6 @@
/* Temporary: This is enwiki specific.
* Need this for b/c till we add this to enwiki's Mediawiki:Common.css */
span[ rel~='mw:referencedBy' ] a:before {
content: counter( mw-ref-linkback, lower-alpha );
}