Page MenuHomePhabricator

After editing, the references have their numbering and their style altered
Open, NormalPublic

Description

With the Web visual editor, what you see is not what you get.

Safari on iOS 8.2 on iPad in landscape.

I go to https://fr.wikipedia.org/wiki/Montr%C3%A9al
At the beginning, are the refs: 5, 6, 7, 8
I click modifier.
I edit the article with the Web visual editor.
Now, these refs are: [3], [4], [5], [6]

  1. The numbers have changed. This is incorrect. Editing refs is already difficult. Inconsistent numbers make editing refs a puzzle.
  2. The refs now have []. This makes me think that saving my edit will put refs with [] in the article, but the saved article does not get the refs with []. Actually, I prefer the refs with the [].

It would be nice to have the refs keep their number.
Having the refs keep their [] would be nice too.

Thank you.

Nnemo

Event Timeline

Nnemo created this task.Apr 6 2015, 4:00 PM
Nnemo updated the task description. (Show Details)
Nnemo raised the priority of this task from to Needs Triage.
Nnemo added a subscriber: Nnemo.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 6 2015, 4:00 PM
Nnemo updated the task description. (Show Details)Apr 6 2015, 5:10 PM
Nnemo set Security to None.
Nnemo updated the task description. (Show Details)Apr 6 2015, 5:23 PM
Aklapper renamed this task from The refs have their number and their style altered to After editing, references have their numbering and style altered.Apr 7 2015, 2:10 PM
Jdforrester-WMF renamed this task from After editing, references have their numbering and style altered to ext.cite.css styling for French has square brackets, but frwiki does not.Aug 13 2015, 9:35 PM
Jdforrester-WMF triaged this task as Normal priority.
Jdforrester-WMF added a project: Cite.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.

Change 231455 had a related patch set uploaded (by Jforrester):
Provide ext.style.fr.css without square brackets

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

(bringing over discussion from above patch)

The french override is done on-wiki at https://fr.wikipedia.org/wiki/MediaWiki:Cite_reference_link . They have wrapped the brackets in a span and then hidden them with css. If we wan't consistency we'd need to parse that message, and other messages.

As the possible inputs are fairly complex (group, key, label, subkey) we basically need to reproduce function linkRef from Cite_body in JavaScript.

If we wan't consistency we'd need to parse that message, and other messages.

No, we want to deprecate site messages for customizing cite ( T86782 ). We should use CSS on Parsoid-generated html for replicating those customizations.

Nnemo renamed this task from ext.cite.css styling for French has square brackets, but frwiki does not to After editing, the ref calls have their style and their number altered.Oct 8 2015, 8:18 PM
Nnemo added a comment.EditedOct 8 2015, 8:24 PM

I am open to editing the title of the task to a better meaning. But I think it is better to keep the title a description of the issue, rather than turning it into the technical cause of the issue. When I saw the title of that task that I had created, I had no idea what it is about.

Furthermore, the problem is not only the [], it is also the number inside.

Nnemo renamed this task from After editing, the ref calls have their style and their number altered to After editing, the ref calls have their numbering and their style altered.Oct 8 2015, 8:25 PM
Nnemo awarded a token.
Nnemo renamed this task from After editing, the ref calls have their numbering and their style altered to After editing, the references have their numbering and their style altered.
Izno moved this task from Unsorted backlog to Doing on the Cite board.Feb 20 2016, 3:04 AM

Change 231455 abandoned by Jforrester:
Provide ext.style.fr.css without square brackets

Reason:
OK, Common.css bloat it is. :-(

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

Nnemo added a comment.Aug 6 2016, 10:57 PM
This comment was removed by Nnemo.
Nnemo reopened this task as Open.Aug 6 2016, 10:58 PM
Nnemo added a comment.Aug 6 2016, 11:02 PM

This task T95176 is not a duplicate of the task T51346.

  1. This task is about the numbering and the style of the ref calls. Actually, the numbering inconsistency is more important than the style inconsistency.
  1. The task T51346, as I understand, is for removing the []. In the task T95176 here, I do not request that, I rather request the opposite: applying the [] of the what-you-see in the what-you-get.
Izno moved this task from Doing to External on the Cite board.Apr 9 2019, 5:42 PM