Template:t/documentation

Use this template in the Translations section to format a translation of an English entry.

There are several translation templates:
 * t is the default, and is the one that human editors should use most when adding a translation.
 * t-check marks translations which need attention.
 * t+ and t+check are the same as t and t-check, respectively, except that they add a superscript link to the corresponding entry on the foreign-language Wiktionary. (For example, fr has a link to fr:le.) Various automated tools will change t to t+ or t-check to t+check if the translation has an existing entry on the foreign-language Wiktionary. You can also do this manually, if you like, if you know that the entry exists.
 * no equivalent translation when a language has no corresponding term and only an unidiomatic translation is provided. However, if it is the sole commonly used translation in that language, then one of the above templates should be used instead.
 * no attested translation when no term which would pass WT:CFI exists in the language. Most commonly used for concepts which would be foreign to speakers of the language, who would have to employ code-switching to discuss the term. If a term is unadapted from the source language but nevertheless would pass WT:CFI, then one of the above templates should be used instead.
 * not used when a language lacks the term. Most commonly used for grammatical words absent in other languages such as the, though not limited to such.
 * t-needed to request a missing translation.
 * tt, tt+, tt-check and tt+check are logically equivalent to t, t+, t-check and t+check (respectively), but only work inside of multitrans. multitrans is able to achieve major reductions in memory usage to help combat ongoing issues with Lua memory errors, but requires these special templates in order to work properly.

The implementation of these templates is performed by Module:translations.

Parameters

 * 1
 * Language code. See Languages.


 * 2
 * Entry name of the translated word. This supports all the features that does: diacritics will be removed automatically from words in certain languages, embedded wikilinks will be processed properly, and the script and transliteration will be handled automatically if not provided.


 * 3, 4, 5, &hellip; (all optional)
 * Gender/number specification(s), using the codes provided by Module:gender and number; If multiple codes are used (separated by a "|"), they will be displayed in the order given.


 * sc
 * Specifies a script code, see Scripts. This is only needed if the script used in the translation is not one of the normal scripts of the language, or if script detection fails to detect the script correctly.


 * tr
 * Specifies the transliteration into roman (Latin) script, as also shown in the example below. A transliteration may be automatically generated for certain languages, if none was provided. Use - if you don't want a transliteration to be automatically generated (you shouldn't really ever do this in an entry).


 * alt
 * Specifies an alternate form of the word, not the pagename, to be displayed.


 * lit
 * Adds a literal translation for the term.


 * id
 * Links to a tag on the target page.

Examples
Some examples for :


 * Arabic: فَرَاشَة
 * Bengali: প্রজাপতি
 * Dhuwal:
 * Javanese:
 * Latin: pāpiliō
 * Russian:
 * Serbo-Croatian:
 * Cyrillic: ле̏птӣр
 * Latin: lȅptīr
 * Tamil:
 * Yoruba: labalábá


 * Arabic: فَرَاشَة
 * Bengali: প্রজাপতি
 * Dhuwal:
 * Javanese:
 * Latin: pāpiliō
 * Russian:
 * Serbo-Croatian:
 * Cyrillic: ле̏птӣр
 * Latin: lȅptīr
 * Tamil:
 * Yoruba: labalábá

Template Data
{	"params": { "1": {			"label": "Language", "description": "Wiktionary language code for the language of translation", "example": "\"fr\"; \"cmn\"", "type": "line", "required": true },		"2": {			"label": "Term", "description": "The word or phrase being linked to, that translates the word", "example": "情話", "type": "line", "required": true },		"sc": { "label": "Script code", "description": "Specifies a Wiktionary script code. This is only needed if the script used in the translation is not one of the normal scripts of the language, or if script detection fails to detect the script correctly.", "example": "Hani", "type": "line" },		"tr": { "label": "Transliteration", "description": "Specifies the transliteration into Latin script, as also shown in the example below. A transliteration may be automatically generated for certain languages, if none was provided.", "type": "line" },		"alt": { "label": "Alternate term displayed", "description": "Specifies an alternate form of the word, not the pagename, to be displayed.", "example": "likes", "type": "line" },		"lit": { "label": "Literally", "description": "A literal translation for the term", "example": "alcohol store", "type": "string" },		"id": { "label": "Sense ID", "description": "Links to a tag on the target page.", "type": "line" }	},	"description": "Links a translation; meant to be used in between and .", "format": "inline" }