Jump to content

Template:Th

From The Petit Planet Wiki
Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Lang, a script written in Lua.

This template is a shorthand for formatting Thai text by using {{Lang|selective = 1|mini = 1}} as a base.

Syntax

[edit source]

All fields are optional except the Thai text.
{{Th|Thai text|rm = Romanization of the Thai text|tl = Translation of the Thai text|lit = Literal Translation of the Thai Text}}

Examples

[edit source]

{{Th|สวัสดีครับ|rm = sawasdee krap|tl = Hello|lit = Hello (from masculine user)}} yields:
สวัสดีครับ sawasdee krap, "Hello," lit. "Hello (from masculine user)"

Template Data

[edit source]

Template for formatting Thai

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Thai texttx 1

Thai text to be formatted

Stringrequired
Romanizationrm 2

Romanization of the Thai text

Stringoptional
Translationtl 3

Translation of the Thai text

Stringoptional
Literal Translationlit 4

Literal translation of the Thai text

Stringoptional