| Note:
This template is used on a lot of pages. In order not to put too much load on the servers, edits should be kept to a bare minimum. Please
discuss proposed changes on
the talk page
first.
Afterwards, changes can
initially
be done at and tested with
Template:Vector version available/sandbox
: [
edit
].
- Editing a template causes
all pages that use the template to be re-rendered
. If the template is used often, this can put a lot of load on the servers since it fills up the
job queue
.
- Keep in mind that templates that are used on file description pages also
show up on other wikis
.
- This page is template-protected from editing to prevent vandalism. Only template editors and administrators can edit it. Get their attention by placing
{{Edit protected}}
at the
talk page
.
|
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
Parameter
| Description
| Default
| Status
|
---|
1
| First SVG
| Name of the SVG file (see
#File name
for explanation)
| Current file name, minus extension, plus
.svg
.
| suggested
|
2
| Second SVG
| Name of a second SVG file
| empty
| optional
|
3
| Third SVG
| Name of a third SVG file
| empty
| optional
|
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
| empty
| optional
|
reason
r
| Reason
| any text for explanation
| empty
| optional
|
lang
lang1
| Language
| language code to be used for a
multilingual
SVG file (also: lang2, lang3 for the other files)
| empty
| optional
|
by
by1
| Creator
| when it seems useful to display the creator of the SVG file (also: by2, by3 for the other files)
| empty
| optional
|
topic
t
| Topic Code
| when the topic should be displayed, instead of just the namespace
| empty
| optional
|
Template data
|
Template parameters
[
Edit template data
]
This template prefers inline formatting of parameters.
Parameter
| Description
| Type
| Status
|
---|
First SVG
| 1
| The first SVG image, in the form "Image.svg".
- Default
- Current file name, minus extension, plus ".svg".
| File
| suggested
|
---|
Second SVG
| 2
| The second SVG image, in the form "Picture.svg".
| File
| optional
|
---|
Third SVG
| 3
| The third SVG image, in the form "Graphic.svg".
| File
| optional
|
---|
Creator
| by
by1
| when it seems useful to display the creator of the SVG file (also: by2, by3 for the other files)
| Line
| optional
|
---|
Language
| lang
lang1
| language code to be used for a '''multilingual''' SVG file (also: lang2, lang3 for the other files)
| String
| optional
|
---|
Quality
| quality
q
allquality
aq
|
"superior" / "inferior" (or abbreviation "s" / "i")
when more than one file the parameter "allquality" must be used, otherwise the "quality" option is ignored
- Suggested values
s
superior
i
inferior
| String
| optional
|
---|
Reason
| reason
r
| any text for explanation
| Line
| optional
|
---|
Topic Code
| topic
t
| when the topic should be displayed, instead of just the namespace
| String
| optional
|
---|
|
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
See also
- {{Convert to SVG}}
- {{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
?
Bahasa Indonesia
?
Bahasa Melayu
?
British English
?
catala
?
?e?tina
?
dansk
?
Deutsch
?
eesti
?
English
?
espanol
?
Esperanto
?
euskara
?
francais
?
Frysk
?
galego
?
hrvatski
?
Ido
?
italiano
?
lietuvi?
?
magyar
?
Nederlands
?
norsk bokmal
?
norsk nynorsk
?
occitan
?
Plattduutsch
?
polski
?
portugues
?
portugues do Brasil
?
roman?
?
Scots
?
sicilianu
?
sloven?ina
?
sloven??ina
?
suomi
?
svenska
?
Ti?ng Vi?t
?
Turkce
?
veneto
?
Ελληνικ?
?
беларуская (тарашкев?ца)
?
български
?
македонски
?
нохчийн
?
русский
?
српски / srpski
?
татарча/tatarca
?
укра?нська
?
???????
?
???????
?
?????
?
?????
?
??????
?
???
?
韓國語
?
日本語
?
??中文
?
繁體中文
?
?????
?
???????
?
?????
?
+/?
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: