Page MenuHomePhabricator

Cite CSS should be adjusted by wikis to set a non-standard rendering style (e.g. 1.0, 1.1 / a,b,c, removing brackets, etc.)
Open, MediumPublic

Description

There are a couple of ways to configure references to display differently:
http://www.mediawiki.org/wiki/Extension:Cite/Cite.php#Set_references_to_use_.5E_and_letters_like_Wikipedia
we should access these so the rendering in edit mode is consistent with the that in read mode.

Details

Reference
bz49346

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:02 AM
bzimport set Reference to bz49346.
  • Bug 51453 has been marked as a duplicate of this bug. ***

I think that this is the same problem:

Footnotes created with the ref group <ref group=lower-alpha> are displayed in the saved page as [a], [b], etc. If you open them in VisualEditor, they display (while editing) as [lower-alpha 1], [lower-alpha 2], etc. instead of [a], [b], etc.

Got a feedback about it during a workshop: on fr.wp, footnotes are labelled as "a, b, c"... in reading mode and "3.0, 3.1, 3.2"... on edit mode. Plus, notes on the text don't have brackets on reading mode and have them on editing mode.

Jdforrester-WMF renamed this task from VisualEditor: Reference should use system messages to work out their rendering style (e.g. 1.0, 1.1 / a,b,c) to Cite CSS should be adjusted by wikis to set a rendering style (e.g. 1.0, 1.1 / a,b,c).Apr 3 2016, 7:04 AM
Jdforrester-WMF updated the task description. (Show Details)
Jdforrester-WMF set Security to None.

This requires changes to Common.css (or some other site-level styling script) to change the rendering. However, I'd invite wikis to seriously consider whether they really want to vary from every other wiki's rendering.

Jdforrester-WMF renamed this task from Cite CSS should be adjusted by wikis to set a rendering style (e.g. 1.0, 1.1 / a,b,c) to Cite CSS should be adjusted by wikis to set a non-standard rendering style (e.g. 1.0, 1.1 / a,b,c, removing brackets, etc.).Apr 3 2016, 7:09 AM

The change for frwiki to make it look like their current local customisation is roughly:

/* French Wikipedia over-ride of styling for <ref>s */
span.mw-ref a::after {
  content: counter(mw-Ref,decimal);
}

This requires changes to Common.css (or some other site-level styling script) to change the rendering. However, I'd invite wikis to seriously consider whether they really want to vary from every other wiki's rendering.

On the reverse order, what prevents you to use the Common.css as it is? I mean, on a WYSIWYG system, you expect to have the same rendering both on reading and editing, which is what has been defined in the Common.css or in website settings.

Thank you for the fix, by the way.

This requires changes to Common.css (or some other site-level styling script) to change the rendering. However, I'd invite wikis to seriously consider whether they really want to vary from every other wiki's rendering.

On the reverse order, what prevents you to use the Common.css as it is? I mean, on a WYSIWYG system, you expect to have the same rendering both on reading and editing, which is what has been defined in the Common.css or in website settings.

Because Cite doesn't yet use these styles in read mode (that's T104927: Use ext.cite.style to style output, rather than wikitext styling, which is in fact blocked by doing this). :-)