Page MenuHomePhabricator

Problem in display for contents of citation template
Closed, ResolvedPublic

Description

In Preview mode, all the fields in a citation created with a 'cite' template are italicised. Example: [[Champion (Nicki Minaj song)]]. These are formatted correctly when viewed directly in a browser.

Event Timeline

Colonies_Chris raised the priority of this task from to Medium.
Colonies_Chris updated the task description. (Show Details)

@Colonies_Chris Can I have a screenshot of Internet Explorer displaying it correctly please?

Here's the AWB version (all italics), and the IE version (as normal).

AWB Champion Capture.PNG (202×1 px, 37 KB)

IE Champion Capture.PNG (175×1 px, 37 KB)

(And, to avoid doubt, I confirm that my default browser is IE11: W7 64-bit).

OK, it is a display issue with the HTML browser (we use the System.Windows.Forms.WebBrowser within .NET). If I capture the preview HTML and open in Firefox, cites display fine without italics.

Looking at the HTML (as generated by mediawiki API), the cite templates have around them <cite id="CITEREFAnon2004" class="citation web"> for cite web, with class="citation journal" for cite journal etc. We link to the mediawiki stylesheets, so within the HTML, so the stylesheets must define these classes (I believe there is a citation class and then web, journal etc. override that). A plain <cite> is in italics by default per HTML standards. So somewhere the .NET web browser isn't rendering this correctly.

Rjwilmsi claimed this task.

rev 12120 adds a workaround