Last modified: 2012-12-08 22:48:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26071, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24071 - Allow SVG code to be used in wiki editor
Allow SVG code to be used in wiki editor
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-22 12:49 UTC by yonidebest
Modified: 2012-12-08 22:48 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description yonidebest 2010-06-22 12:49:41 UTC
I would like to be able to use a 'svg' tag which will contain custom SVG code. The server will convert the code into an image and display the image. The tag should work in a template too.

The idea is to be able to create simple images based on custom parameters. i.e. I'd like to create a template which creates an image-arrow using specified length and angle.

Perhaps the following extension is relevant:
http://www.mediawiki.org/wiki/Extension:Inline_SVG

Thanks
Comment 1 Derk-Jan Hartman 2010-11-04 04:41:48 UTC
You want this in Wikipedia ? or in MediaWiki ? In the latter case, use your own suggested extension.
Comment 2 yonidebest 2010-11-04 21:07:28 UTC
Wikipedia. specificly, the Hebrew one.
Comment 3 Derk-Jan Hartman 2010-11-04 21:10:29 UTC
(In reply to comment #2)
> Wikipedia. specificly, the Hebrew one.

Is it really a good idea though to introduce more syntax into the the pure wikicode, if you can also just upload as an SVG file ? At least that is supported for all browsers.
Comment 4 yonidebest 2010-11-05 14:02:38 UTC
it is not practical to upload thousands of SVG images to simply create the above mentioned templete (which displays an arrow in the specified length and angle). why do you suggest that an SVG created by the server will not be supported by all browsers?
Comment 5 Bawolff (Brian Wolff) 2010-11-06 22:10:59 UTC
>why do you suggest that an SVG created by the server will not be
supported by all browsers?

The extension you suggested doesn't rasterize the svg, it sends it as written directly to the browser. Besides being a security issue, that won't work in IE. (+ it puts everything in an iframe, which is just ugly).


May I ask why you need so many different types of arrows? You can do different lengths by using tricks like having the ------ part of the arrow being made up of multiple images.
Comment 6 yonidebest 2010-11-07 16:33:08 UTC
I the suggested extention can't do what i requested, i guess its not relevent.

I can't recall why i was asked to create such a template. five months have passed. anyway, the idea is not length, but angels. also, different shapes and inline text could be made using such a template.
Comment 7 Antoine "hashar" Musso (WMF) 2012-12-08 22:48:46 UTC
Write SVG files and upload them on the wiki. That will gracefully fallback to PNG too :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links