VisualEditor: Display references rendered by {{#tag:ref}} in superscript
Closed, ResolvedPublic

Description

Screenshot of odd rendering when using {{#tag:ref}}

https://www.mediawiki.org/wiki/VisualEditor/Basic_example_worksheet?veaction=edit

See attachment, [11] renders as span instead of as <sup> (like [10]) and as such isn'y styled correctly (text is too big).


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz50978
Krinkle created this task.Jul 8 2013, 8:53 PM

This is confusing because the lack of superscript makes these refs look like an external link.

This happens with all pages that use [[Template:Geographic reference]], which the English template page says is "a very large number of Wikipedia articles", and that template exists in 15 other Wikipedias including a few on the 'maybe' list for 22 July deployment.

Example in the wild:

https://en.wikipedia.org/wiki/Branford,_Florida?veaction=edit

Parsoid incorrectly renders references as <span>s. The ones directly in the main documented are rendered as <sup>s by VE, but we don't control the ones in templates and other generated content (and #tag is a ParserFunction).

(In reply to comment #2)

Parsoid incorrectly renders references as <span>s. The ones directly in the
main documented are rendered as <sup>s by VE, but we don't control the ones
in
templates and other generated content (and #tag is a ParserFunction).

Ugh, didn't see James's summary edit. Moving back to VE.

We could probably add CSS to make <span class="reference"> render as a superscript, or munge it in some other way. Though ideally I'd like us to convince Parsoid to render references as <sup>s the way the PHP parser does.

Change 73980 had a related patch set uploaded by Esanders:
Fake superscript style for references generated as spans

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

Change 73980 merged by jenkins-bot:
Fake superscript style for references generated as spans

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

Fixed and will go out later today.

Add Comment