Template:Vector version available

From "PTTLink Wiki"
Jump to navigation Jump to search
Gnome-x-office-drawing.svg [[[:File:Example.svg]] is a vector version of this file.

Error: No SVG image by that name exists. Please make sure to use the correct format: {{Vector version available|new image name}}.

] Error: {{Lang}}: text has italic markup (help)

File:Vector version available → File:Example.svg

For more information, see Help:SVG.

In other languages

Alemannisch  British English  català  Bahasa Indonesia  dansk  čeština  Deutsch  Bahasa Melayu  sicilianu  italiano  русский  eesti  română  Ido  Esperanto  беларуская (тарашкевіца)  Scots  Tiếng Việt  português  euskara  English  magyar  vèneto  Nederlands  português do Brasil  Türkçe  slovenščina  polski  galego  Ελληνικά  lietuvių  slovenčina  македонски  norsk bokmål  español  norsk  svenska  hrvatski  Frysk  français  български  suomi  нохчийн  Plattdüütsch  occitan  norsk nynorsk  српски / srpski  татарча/tatarça  українська  ქართული  հայերեն  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(中国大陆)  中文(台灣)  中文(新加坡)  中文(简体)  中文(繁體)  中文(马来西亚)  עברית  العربية  فارسی  +/−

Template documentationview · edit · history · purge ]
This message box is using an invalid "type=query" parameter and needs fixing.

Notifies about the existence of one or more vector versions (superior/equivalent/inferior) of a bitmap image

The template automatically sets the following categories: Vector version available

Usage

{{Vector version available |1= }}

When first parameter is absent it defaults to the name of the file the template is placed on, with the extension changed to ".svg". See ➔ File name

Template parameters

ParameterDescriptionDefaultStatus
1First SVGName of the SVG file (see #File name for explanation)Current file name, minus extension, plus .svg.suggested
2Second SVGName of a second SVG fileemptyoptional
3Third SVGName of a third SVG fileemptyoptional
quality
q
allquality
aq
Quality"superior" / "inferior" (or abbreviation "s" / "i")
shortcut "q"
when more than one file the parameter "allquality" must be used,
(or the shortcut "aq") otherwise the "quality" option is ignored
emptyoptional
reason
r
Reasonany text for explanationemptyoptional
lang
lang1
Languagelanguage code to be used for a multilingual SVG file (also: lang2, lang3 for the other files)emptyoptional
by
by1
Creatorwhen it seems useful to display the creator of the SVG file (also: by2, by3 for the other files)emptyoptional
topic
t
Topic Codewhen the topic should be displayed, instead of just the namespaceemptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Unexpected property "params.quality.suggestedvalues".

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

⧼Seealso⧽

14px{{Convert to SVG}}
14px{{Superseded}}

File name

If the names of the bitmap and vector files are identical except for the file extension, the first parameter may be left empty (see Autoreferencing templates).

Each parameter may, but does not need to, include the "File:" or "Image:" namespace prefix and/or the ".svg" file extension. Any other recognized extension will be replaced by ".svg".

The template will give an error message and add the maintenance category Vector version available/error if any of the specified files does not exist.

see also

Localization

Alemannisch  British English  català  Bahasa Indonesia  dansk  čeština  Deutsch  Bahasa Melayu  sicilianu  italiano  русский  eesti  română  Ido  Esperanto  беларуская (тарашкевіца)  Scots  Tiếng Việt  português  euskara  English  magyar  vèneto  Nederlands  português do Brasil  Türkçe  slovenščina  polski  galego  Ελληνικά  lietuvių  slovenčina  македонски  norsk bokmål  español  norsk  svenska  hrvatski  Frysk  français  български  suomi  нохчийн  Plattdüütsch  occitan  norsk nynorsk  српски / srpski  татарча/tatarça  українська  ქართული  հայերեն  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  中文  中文(中国大陆)  中文(台灣)  中文(新加坡)  中文(简体)  中文(繁體)  中文(马来西亚)  עברית  العربية  فارسی  +/−

This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Vector version available/layout.

To add your language to the list of languages supported by this template, please copy the code of Template:Vector version available/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.


For quick insert (and replace) you can use a user-script (the first highlighted line could be redundant):

var ns = mw.config.get('wgNamespaceNumber'), ti = mw.config.get('wgTitle');
if (ns === 14 || (ns === 6 && !/SVG/i.test(ti.slice(-3)))
    importScript('User:Perhelion/fixconverttosvg.js'); // Automatic CONVERT-TO-SVG tags: