Template:Tu

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Tu/doc.

Translation unit.

Usage

{{tu |q= |lang= |langtag= }}

This template is to keep track of CC0 translations for diagram labels ("translation unit"). Use a separate template for each translation unit.

The template should display a label used in the original diagram (usually the English label), and it should show a translation for that label in the Wiki's current interface language if that translation is available.

To make the translations work:

  • If a translation unit has a Wikidata Q-item number, please add it. Wikidata has already translated many Q-items, and this template with try to access those translations.
  • If Wikidata does not have a label for the Q-item in your language, please go to Wikidata and add a label. That will improve Wikidata and this file at the same time. All contributions at Wikidata are CC0 translations (that is, no copyright claims).
  • If a translation is not present in your language, please add one by adding the appropriate langtag argument. Please add only CC0 translations.

At some point in the future, someone may come along and add these translations to the file.

Hyphenated langtags do not work (cannot use zh-Hans or sr-Latn or en-US). Hyphenated PAGELANGUAGE will not work (your page language is en). Workaround? What does {{LangSwitch}} do? Skip? The user user's preferred language is {{int:Lang}}en, but can that work with page cacheing? Cache hit depends on user language?

Template parameters

ParameterDescriptionDefaultStatus
qQ-item numberWikidata Q-item for the labelnoneoptional
langimage languagedefault language of the imageenoptional
langtag
en
de
fr
languageCC0 translation in language langtag.Wikidata label for langtagoptional

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: no user group specified

Examples

{{tu|q=Q48297}}

renders as:

(?)
no translation

{{tu|q=Q48297|lang=de|de=Parabel}}

renders as:

(?)
no translation
(?) ≅ parabola (Q48297)
parabola (Q48297)
Parabola ≅ parabola (Q48297)
Parabola
Parabel ≅ Parabel (Q48297)
parabola (Q48297)