This page is protected against editing.

Template:Convert to SVG

From Wikimedia Commons, the free media repository
(Redirected from Template:Should be SVG)
Jump to navigation Jump to search
This image could be re-created using vector graphics as SVG files. 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 afterwards replace this template with {{vector version available|new image name}}.

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Convert to SVG/doc.

Used to tag images which should be converted to SVG.

The template automatically sets the following categories: Within the main category Category:Images for cleanup either the subcategory Category:Images that should use vector graphics or (for files of the type “JPG”) its subcategory Category:JPG images that should use vector graphics will be used; for JPG files also the tag {{BadJPEG}} will be set automatically.

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

Or use the shorthand

The following are possible values for parameter 1: [edit subpage]

Topic value Used for… Category #
architecture architecture blueprints category 523
art simple images based on artwork, or otherwise related to culture and art category 703
astronomical map a subcategory of map category 93
battle map maps of battles and war events category 175
biology images related to biology, e.g. animal/plant diagrams, human anatomy, anything biological in nature category 1,572
biogeographical map distribution & range maps of species category 1,678
chemical only for chemical structural formulae, especially skeletal formulae; use chemistry for everything else category 1,930
chemistry images related to chemistry, e.g. molecular orbitals, crystal structure, lab equipment (use chemical for structural formulae) category 1,245
circuit electronic circuit diagrams, etc. category 895
city map a subcategory of map category 361
coats of arms coats of arms category 0
demographic map demographic maps category 120
diagram diagrams (e.g. mind maps, flow charts, tree data structures, schematics) that do not fit any other subcategory category 6,195
economic map a subcategory of map category 243
economy economic charts category 65
election map maps of elections and votes category 798
family tree a subcategory of tree diagram category 107
fictional map a subcategory of map category 75
flag flags category 6,038
flag map a subcategory of map category 733
game a subcategory of sport category 95
geology images related to geology category 345
graph visual plots of data, e.g. line charts, pie and bar charts, etc. (add graphs to a more specific category like economy, math, physics, chemistry or biology where appropriate) category 6,006
health map maps of diseases category 68
historical map a subcategory of map category 1,239
history map a subcategory of map category 1,239
icon icons, which would be suitable as desktop icons for example (otherwise symbol may be better) category 3,682
incident map maps of incidents and accidents category 73
law-related map a subcategory of map category 95
license plate images of license plates category 23
linguistic map a subcategory of map category 597
locator map a subcategory of map category 10,112
logo logos, or images intended to be logos category 11,758
map geographical maps category 5,894
math mathematical content (see also should use TeX) category 2,627
military insignia military insignia category 1,363
military map a subcategory of map category 337
military related military related images category 59
musical music-related images category 71
musical notation sheet music, musical scales, images of notes, etc. category 843
old map a subcategory of map category 78
organization map maps of organizations memberships category 46
physics images related to physics category 1,282
proposed entity map a subcategory of map category 37
realistic images of realistic physical objects, people, etc. category 109
religion map a subcategory of map category 79
ribbon a subcategory of military insignia category 988
road map a subcategory of map category 341
seal seal images category 512
sign images of road signs, information and prohibitive signs category 513
signature most images of signatures are best stored in vector format category 697
simple simple images, which are to be converted with little effort category 263
sport sport-related images (except for logos) category 319
sport logo a subcategory of logo category 664
sport map a subcategory of map category 215
sports clothing a subcategory of sport category 812
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,136
tartan images of (Scottish) tartans category 186
technology images related to technology 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,693
text images mainly consisting of text in any language (but use text logo for textlogos) category 2,401
text logo a subcategory of logo category 4,128
transport map a subcategory of map category 1,377
tree diagram a subcategory of diagram category 194
Other default (but see below) category 5,011

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
 Note This scheme might still need some work. Feel free to improve the definition of the respective category types to make them more precise or clearer.

You can use a user-script with the following code (the first highlighted line is optional and can be customized). 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 = "meteorology, road sign";
importScript('User:Perhelion/fixconverttosvg.js');
If reasonable please notify the uploader(s) by placing the following code on their talk page:
{{subst:SVG/notify|Filename.ext}}

The template takes no parameters.

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

The file name should always be the same!

Localization

català  čeština  dansk  Deutsch  eesti  English  español  Esperanto  euskara  français  galego  italiano  lietuvių  magyar  Nederlands  norsk  norsk bokmål  norsk nynorsk  Plattdüütsch  português  polski  português do Brasil  română  shqip  sicilianu  slovenščina  suomi  svenska  Tiếng Việt  Türkçe  беларуская (тарашкевіца)  български  македонски  русский  српски / srpski  українська  ქართული  മലയാളം  ไทย  ភាសាខ្មែរ  한국어  日本語にほんご  ちゅうぶん  ちゅうぶん中国ちゅうごくだい陆)  ちゅうぶんしん坡)  ちゅうぶん(简体)  ちゅうぶんしげるからだ  粵語  עברית  العربية  فارسی  +/−

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.