Template:TranslateThis/doc

From Test Wiki
Revision as of 05:25, 22 February 2026 by Peterxy12 (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<templatedata> { "description": { "en": "This template can be used to display multilingual text in user’s preferred language if available, and display a call for translation if not.", "de": "Diese Vorlage kann benutzt werden, um mehrsprachige Text in der gewählten Sprache des Benutzers zu zeigen, wenn sie verfügbar ist, sonst Übersetzung anzufragen.", "pl": "Ten szablon może być używany, by wyświetlać wielojęzyczny tekst w języku ustawień użytkownika, o ile jest dostępny, i by wyświetlać wezwanie do tłumaczenia, jeśli nie jest." }, "params": { "en": { "label": { "en": "English", "de": "Englisch", "pl": "angielski" }, "description": { "en": "The translatable text in English. Similarly “de” for German, “fr” for French, “es” for Spanish etc. Note that only the English text is required.", "de": "Die übersetzbare Text auf Englisch. Änlich „de“ für Deutsch, „fr“ für Französisch, „es“ für Spanisch usw. Nur englische Text ist erforderlich.", "pl": "Tekst do tłumaczenia po angielsku. Podobnie „pl” dla polskiego. „de” dla niemieckiego, „fr” dla francuskiego. Zauważ, że tylko tekst po angielsku jest wymagany." }, "example": "English text", "type": "line", "required": true }, "anchor": { "label": { "en": "anchor", "de": "Anker" }, "description": { "en": "Language-independent anchor for the template output. Either an anchor text, or the code of a language present to use text in that language in the anchor (e.g. “en” to create anchor from the English text, even if the template is displayed in a different language).", "de": "Sprachunabhängiger Anker für die Ausgabe der Vorlage. Entweder eine Ankertext, oder der Code einer gegebenen Sprache, um die Text dieser Sprache zu nutzen (z. B. „en“, um zu dem Anker die englische Text zu nutzen, auch wenn die Vorlage in einer anderen Sprache gezeigt wird)." }, "type": "line" }, "lang": { "label": { "en": "language", "de": "Sprache", "pl": "język" }, "description": { "en": "Language code to display the template in. This affects the chosen translation as well as the “please translate this” text. Useful in other templates and translated help pages to provide consistent output.", "de": "Code der Sprache, in der die Text gezeigt werden soll. Wird benutzt auch fürs gewählte Übersetzung und die „bitte übersetze“-Text. Praktisch in anderen Vorlagen und auf Hilfeseiten, um konsistente Ausgabe zu produzieren.", "pl": "Kod języka, w którym ma być wyświetlony tekst. To wpływa na wybór tłumaczenia jak i tekst wezwania do tłumaczenia. Przydatny w innych szablonach i tłumaczonych stronach pomocy, aby zapewnić spójne wyniki." }, "example": "en", "type": "line" } } } </templatedata>

Usage

See also

  • {{LangSwitch}} – displays text in user language similarly, but doesn’t include the call for translation if no perfectly matching translation found
  • {{Anchor}} – used in this template to provide anchor
  • {{Help translate}} – used in this template to show the call for translation, please translate it there