Page MenuHomePhabricator

Add a border keyword to the Image syntax
Closed, ResolvedPublic

Description

Author: mlambia

Description:
Add a border keyword to the Image syntax giving a grey border around the image
proper.

This would be useful for presenting images such as the flag of Dubai
http://commons.wikimedia.org/wiki/Image:Flag_of_Dubai.svg that have
"significant" white or very light colors all the way to the edge. It would also
be useful in combination with thumb(nail) or frame.

Various attempts at achieving the intended effect using HTML markup, <div>,
<span>, tables, or Template:Border, turn out to have annoying context-dependent
side effects.

The HTML img element already has a border attribute, which could be used, with
suggested (default) width = 1px. Suggested (default) color for the border =
#bbbbbb (compare Template:Infobox_Country on the English wikipedia), which can
be set in vanilla HTML using the font element.


Version: 1.7.x
Severity: enhancement

Details

Reference
bz6072

Event Timeline

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

shanemarkle wrote:

Yeah. That needs to be implemented. ~~~~

robchur wrote:

Please do not post comments on bug reports which exist for the purposes of
advocacy. It clogs up our inboxes and wastes time and space here.

Fixed with r22358.

Usage: [[Image:Filename|border|100px|right]]