Last modified on 4 July 2013, at 20:54

Template:Convert to SVG

Converted to SVG.svg All images in this gallery could be recreated using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and replace afterwards this template with {{vector version available|new image name.svg}} or just {{NowSVG}}.
Documentation icon Documentation[view] [edit] [history] [purge]

This documentation is transcluded from Template:Convert to SVG/doc.

Used to tag images which should be converted to SVG.

If reasonable please notify the uploader(s) by placing the following code on their talk page:

{{subst:SVG/notify|Name of the file.ext}}

The template automatically sets the following categories: Category:Images that should use vector graphics, a subcategory of Category:Images for cleanup. The type of the image (such as "flag", see table below) should be given as a parameter, to add the image to an appropriate sub-category (e.g. Category:Flag images that should use vector graphics). If an invalid value is specified the image defaults to "Category:Other images that should use vector graphics".

Usage

{{Convert to SVG |1= |vectordata= }}

The following are possible values for parameter 1:

Value Used for... Category #
alphabet images of characters, font examples, etc. category 950
architecture architecture blueprints category 308
art simple images based on artwork, or otherwise related to culture and art category 234
astronomical map a subcategory of map category 63
biology images related to biology, e.g. animal/plant diagrams, human anatomy, anything biological in nature category 871
chemical only for chemical structural formulae, especially skeletal formulae; use chemistry for everything else category 1,022
chemistry images related to chemistry, e.g. molecular orbitals, crystal structure, lab equipment (use chemical for structural formulae) category 1,398
circuit electronic circuit diagrams, etc. category 599
city map a subcategory of map category 252
coat of arms coats of arms category 18,416
diagram diagrams (e.g. mind maps, flow charts, tree data structures, schematics) that do not fit any other subcategory category 3,187
economic map a subcategory of map category 152
fictional map a subcategory of map category 43
flag flags category 5,719
flag map a subcategory of map category 643
graph visual plots of data, e.g. line charts, pie and bar charts, etc. (add graphs to a more specific category like math, physics, chemistry or biology where appropriate) category 3,493
icon icons, which would be suitable as desktop icons for example (otherwise symbol may be better) category 601
linguistic map a subcategory of map category 336
locator map a subcategory of map category 8,942
logo logos, or images intended to be logos category 3,294
map geographical maps category 1,754
math mathematical content (see also should use TeX) category 1,542
military insignia military insignia category 893
musical notation sheet music, musical scales, images of notes, etc. category 611
physics images related to physics category 601
realistic images of realistic physical objects, people, etc. category 61
ribbon a subcategory of Military insignia category 883
road map a subcategory of map category 283
signature most images of signatures are best stored in vector format category 154
sport sport-related images (except for logos) category 309
symbol simple arrangements of lines and shapes (e.g. warning and informational signs, road signs, arrow symbols, etc.); use icon if it looks like a desktop icon category 1,135
technology images related to technology and/or engineering, e.g. construction plans, blueprints, technical drawings of cars/planes/ships/weapons, illustrations of industrial processes, etc. (use circuit for electronic circuits and architecture for architecture blueprints, though). category 1,043
text images mainly consisting of text (but use logo for textlogos and consider using alphabet where appropriate) category 475
tartan images of (Scottish) tartans category 265
transport map a subcategory of Map images that should use vector graphics category 833
Other default (but see below) category 5

Any other parameter value xxxx not mentioned above will cause:

  1. if the subcategory "Category: Xxxx images that should use vector graphics" exists, the file is categorized therein
  2. if such a subcategory does not (yet) exist, the file will be default categorized to Other images that should use vector graphics


Pictogram voting info.svg Note This scheme might still need some work. Feel free to improve the definition of the respective category types to make them more precise and/or clearer.

You can use a user-script with the following code (the first highlighted line can be custom and additional). Simply paste it into your common.js (or other MediaWiki skin related) JavaScript page. You can also edit this (script page) per user-preferences:

var convertToSVGTypes = "geology, meteorology, road sign";importScript('User:Perhelion/fixconverttosvg.js');

Template parameters

Parameter Description Default Status
1
topic Classify image by topic other required
vectordata
vector data Specify (e.g. give a URL or Wikilink) where existing vector data can be found that may help to do the vectorization. This can be an image in a different vector format (e.g. PDF, PS or EPS) but also a similar SVG that already contains parts of the image that needs to be converted. If set, the file is automatically added to Category:Images that should use vector graphics (vector data available). empty optional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Placement: At the bottom of the page

See also

Localization

العربية | Беларуская (тарашкевіца)‎ | Български | Català | Čeština | Dansk | Deutsch | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Galego | עברית | Magyar | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Lietuvių | Македонски | മലയാളം | Plattdüütsch | Nederlands | Norsk nynorsk | Norsk bokmål | Polski | Português | Português do Brasil | Română | Русский | Slovenščina | Shqip | Српски / srpski | Svenska | ไทย | Türkçe | Українська | Tiếng Việt | 粵語 | 中文 | 中文(中国大陆)‎ | 中文(简体)‎ | 中文(繁體)‎ | 中文(新加坡)‎ |

This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Convert to SVG/layout.

To add your language to the list of languages supported by this template, please copy the code of Template:Convert to SVG/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.