Last modified: 2012-12-08 22:48:46 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
You want this in Wikipedia ? or in MediaWiki ? In the latter case, use your own suggested extension.
Wikipedia. specificly, the Hebrew one.
(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.
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?
>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.
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.
Write SVG files and upload them on the wiki. That will gracefully fallback to PNG too :)