From 8cfad38705609fc7d3c51d3d6cfc0bab9af6f4fe Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Mon, 14 Nov 2022 16:02:00 -0600 Subject: [PATCH] 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 "[[$1|$2]]". $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 --- modules/ext.cite.style.css | 2 +- modules/ext.cite.style.en.css | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 modules/ext.cite.style.en.css diff --git a/modules/ext.cite.style.css b/modules/ext.cite.style.css index e2c144594..06b45cec2 100644 --- a/modules/ext.cite.style.css +++ b/modules/ext.cite.style.css @@ -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; /* use in Cite */ font-size: smaller; /* use in Cite */ diff --git a/modules/ext.cite.style.en.css b/modules/ext.cite.style.en.css new file mode 100644 index 000000000..2425ed9d1 --- /dev/null +++ b/modules/ext.cite.style.en.css @@ -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 ); +}