Template talk:Vector version available

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Info non-talk.svg Template:Vector version available has been protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit.

automatically superseded?[edit]

Just because a vector version of a file is available doesn't automatically make the vector version superior. This template should only say that the file is available; not that it is "superceded". — Omegatron 18:59, 31 May 2006 (UTC)

I completely agree. I have changed this template to match the one that is on En Wikipedia. In many cases a PNG must be used instead of the SVG for technical reasons. -- Borb 21:42, 16 June 2006 (UTC)
Very well, this solves the problem about Image:Flag of Hong Kong SAR.png. I think I'll add an image to the template though. Fred Chess 00:54, 18 June 2006 (UTC)
What kind of technical reasons? --MarianSigler {bla} 21:31, 7 July 2006 (UTC)
For example, Rendering errors which are very common. I've collected some mistakes I've recognized some time ago on my userpage. --Sven 14:44, 23 July 2006 (UTC)
Yes, my own uploads have rendering errors, which is why I didn't want to put that my PNG version had superseded the SVG version. See Image:CNO Cycle.svg. -- Borb 11:40, 29 July 2006 (UTC)
Arrows aren't working right, just repaint them with a simple line and a triangle at the end. I've had the same problems with *many* images, for example Image:Cups simple.svg. Since then, I usually convert arrows to vectors (which is not possible with Inkscape yet so you have to do it manually), for example Image:A size illustration.svg. --Sven 17:55, 29 July 2006 (UTC)
Any tips on converting the Arrow heads to vectors manually? -- Borb 19:14, 4 August 2006 (UTC)
Maybe some programs like Adobe's have equivalent tools, Inkscape afaik doesn't serve converting tools. So simply create it by hand ;-))
--Sven 13:31, 5 August 2006 (UTC)
Actually you can do it really easily. Select the line with markers on it. Go to Path > Stroke to Path. See this with markers converted: http://commons.wikimedia.org/wiki/Image:CNO_Cycle.svg 30kB bigger than the one with markers but at least it works. -- Borb 20:18, 6 August 2006 (UTC)

Reverted the redirection[edit]

As it says above, there must be some way to indicate raster images which have a vector counterpart of some kind, but which may not be fully "superseded" (for various reasons). AnonMoos 22:39, 3 February 2007 (UTC)

two template with common goals[edit]

why does both this and Template:SupersededSVG exist? --Ysangkok 18:53, 11 March 2007 (UTC)

Because there's no guarantee that a vector version of a file is good quality, or an accurate conversion. Therefore, there must be some way to indicate raster images which have a vector counterpart of some kind, but which may not be fully "superseded" (for various reasons). AnonMoos 22:46, 11 March 2007 (UTC)
You may be right, but most of the pictures tagged with Vector version avaible are in fact superseded: take a sample of some pictures using Vector version. This is because most user don't know the difference of superseded and vectro version. If an image is proposed fo deletion (Commons:Deletion_requests/Superseded), the people who delete the picture check if it is really superseded or not. So I suggest redirecting this template to supersededSVG --DieBuche 11:03, 31 March 2007 (UTC)
Sorry, but if an SVG image "corresponds" to a raster image (or attempts to do so), but is low-quality, or has significant differences from the raster, then there needs to be some way of formally indicating this. There seem to be some admins who are on a deletion rampage on WikiMedia Commons, running around deleting everything in sight which has some kind of SVG counterpart, no matter how crude or primitive or low quality -- and the "vector version available" template is one of the few fragile reeds of protection which exist against these trigger-happy "delete at all costs" types. Only in the last few days, the former image Image:No cross.png was deleted, despite the fact that its alleged "replacement"[sic] Image:No cross.svg is ugly and low-quality, with a number of differences from the original PNG, and an alleged "cross" which barely even looks like a cross! If the existence of the "vector version available" template can help prevent the future occurrence of similar travesties, then it's definitely needed. AnonMoos 12:13, 31 March 2007 (UTC)
I use {{{Vector version available}}} for the reasons outlined by AnonMoos - I feel that as the creator (or tracer) of the images I upload, I am not in a position to impartially judge their worthiness to "supersede" the original. So I use the former, and if someone else later thinks that the images are good enough to supersede, they are welcome to swap the templates. Stannered 00:45, 1 April 2007 (UTC)

Note, not to delete superseded images[edit]

