Page MenuHomePhabricator

Requesting an Image Templating Engine for SVG
Closed, ResolvedPublic

Description

I know you're all very busy on Bug 550, but I would to propose the extension of
the mediawiki template engine to work on SVG files.

I have written up a proposal on the motivations, wikisyntax and basic workings.

Details are at: http://en.wikipedia.org/wiki/User:Pengo/ite


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/wiki/User:Pengo/ite

Details

Reference
bz5172

Event Timeline

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

zocky wrote:

There's a simpler way to do this. We can simply have an extension which would
turn the following code into an inline image (which can be put into a div and
floated or whatever, as needed):

... foo bar some wiki text...
<svg width="100px">

svg code

</svg>
... baz bar wiki text...

We could then put code like that into regular templates and use use parameter
values in them, and transclude them to get customizable maps and charts, without
new namespaces or syntax.

(In reply to comment #1)

There's already an "Inline SVG extension". Can anyone verify if it allows
templates within the svg code? If it does then my enhancement request is redundant.

http://meta.wikimedia.org/wiki/Inline_SVG_extension

If it doesn't, then it could be a good starting point.

  • Bug 5899 has been marked as a duplicate of this bug. ***

ayg wrote:

Not strictly a duplicate, but I'm merging this with general SVG editing anyway
on Rob's orders.

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