Template:Translate

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Translate
This SVG file contains embedded text that can be translated into your language, using an SVG supportive editor (like XML or text). For more information see: About translating SVG files.
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Translate/doc.

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:

Usage

{{Translate}}

Template parameters

ParameterDescriptionDefaultStatus
1type of image (e.g. 'flag', 'icon', ... )emptyoptional
switchany value if the SVG is designed for usage of internal translation using the <switch> tag; omit otherwise.emptyoptional
Template data
<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

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 [[Commons:Translation_possible/Learn_more|link to translation manual]].

Template parameters

ParameterDescriptionTypeStatus
1

type of image (e.g. 'flag', 'icon', ... )

Unknownoptional
switch

any value if the SVG is designed for usage of internal translation using the <code>&lt;switch&gt;</code> tag; omit otherwise.

Unknownoptional

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

See also

Localization

العربية | Asturianu | Беларуская (тарашкевіца)‎ | বাংলা | Bosanski | Català | Čeština | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Galego | עברית | Hrvatski | Magyar | Հայերեն | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Ripoarisch | Lietuvių | Македонски | മലയാളം | Bahasa Melayu | Plattdüütsch | Nederlands | Norsk nynorsk | Polski | Piemontèis | Português | Русский | Slovenščina | Shqip | Српски / srpski | Svenska | Türkçe | Українська | Tiếng Việt | 中文 | 中文(繁體)‎ | +/−

This template makes use of {{Autotranslate}} and the translate extension.