Could someone please add this to the template as in Superseded:
<small>The deletion of superseded images has been suspended indefinitely; see [[Commons talk:Deletion requests/Superseded|the discussion]] for more information.</small>

--Matt 17:11, 10 February 2008 (UTC)


{{editprotected}} Please remove the quotation marks from ("SVG") so that it reads (SVG). They are incorrect and there is absolutely no rational for them being there. See w:quotation mark. Reywas92 21:40, 19 March 2008 (UTC)

Done. —David Levy 18:12, 21 March 2008 (UTC)


This should go in this cat: Category:Templates for marking as superseded. Evrik 02:23, 28 April 2008 (UTC)

Look above. This particular template very specifically does not mark as superseded... AnonMoos 20:54, 28 April 2008 (UTC)


{{editprotect}} This should go in this cat: Category:SVG marker templates (SVG related) (I've added it at the doc page) like {{Convert to SVG}} --Perhelion (talk) 12:32, 28 October 2010 (UTC)

Well, sure, but you added the category to the doc page, where it belongs, so the category is categorized correctly. I don’t see any other change required. --Mormegil (talk) 19:26, 28 October 2010 (UTC)


as it is constricted to SVGs, please could some admin sort it down into Category:SVG marker templates - or do we have other vector gaphics, we do: .PDF, and we had OpenOffice.org .SXD (I think we dismissed that) - well, both won't be rendered by now.. --W!B: 01:08, 6 May 2008 (UTC)

For the same reason, why specify the file type in the arguments?--Ainlina (talk) 16:53, 2 November 2008 (UTC)

Umm? This doesn't make sense?[edit]

when superior sounds weird, shouldn't it be 'when possible'? -- 16:43, 16 June 2008

When the SVG image is better in overall quality and suitability for intended purpose than the raster image is (which is not always the case). AnonMoos (talk) 18:06, 16 June 2008 (UTC)
I agree, the wording is sloppy, and every time I see it I cringe. "It should be used in place of this raster image when superior.." when superior what? When superior quality is needed?-- 03:13, 29 April 2009 (UTC)
Not sure how to state it better than "When the SVG image is better in overall quality and suitability for the intended purpose than the raster image is (which is not always the case)", as I already did directly above. AnonMoos (talk) 12:08, 29 April 2009 (UTC)

{{edit protected}}Or we could just go with: "when not inferior" instead of "when superior"? SamB (talk) 04:54, 11 March 2014 (UTC)

✓ Done Implied consensus assumed after 4 months. -- Rillke(q?) 18:52, 14 July 2014 (UTC)

auto translation[edit]

Please change, or let me change, this template according to the change in Template:Speedy delete text for making this template auto translated. For users with German interface speeddelete is in German[1], for users with French interface it is in French[2] and so on. (currently works only in English, German, French, Hebrew and Italian but as sysops create more MediaWiki:Lang pages, it can work in all other languages). Thanks, ערן (talk) 06:29, 8 November 2008 (UTC)

✓ Done I think - please double-check my work.  — Mike.lifeguard | @en.wb 18:58, 8 November 2008 (UTC)
Thanks, ערן (talk) 19:38, 8 November 2008 (UTC)

File namespace[edit]


Please replace

{{#ifeq:{{NAMESPACE}}|Image|[[Category:Vector version available|{{PAGENAME}}]]}}

in <includeonly> to

{{#ifeq:{{NAMESPACE}}|File|[[Category:Vector version available|{{PAGENAME}}]]}}

. This correctly collects files into Category:Vector version available. --fryed-peach (talk) 19:57, 6 January 2009 (UTC)

✓ Done — Mike.lifeguard | @en.wb 05:35, 7 January 2009 (UTC)

Could I add a simple example of usage?[edit]


Just adding something like Example code: {{vector version available|new image name.svg}}, would do the trick, like in the instructional {{Convert to SVG}}-secton in Category:Global Warming Art images.

The reason I'm asking is because I wanted to use the but then didn't find any instructions on the actual template page. Please tell me if I've misunderstood completely. Thanks. Jarl Arntzen (talk) 21:27, 14 July 2009 (UTC)

Now after adding it to the documentation I realize you meant the template itself... I'll add it to Template:Vector version available/en. Rocket000 (talk) 04:39, 15 July 2009 (UTC)
✓ Done Now it will display an error message when you use it wrong or try to link to a non-existent image. It will remind you of the correct syntax. This only works on File: pages (that's why it's not displaying an error in the example). Rocket000 (talk) 04:57, 15 July 2009 (UTC)

Linking of images[edit]

Would it be possible to link files on other wikis? I know a couple of cases where a vector version is available on another wiki that I would like to link, so somebody can transfer it if needed. I think a preview of the file would not be possible. In that case a message could be displayed that the file is on another wiki. --Cwbm (commons) (talk) 12:23, 22 October 2009 (UTC)

Pictogram voting comment.svg Comment: I removed {{editprotected}}, because it's not a request to make an edit, but rather a question if something is possible. --The Evil IP address (talk) 23:02, 28 October 2009 (UTC)

In most cases, it would be raster images on Wikipedias linking to an alternative vector image on Commons, not the reverse... AnonMoos (talk) 15:47, 16 November 2009 (UTC)


Please, add Armenian version.--Pandukht (talk) 18:37, 16 June 2010 (UTC)

✓ Done--DieBuche (talk) 19:58, 16 June 2010 (UTC)

Maintenance category for missing a value[edit]

What about creating a maintenance category for images tagged with the template, but missing a value? --Leyo 20:29, 5 August 2010 (UTC)

I gave a try. Such images should soon be found at Special:WhatLinksHere/Template:Vector version available/error. --Leyo 12:52, 10 August 2010 (UTC)

It would be great if I could get some help for fixing all the errors. --Leyo 15:44, 19 December 2010 (UTC)

I would first ask Bot:CommonsDelinker, because he is guiltily for the most errors. --Perhelion (talk) 18:25, 19 December 2010 (UTC)
Thanks for asking the operator. --Leyo 23:29, 19 December 2010 (UTC)
Some users seem to have mixed it up with {{SVG}}, the request for SVG creation. Why not automatically change it, when not existing? -- sarang사랑 16:11, 20 December 2010 (UTC)

Placement on page[edit]

Where should this template be used on a page? I've seen it used both on the top and bottom of pages, i.e. both above and below {{Information}} and/or {{int:license}} templates. –Tommy Kronkvist (talk), 04:23, 12 August 2010 (UTC).

The predominant "traditional" placement seems to be above the description, but I'm not sure whether there's any real reason for that... AnonMoos (talk) 04:50, 12 August 2010 (UTC)

Poor translation[edit]


In the french version of this svg template, could somebody please change the sentence:

Voir aussi les informations à propos de la manière dont le logiciel MediaWiki supporte les images au format SVG.


Voir aussi les informations à propos de la manière dont le logiciel MediaWiki gère les images au format SVG.

"gère" instead of "supporte", which is here an "anglicisme" or "faux ami" (the verb to support in English does not mean "supporter" in French, and vice versa.

TIA. --Olivier1961 (talk) 11:54, 28 August 2010 (UTC)

You can edit Template:Vector version available/fr by yourself. – Kwj2772 (msg) 11:15, 1 September 2010 (UTC)
Oops, with this {{editprotected}} thing, I didn't realize I could do it myself. Done. Sorry for the trouble. --Olivier1961 (talk) 09:43, 2 September 2010 (UTC)


In significant most cases the name of the SVG file is quite the same, save the extension. Therefore I think it helpful if the template works when no name is specified; then it assumes the name is the same, but with ".svg" instead of .gif, .png, .jpg or whatever. Whether the template checks the existence of such a file name seems not so necessary, the result is shown immediately by the error message, or the success miniature.
Possibly that needs expensive string operations. They must be performed only when the file is looked at its description (and when the template is installed), not when the picture is displayed elswhere. So it seems not to bad with the server effort.
May be the number in Special:WhatLinksHere/Template:Vector version available/error will be reduced. If a name fits it cannot be the most wrong picture.
Another possibility, where no touching of this template is needed, would be to build a template that generates the name and passes control to VVA. -- sarang사랑 14:19, 20 December 2010 (UTC)

Some users seem to have mixed up the {{VVA}} with {{SVG}}, the request for SVG creation. Why not automatically change it, when non-existence is encountered? -- sarang사랑 16:11, 20 December 2010 (UTC)

NL translation[edit]

{{editprotected}} Please verify and add Template:Vector version available/nl --Denniss (talk) 02:01, 7 September 2011 (UTC)

Was done by another. – Adrignola talk 20:31, 13 September 2011 (UTC)

Seems a BUG[edit]

When I want to show that different vectorized versions exist to an image, I can do this via "other_versions", or with a gallery, or with something else. When I did it with multiple invocations of {{VVA}} as at ChetBraille.png a funny thing occurs: when I change to another language (no matter at which of the vva-boxes) all show the same vector image, the first one. Shall I check what causes this unexpected behaviour? -- sarang사랑.svg사랑 14:58, 15 November 2011 (UTC)

I would doubt that the error is in the template itself, since it's similar to other errors reported on Commons:Village pump... AnonMoos (talk) 18:26, 15 November 2011 (UTC)

Parameter for quality rating[edit]

It may be useful to add an optional parameter to this template, for specifying the graphical quality of the SVG alternative; I thought that it could consist of a number from 1 to 5, when 3 stands for 'quite exactly the same quality as the original' for example: {{Vector version available|New_Image.svg|4}} would indicate that New_Image.svg is a little better than the raster one. If the rating is lower than 3, the template could suggest not to replace the current image with the vector one, but to create a new one. In the future, we could use a voting tool to show the average rating for SVG replacements. --Ricordisamoa (talk but not stalk) 01:25, 2 January 2013 (UTC)

However, that would mean that the rating information about the SVG would not be on the SVG file's description page... AnonMoos (talk) 21:46, 2 January 2013 (UTC)
The rating could be inserted in the SVG file's description page and retrieved at runtime by the template, of course (I don't know if and how this can be done); however, some SVG images can be used to replace multiple raster ones, and so they would need as many ratings, and this could create problems. Your choice. --Ricordisamoa (talk but not stalk) 23:46, 2 January 2013 (UTC)
@AnonMoos: yes, because an SVG image can supersede several raster ones, with varying degrees of accuracy. Information where it's needed. --Ricordisamoa 15:21, 17 April 2014 (UTC)
Support - I've been caught by this, lured into using someone's inaccurate hand-reconstruction over an official PNG - David Gerard (talk) 16:01, 18 October 2013 (UTC)

Moreover, consider that we have currently 62,664 files in a single "Vector version available" category, while we could have five distinct subcategories hosting all files by accuracy as compared to the original. --Ricordisamoa 18:02, 13 April 2014 (UTC)

Do you think someone would care for updating this template when improving a vector version? If so, you have my support. If you add a parameter, please migrate the template so it makes use of the translate extension and we can easily update all translations. Thanks in advance. -- Rillke(q?) 20:58, 13 April 2014 (UTC)
I can think of very few users who usually convert raster images into SVG. It would be wise to notice them, and maybe to create an AbuseFilter warning for those who insert {{Vector version available}} without rating. Then, a JavaScript tool should be created to help users assess existing vector alternatives. But the present consensus is IMHO not sufficient to proceed. --Ricordisamoa 15:14, 17 April 2014 (UTC)

Bug: visible wiki-markup when target svg does not exist[edit]

When {{Vector version available}} is used in a way that points to a .svg that does not actually exist, there are visible closing square-brackets preceding the "Error: No image by that name exists." message. See for example [3]. In addition, there is another set of visible square-brackets in the replacement statement below the first horizontal line when no parameter is passed.[4]

The first issue appears to be in Template:Vector version available/en in the false fallback branch here:

{{#ifexist:{{{1}}}|[[:{{{1}}}]] is a vector version of this file.
It should be used in place of this raster image when superior.|{{{1}}}]]: <span class="error">Error: No image by that name exists.

The underlined close brackets do not appear to have a corresponding open. Maybe it should be [[:{{{1}}}]]?

The second issue is probably in Template:Vector version available/layout but I don't have time to look more deeply into it at the moment. DMacks (talk) 07:36, 28 February 2013 (UTC)

Pictogram voting info.svg Info Cases with missing parameter are listed under Special:WhatLinksHere/Template:Vector version available/error. It might be an option to change the template in the way that pages with an error get into a maintenance category to get more attention. --Leyo 08:42, 28 February 2013 (UTC)

It did so. The cases are now (or soon) in Category:Vector version available/error. --Leyo 15:43, 23 July 2013 (UTC)


I think, we should create a redirect from Template:Vector. It would be simple for placing in the source code. For example:


--Rezonansowy (talk) 07:22, 9 May 2013 (UTC)

Short synonym is {{Vva}}. "Vector" is somewhat ambiguous (could also be a synonym of {{SVG}} etc.). AnonMoos (talk) 15:00, 9 May 2013 (UTC)


Template needs an optional background parameter for white vectors, e.g., here.   — C M B J   05:16, 18 May 2013 (UTC)

✓ Done. Now default. Extra param would require editing all language subpages; this could be done after someone migrated this template to the translate extension. -- Rillke(q?) 20:55, 13 April 2014 (UTC)
Checkmark This section is resolved and can be archived. If you disagree, replace this template with your comment. Rillke(q?) 20:55, 13 April 2014 (UTC)

More appropriate colors[edit]

I think this template should mostly red to indicate that it is wrong to use this image and another image should be used instead. I would add those images: Stop cross.svg Gtk-ok.svg to explicite the message. ftiercel (talk) 18:48, 19 September 2013 (UTC)

  • Symbol oppose vote.svg Oppose --Leyo 08:51, 20 September 2013 (UTC)
    Why? ftiercel (talk) 22:11, 20 September 2013 (UTC)
Because this template only states that a vector of some kind is available, but does nothing to vouch for the quality of the SVG, or whether the SVG can serve as a truly equivalent replacement for the raster image. See some of the old comments in sections above... AnonMoos (talk) 19:03, 23 September 2013 (UTC)
OK. ftiercel (talk) 17:23, 27 September 2013 (UTC)
  • Symbol oppose vote.svg Oppose For the reasons mentioned by ftiercel. Aldaron (talk) 01:17, 29 September 2014 (UTC)

Recommendation for positioning of this template[edit]

According to the question on Template talk:Convert to SVG#Recommendation for positioning of this template, also raises it here. However, there are only two possibilities.

  1. On the very top of the desc.: I mean this overvalued the importance of this template, often the SVG are not better.
  2. On |Other versions=: I mean this should be the only one reasonable if present.
    Objections to put this on the template doc? User: Perhelion (Commons: = crap?) 07:54, 27 September 2014 (UTC)
  3. Below the information template is also an option, especially if there are e.g. multilingual versions in |Other versions=. --Leyo 12:37, 27 September 2014 (UTC)

Symbol oppose vote.svg Oppose should be on top so that you can directly compare the images. --Cwbm (commons) (talk) 22:02, 29 September 2014 (UTC)

Ok this is a point and also seems to the most practice. User: Perhelion (Commons: = crap?) 15:33, 2 October 2014 (UTC)
But this is not a substantial argumentation, because this template displays only a thumb (like under |Other_versions=), so you can not really compare an image. So for me I'll put this template now always in |Other versions=. User: Perhelion (Commons: = crap?) 12:53, 16 October 2014 (UTC)


Commons:Transition to SVG was apparently an ancient (2007) failed dogma crusade, why not link to the far better Help:SVG page in this template? –Be..anyone (talk) 13:21, 28 December 2014 (UTC)

Proposed fix tor English version[edit]

There are several oddities in the code for the English version of this template:

  1. The text of the notice when the namespace prefix is included in the first parameter (e.g. {{vva|File:Filename.svg}}) is different from the text without it (e.g. {{vva|Filename.svg}}). This is due to a July 2014 edit, which changed "superior" to "not inferior" in the first #ifexist case, but not in the second.
  2. If a title is entered that does not exist in File: namespace but does exist in the main namespace, the template does not give the does-not-exist error, but just links to the gallery page. Try adding {{vva|Main Page}} to any page in File: namespace.
  3. And as noted a few sections above this one, there is some stray code {{{1}}}]]: at the start of the text for a nonexisting file.

The following code for line 3 combines the two #ifexist cases to consolidate the template messages (preventing inconsistencies as described at #1), and fixes #2 and #3.

|imageExists={{#ifeq:{{NAMESPACE}}|File|{{#ifexist:File:{{PAGENAME:{{{1}}}}}|[[:File:{{PAGENAME:{{{1}}}}}]] is a vector version of this file.<br/>It should be used in place of this raster image when not inferior.|<span class="error">Error: No image by that name exists. Please make sure to use the correct format: {{tlp|vector version available|''new image name''.svg}}.</span>}}|}}

SiBr4 (talk) 15:15, 19 January 2015 (UTC)