Template:Translate/doc
This is a documentation subpage for Template:Translate. It contains usage information, categories, and other content that is not part of the original template page. |
This template is used on approximately 8,900 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
- Usage
- This template is used to invite participants to the translation — not for the current page, but for transcluded pages (header boxes, infoboxes etc.) — through a Translate Extension (if possible).
- Parameters
-
- pagename or 1 (required) — target pagename for translation
- label or 2 (optional) — text label for translate link; by default the UI-translated text from MediaWiki:Allmessages-filter-translate
- switch (optional) — if set to a non-empty value, the target 'pagename' will be edited directly when it is not translatable via the Translate Extension (for example, an autotranslated template containing translations inside its code, using {{LangSwitch}}; this should not be used for complex templates but simple templates containing a single message, or very few with minimalist layout)
- icon (optional) — if set to a non-empty value, display a smaller icon (with the label text shown as hint when hovering) instead of the text of the label