Template:Th
Appearance
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Thai text | tx 1 | Thai text to be formatted | String | required |
| Romanization | rm 2 | Romanization of the Thai text | String | optional |
| Translation | tl 3 | Translation of the Thai text | String | optional |
| Literal Translation | lit 4 | Literal translation of the Thai text | String | optional |