แม่แบบ:Langx/doc

== การใช้งาน**
This language template identifies non-English text. Both an IETF language tag and the non-English term or phrase are the only required parameters. The text is formatted according to recommendations in Wikipedia:Manual of Style/Text formatting#Foreign terms; italics for languages that use the Latin alphabet, normal for others.
The template should generally be placed after the English translation of the foreign term or phrase.
The parameter no prevents the language name from being linked.
The parameter translit allows for a romanization to be identified. This parameter is not supported by  templates for languages that are already written in Latin script.
The parameter lit enables a literal translation (in English) to be given.

**พารามิเตอร์**

**หมายเหตุ**

**ข้อมูลแม่แบบ**
{
	"params": {
		"1": {
			"label": "Language tag",
			"description": "แท็กภาษา IETF ที่ถูกต้องเพื่อระบุภาษาของข้อความที่ไม่ใช่ภาษาไทย",
			"type": "string",
			"required": true,
			"example": "en, es, fr, pt"
		},
		"2": {
			"label": "Text",
			"description": "ข้อความที่จะแสดงที่ไม่ใช่ภาษาไทย",
			"type": "string",
			"required": true
		},
		"links": {
			"label": "Display link",
			"description": "ตั้งค่าเป็น 'no' เพื่อปิดการใช้งานลิงก์ที่ไปยังบทความของภาษา",
			"type": "boolean",
			"aliases": 
				"link"
			
		},
		"4": {
			"label": "Literal translation",
			"description": "The literal translation of the foreign text.",
			"type": "string",
			"aliases": 
				"lit",
				"translation"
			
		},
		"3": {
			"label": "Transliteration",
			"description": "The transliteration of the foreign text, for languages that do not use the Latin alphabet. This field is ignored for languages that do use the Latin alphabet.",
			"type": "string",
			"aliases": 
				"translit"
			
		},
		"label": {
			"label": "Language label",
			"description": "If 'none', suppresses language link and label. Other options may be available depending on the language.",
			"example": "none",
			"type": "line"
		},
		"rtl": {
			"label": "Right-to-left",
			"description": "Toggle right-to-left view for the foreign text.",
			"type": "boolean",
			"example": "yes",
			"default": "no"
		},
		"italic": {
			"label": "Italicize",
			"description": "Toggle italicization for the foreign text.",
			"type": "boolean",
			"default": "yes",
			"example": "no",
			"aliases": 
				"italics",
				"i"
			
		},
		"size": {
			"label": "Font-size",
			"description": "กำหนดขนาดตัวอักษรให้กับข้อความต่างประเทศ",
			"example": "120%, 1.2em"
		}
	},
	"description": "บ่งบอกให้ผู้อ่านทราบถึงรูปแบบดั้งเดิมของคำหรือวลีในภาษาต่างประเทศ",
	"paramOrder": 
		"1",
		"2",
		"3",
		"4",
		"links",
		"label",
		"rtl",
		"italic",
		"size"
	
}

**ตัวอย่าง**
The following examples show translations from German.
Edit- Weimar is located in the federal state of Thuringia (Thüringen).- The Seafarers of Catan (Die Seefahrer von Catan) is an expansion of the board game The Settlers of Catan.- Albert the Bear (links=no)
*All Quiet on the Western Front (lit=In the West Nothing New) is a novel by Erich Maria Remarque.
Resulting text- Weimar is located in the federal state of Thuringia (Thüringen).- The Seafarers of Catan (Die Seefahrer von Catan) is an expansion of the board game The Settlers of Catan.- Albert the Bear (links=no)- All Quiet on the Western Front (lit=In the West Nothing New) is a novel by Erich Maria Remarque.

**หมวดหมู่ติดตาม**
 ข้อผิดพลาดแม่แบบ Lang และ lang-xx- รหัส Lang และ lang-xx เลื่อนระดับเป็น ISO 639-1- Lang และ lang-xx ใช้รหัส ISO 639 ที่เลิกใช้แล้ว
TODO: (2024-09-22) rename these categories

**ดูเพิ่ม**
 crh – Supports Latin, Cyrillic, and Arabic Crimean Tatar text- Lang- Language with name/for- รายชื่อรหัสภาษา ISO 639-1 (รหัสภาษา)- IPA