Template:Vector version available/doc: Difference between revisions
No edit summary |
m Reverted edits by 100.40.55.77 (talk) to last revision by Achim55 Tag: Rollback |
||
(30 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
{{tsh |
|||
{{redirects|vva|NowSVG|SVG available}} |
|||
| vva |
|||
| VVA |
|||
| NowSVG |
|||
| SupersededSVG |
|||
| svg available |
|||
| SVG available |
|||
| SVG version available |
|||
}} |
|||
{{Heavily used template|edit=✔}} <!-- edit sandbox --> |
|||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> |
|||
{{TemplateBox |
{{TemplateBox |
||
|1=1 |
|1=1 |
||
|1label-en=First SVG |
|||
|1d={{LangSwitch |
|||
|1label-fr=premier SVG |
|||
|en=Name of the SVG file |
|||
|1d-en=Name of the SVG file (see [[#File name]] for explanation) |
|||
|it=nome del file SVG |
|||
| |
|1d-it=nome del file SVG |
||
|1d-de=Name der SVG-Datei (siehe Hinweis bei [[#Dateiname]]) |
|||
}} |
|||
|1d-td-en=The first SVG image, in the form "Image.svg". |
|||
|1def={{LangSwitch |
|||
|1d-td-fr=media commons de remplacement au format SVG. Format sans l’espace de nom et avec l’extension |
|||
|en=Current file name |
|||
|1def-en=Current file name, minus extension, plus <code>.svg</code>. |
|||
|de=aktueller Name |
|||
|1def-de=aktueller Name |
|||
}} |
|||
|1def-td-en=Current file name, minus extension, plus ".svg". |
|||
|1stat=suggested |
|||
|1type=wiki-file-name |
|||
|2=2 |
|2=2 |
||
|2label-en=Second SVG |
|||
|2d={{LangSwitch |
|||
|en=Name of a second SVG file |
|2d-en=Name of a second SVG file |
||
|it=nome del file SVG |
|2d-it=nome del file SVG |
||
|de=Name einer zweiten SVG-Datei |
|2d-de=Name einer zweiten SVG-Datei |
||
|2d-td-en=The second SVG image, in the form "Picture.svg". |
|||
}} |
|||
|2stat=optional- |
|2stat=optional- |
||
|2type=wiki-file-name |
|||
|3=3 |
|3=3 |
||
|3label-en=Third SVG |
|||
|3d={{LangSwitch |
|||
|en=Name of a third SVG file |
|3d-en=Name of a third SVG file |
||
|it=nome del file SVG |
|3d-it=nome del file SVG |
||
|de=Name einer dritten SVG-Datei |
|3d-de=Name einer dritten SVG-Datei |
||
|3d-td-en=The third SVG image, in the form "Graphic.svg". |
|||
}} |
|||
|3stat=optional- |
|3stat=optional- |
||
|3type=wiki-file-name |
|||
|4=quality |
|4=quality |
||
|4aliases=q/allquality/aq |
|4aliases=q/allquality/aq |
||
|4label-en=Quality |
|||
|4d="superior" / "inferior" (or abbreviation "s" / "i")<br>shortcut "q"<br>when more than one file the parameter "allquality" must be used,<br>(or the shortcut "aq") otherwise the "quality" option is ignored |
|||
|4label-fr=qualité |
|||
|4stat=optional- |
|||
|4d-en="superior" / "inferior" (or abbreviation "s" / "i")<br>shortcut "q"<br>when more than one file the parameter "allquality" must be used,<br>(or the shortcut "aq") otherwise the "quality" option is ignored |
|||
|4d-td-en=<nowiki/> |
|||
"superior" / "inferior" (or abbreviation "s" / "i") |
|||
when more than one file the parameter "allquality" must be used, otherwise the "quality" option is ignored |
|||
<nowiki/> |
|||
|4d-td-fr=indique la qualité du fichier, valeurs possibles « superior » ou « inferior » pour une qualité respectivement supérieure ou inférieure de l’alternative à ce fichier |
|||
| 4sv = s/superior/i/inferior |
|||
| 4stat = optional- |
|||
| 4type = string |
|||
|5=reason |
|5=reason |
||
|5aliases=r |
|5aliases=r |
||
|5label=Reason |
|||
|5d={{LangSwitch |
|||
|en=any text for explanation |
|5d-en=any text for explanation |
||
|de=beliebiger erklärender Text |
|5d-de=beliebiger erklärender Text |
||
}} |
|||
|5stat=optional- |
|5stat=optional- |
||
|5type=line |
|||
|6=lang |
|||
|6aliases=lang1 |
|||
|6label-en=Language |
|||
|6d-en=language code to be used for a '''multilingual''' SVG file (also: lang2, lang3 for the other files) |
|||
|6stat=optional- |
|||
|6type=string |
|||
|7=by |
|||
|7aliases=by1 |
|||
|7label-en=Creator |
|||
|7d-en=when it seems useful to display the creator of the SVG file (also: by2, by3 for the other files) |
|||
|7stat=optional- |
|||
|7type=line |
|||
|9=topic |
|||
|9aliases=t |
|||
|9label-en=Topic Code |
|||
|9d-en=when the topic should be displayed, instead of just the namespace |
|||
|9stat=optional- |
|||
|9type=string |
|||
|name={{BASEPAGENAME}} |
|name={{BASEPAGENAME}} |
||
|desc-en=Notifies about the existence of one or more vector versions (superior/equivalent/inferior) of a bitmap image |
|||
|desc={{LangSwitch |
|||
|desc-de=Zeigt an, dass eine Vektorversion vorhanden ist. |
|||
|en=Notifies about the existence of one or more vector versions (superior/equivalent/inferior) of a bitmap image |
|||
|desc-fr=Informe de l’existence d’une ou plusieurs versions (de qualité supérieure/équivalente/inférieure) d’une image matricielle. |
|||
|de=Zeigt an, dass eine Vektorversion vorhanden ist.}} |
|||
|namespace=file |
|namespace=file |
||
|usergroup=all |
|usergroup=all |
||
Line 53: | Line 101: | ||
|example= |
|example= |
||
|i18n-method=autotranslate |
|i18n-method=autotranslate |
||
|i18n-desc=For quick insert (and replace) you can use |
|i18n-desc=For quick insert (and replace) you can use a [[COM:User scripts|user-script]] (the first highlighted line could be redundant): |
||
<syntaxhighlight lang="javascript"> |
<syntaxhighlight lang="javascript"> |
||
var ns = mw.config.get('wgNamespaceNumber'), ti = mw.config.get('wgTitle'); |
var ns = mw.config.get('wgNamespaceNumber'), ti = mw.config.get('wgTitle'); |
||
Line 62: | Line 110: | ||
|seealso= |
|seealso= |
||
: {{F|Flecha tesela.svg|Z|14}}{{tl|Convert to SVG}} |
: {{F|Flecha tesela.svg|Z|14}}{{tl|Convert to SVG}} |
||
: |
: {{F|Flecha tesela.svg|Z|14}}{{tl|Superseded}} |
||
{{Use sandbox|testcase=}} |
<!-- {{Use sandbox|testcase=}} --> |
||
---- |
---- |
||
{{LangSwitch |
{{LangSwitch |
||
|en= |
|en= |
||
=== File name === |
=== 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. |
If the names of the bitmap and vector files are identical except for the file extension, the first parameter may be left empty (see {{C|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". |
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". |
||
Line 93: | Line 141: | ||
|shorthand= |
|shorthand= |
||
|relieson= |
|relieson= |
||
}} |
|||
<includeonly> |
|||
| useTemplateData = 1 |
|||
}} |
|||
<includeonly>{{Sandbox other|| |
|||
<!-- Categories below this line; interwikis at Wikidata --> |
|||
[[Category:Templates for marking as superseded]] |
[[Category:Templates for marking as superseded]] |
||
[[Category:SVG marker templates]] |
[[Category:SVG marker templates]] |
||
{{#ifeq:{{PAGENAME}}|Vector version available|[[Category:Autoreferencing templates| ]]<!-- Another file templates| --> }} |
|||
</includeonly> |
|||
}}</includeonly> |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": { |
|||
"en": "First SVG", |
|||
"fr": "premier SVG" |
|||
}, |
|||
"description": { |
|||
"en": "The first SVG image, in the form \"Image.svg\".", |
|||
"fr": "media commons de remplacement au format SVG. Format sans l’espace de nom et avec l’extension" |
|||
}, |
|||
"default": "Current file name, minus extension, plus \".svg\".", |
|||
"type": "string", |
|||
"suggested": true, |
|||
"example": { |
|||
"fr": "Image.svg" |
|||
} |
|||
}, |
|||
"2": { |
|||
"label": "Second SVG", |
|||
"description": "The second SVG image, in the form \"Picture.svg\".", |
|||
"type": "string" |
|||
}, |
|||
"3": { |
|||
"label": "Third SVG", |
|||
"description": "The third SVG image, in the form \"Graphic.svg\".", |
|||
"type": "string" |
|||
}, |
|||
"quality": { |
|||
"label": { |
|||
"en": "Quality", |
|||
"fr": "qualité" |
|||
}, |
|||
"description": { |
|||
"en": "superior/inferior", |
|||
"fr": "indique la qualité du fichier, valeurs possibles « superior » ou « inferior » pour une qualité respectivement supérieure ou inférieure de l’alternative à ce fichier" |
|||
}, |
|||
"type": "string", |
|||
"example": { |
|||
"fr": "superior" |
|||
} |
|||
}, |
|||
"reason": { |
|||
"description": "any explaining text", |
|||
"label": "Reason", |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"description": { |
|||
"en": "Notifies about the existence of one or more vector versions (superior/equivalent/inferior) of a bitmap image.", |
|||
"fr": "Informe de l’existence d’une ou plusieurs versions (de qualité supérieure/équivalente/inférieure) d’une image matricielle." |
|||
} |
|||
} |
|||
</templatedata> |
Latest revision as of 21:02, 1 February 2023
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 | Sprache | 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 | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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 Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Notifies about the existence of one or more vector versions (superior/equivalent/inferior) of a bitmap image
|
Zusätzliche Informationen
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
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
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: