Template:Translit/Documentation: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
*<code>1</code>: Language code (see [[Module:Translit]] for currently implemented ones)
*<code>1</code>: Language code (see [[Module:Translit]] for currently implemented ones)
*<code>2</code>: Original text
*<code>2</code>: Original text
*<code>3</code>: Romanization
*<code>3</code> (optional): Romanization
*<code>hidelabel</code> (optional): Set to y or 1 or something else to hide the language name
*<code>hidelabel</code> (optional): Set to y or 1 or something else to hide the language name
*<code>meaning</code> (optional): Meaning (applied as tooltip)
*<code>meaning</code> (optional): Meaning (applied as tooltip)

Revision as of 19:43, 15 September 2024

Purpose

Similar to Template:JP but more generalized. Syntax is slightly different because meaning is a named parameter instead of a numbered parameter.

Usage

For most cases:

  • 1: Language code (see Module:Translit for currently implemented ones)
  • 2: Original text
  • 3 (optional): Romanization
  • hidelabel (optional): Set to y or 1 or something else to hide the language name
  • meaning (optional): Meaning (applied as tooltip)

For dual Simplified and Traditional Chinese:

  • 1: Language code (zh)
  • 2: Simplified text
  • 3: Traditional text
  • 4: Romanization
  • meaning (optional): Meaning (applied as tooltip)

For recommendations on what romanization scheme to use, see Guidelines:Translations.

Examples

  • {{translit|ar|عفريت|ʿifrīt}}Arabic: عفريت, romanized ʿifrīt
  • {{translit|grc|Κέρβερος|Kérberos}}Greek: Κέρβερος, romanized Kérberos
  • {{translit|he|שָּׂטָן|śāṭān}}Hebrew: שָּׂטָן, romanized śāṭān
  • {{translit|sa|मित्र|mitrá}}Sanskrit: मित्र, romanized mitrá
  • {{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