Template talk:Scripted SVG

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Why I included this template[edit]

Usually it makes no sence to upload SVG files with included JavaScript, since these files can't be rendered in a way, that the final raster images include the intended animation or interactivity.

But it is possible (and has happened in the two cases, where I uploaded scripted SVG), that the image without execution of the Script is still viewable and can give most of its information. E.g., Ampel.svg is a scripted animated traffic light. But even without animation it still is a traffic light, showing the color-scheme of these lights.

Therefore I created this template: Users, who want to upload SVG, that is scripted at the moment, don't have to remove the script, as long as the static content is still viewable and in some degree carrying information. The static image can be included in WP articles, while all the same the author can give people a hint, that there is more to come, if they open the image in an adequate viewer. And who knows, perhaps one day the WP will include SVG directly without rendering. Then the scripting can be used inside the articles to create dynamic schemes.

There is a second template for SMIL animated SVG images.

If there is still a point I'm missing, please tell me. --Manuel (Diskussion) 08:43, 7 November 2006 (UTC)

Are scripted SVGs safe? pfctdayelise (说什么?) 14:06, 11 February 2007 (UTC)
see Help:SVG#Scripting - by now, wo do not accept then, is written - maybe we should delete this Template --W!B: (talk) 14:18, 11 August 2008 (UTC)
Manuel, how do we know what point you may be missing?
pfctdayelise, it should be possible to ensure that scripted SVG files are perfectly safe (but I would not know how, or what the risks actually are).
W!B:, the template may not be a lot of use at present, but somebody made it, and it is ready and waiting for such time as scripted SVG may be allowed. It costs nothing, so let it be. Globbet (talk) 14:50, 17 June 2009 (UTC)