Template:Translit
Purpose
Creates formatted other-language text with romanizations.
Usage
For most cases:
1: Language code (see Module:Language/Subtags for currently implemented ones)2: Original text3(optional): Romanizationhidelabel(optional): Set to y or 1 or something else to hide the language nameinline(optional): Set to y or 1 or something else to hide the language name, the "romanized" label, and the commameaning(optional): Meaning (applied as tooltip)
For dual Simplified and Traditional Chinese:
1: Language code (zh)2: Simplified text3: Traditional text4: Romanizationmeaning(optional): Meaning (applied as tooltip)
If you need both Chinese scripts but do not want a romanization, just put two separate ones with zh-Hans and zh-Hant as the language codes.
An ltc code exists for Middle Chinese, but the regular zh, zh-Hans, and zh-Hant should be used instead with standard Hanyu Pinyin romanization unless the Middle Chinese pronunciation is specifically relevant to the article.
For recommendations on what romanization scheme to use, see Guidelines:Translations.
While called Translit, this can also be used for languages natively in the Latin script, in which case it will automatically italicize the text. To disable the automatic italicization for whatever reason, noitalics can be set to y or 1 or something else. If doing Latin-script text in this template, do not include the romanization argument.
Examples
{{translit|ar|عفريت|ʿifrīt}}→ Arabic: عفريت, romanized ʿifrīt{{translit|sa|मित्र|mitra|inline=y}}→ मित्र mitra{{translit|zh-Hans|真·女神转生|Zhēn nǚshén zhuǎnshēng}}→ Simplified Chinese: 真·女神转生, romanized Zhēn nǚshén zhuǎnshēng{{translit|zh|真·女神转生|真・女神轉生|Zhēn nǚshén zhuǎnshēng}}→ Simplified Chinese: 真·女神转生, Traditional Chinese: 真・女神轉生, romanized Zhēn nǚshén zhuǎnshēng{{translit|zh-Hans|真·女神转生|Zhēn nǚshén zhuǎnshēng|hidelabel=y|meaning=True Goddess Reincarnation}}→ 真·女神转生True Goddess Reincarnation, romanized Zhēn nǚshén zhuǎnshēng{{translit|zh|真·女神转生|真・女神轉生|Zhēn nǚshén zhuǎnshēng|meaning=True Goddess Reincarnation}}→ Simplified Chinese: 真·女神转生True Goddess Reincarnation, Traditional Chinese: 真・女神轉生True Goddess Reincarnation, romanized Zhēn nǚshén zhuǎnshēng