Page MenuHomePhabricator

Allowing tag Image to access SVG objects
Closed, DuplicatePublic

Description

Author: nunotavares

Description:
Since MediaWiki now renders SVG directly, it would be nice to permit choosing
wich objects to render, or to change on the fly. We at pt:wikipedia have an SVG
map where we store everything, from rivers to municipalities. We could choose on
the fly which municipality should be highlighted, so the map could be just one
(instead of the hundreds used where two single objects change).

Proposed format (something like this):
[[Image:whatever.svg|control=municipality_Castelo_Branco.fill=gradient,black,white;|...]]

This would change the ''fill'' property of the ''municipality_Castelo_Branco''
objecto to a (SVG-specific-parameter) gradient, starting with black, finishing
with white.


Version: unspecified
Severity: enhancement
OS: Windows XP
Platform: PC

Details

Reference
bz4689

Event Timeline

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

happy.melon.wiki wrote:

*** This bug has been marked as a duplicate of bug 4688 ***

nunotavares wrote:

Hi there, since I'm the reporter from #4688 and #4689, I just wanted to highlight these were separate on purpose.

Issue #4688 deals with layer selection, while this one (#4689) deals with layer/object *manipulation*. This one can obviously be accomplished with #4688, but I think that it would require the SVG to have the "highlighted" polygons in the form of layers. That could turn an already big SVG into a bigger one, as well requiring the author to basically duplicate all portions (creating highlighted ones), although it could be eventually accomplished in a easier way.

So I'll change the status (if possible) so you can review this.