Page MenuHomePhabricator

Allow passing "style" (and possibly other attributes) to <gallery>
Closed, ResolvedPublic

Description

Author: le.korrigan

Description:
It would be interesting to allow borders in image galleries generated by <gallery> tags ; this would avoid the confusion when one gets a white flag on a white background, see for instance [[Gallery of maritime flags]], with the White Ensign not always legible.

It could be done with the same keyword as for images (|border|), or with a general keyword embedded in the <gallery> tag ?


Version: 1.11.x
Severity: enhancement

Details

Reference
bz10508

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:53 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz10508.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Images in galleries *do* have a border. It's a bit faint, I concede, but that's just a simple matter of tweaking some CSS.

ayg wrote:

See also bug 1962, bug 6019, bug 10081. If galleries could be given HTML attributes then the entire gallery could be given a border/background/etc., a related request.

le.korrigan wrote:

(In reply to comment #1)

Images in galleries *do* have a border. It's a bit faint, I concede, but that's
just a simple matter of tweaking some CSS.

Indeed but then the CSS has to be changed for the whole site ; yet borders are required only on some occasions ; allowing an optional paramter (or some HTML / CSS style) could help.