Jump to content

Template:Th/doc

From The Petit Planet Wiki
Revision as of 12:48, 2 September 2026 by ReisuDesign (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page for Th.
It contains usage information, categories, and other content not part of the original template page.
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

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