Page MenuHomePhabricator

Border option in extended image syntax broken
Closed, DeclinedPublic

Description

Author: michaeldaly

Description:
If you use the border option, no border shows up. E.g. on Wikipedia

[[Image:Flag of Japan.svg|22px|border]]

The output is in an anchor tag: <a... class=image...><img ...image spec.../></a>.

Class "image" doesn't seem to be defined anywhere (not in standard main.css, Mediawiki:Common.css nor Mediawiki:Monobook.css). I'm not sure what CSS will generate a border in an anchor tag with an image - nothing I experimented with would work.

Other options with a frame (e.g. thumb) creates <div>s to form borders.


Version: unspecified
Severity: enhancement

Details

Reference
bz11338

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:59 PM
bzimport set Reference to bz11338.
bzimport added a subscriber: Unknown Object (MLST).

<img ... class="thumbborder">

Works for me, and shows just fine.

michaeldaly wrote:

This is from MW 1.10 (image url elided):

<img alt="border" longdesc="..." src="..." width="101" height="73" />

no class="thumbborder". Is this new to 1.11?