Template:Translate
This SVG file contains embedded text that can be translated into your language, using any capable SVG editor, text editor or the SVG Translate tool. For more information see: About translating SVG files. |
Since SVG usually stores such information as plain text, these captions can easily be translated and a new SVG image uploaded, translated into a new language. You may add this template to pages of SVG images which contain embedded text or attached captions. This template will display a link to translation manual.
The template automatically sets the following categories:
- Category:Translation possible - SVG
- Category:Translation possible - SVG (switch) (if parameter switch contains any value)
- Category:Translation possible - to check (if the file is not SVG)
Usage
{{Translate}}
Template parameters
- 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.
Wikipedia's help about TemplateData • Commons-specific information
Since SVG usually stores such information as plain text, these captions can easily be translated and a new SVG image uploaded, translated into a new language. You may add this template to pages of SVG images which contain embedded text or attached captions. This template will display a link to translation manual (https://commons.wikimedia.org/wiki/Commons:Translation_possible/Learn_more).
Parameter | Description | Type | Status | |
---|---|---|---|---|
style | style | display style options | Line | optional |
switch | switch | Give it any value if the SVG is designed for usage of internal translation using the <switch> tag; omit otherwise. | Line | 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
Example
{{Translate|switch=yes}}
renders as:
This file is translated using SVG <switch> elements. All translations are stored in the same file! Learn more.
To embed this file in your language (if available) use the To translate the text into your language, you can use the SVG Translate tool. Alternatively, you can download the file to your computer, add your translations using whatever software you're familiar with, and re-upload it with the same name. You will find help in Graphics Lab if you're not sure how to do this. |
⧼Seealso⧽
{{Convert to international}}
{{Path text SVG}}
{{Igen/emb}}
– shorter form for usage within {{Igen}}{{Multilingual Gallery}}
Localization
English ∙
This template makes use of {{Autotranslate}} and the translate extension. The layout of the template can be found under Template:Translate/layout.