แม่แบบ:Wikt-lang
| มีการใช้แม่แบบนี้ในหลายพันหน้าและการแก้ไขอาจทำให้เกิดผลกระทบหรือสังเกตเห็นได้ ควรทดสอบการเปลี่ยนแปลงในกระบะทราย หรือหน้าทดสอบ หรือในหน้าย่อยผู้ใช้ของคุณเอง อนึ่ง อภิปรายเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปรายก่อนที่จะนำไปใช้ |
| แม่แบบนี้ใช้ลูอา |
| แม่แบบภาษา |
|---|
| ชื่อภาษา (ISO 639) |
|
| ลิงก์ระหว่างวิกิ |
| ข้อความภาษาต่างชาติ |
|
| อื่น ๆ |
|
แม่แบบ:Wikt-lang กำหนดรายการวิกิพจนานุกรม ที่ถูกต้องโดยอัตโนมัติโดยการลบตัวเอียงหรือตัวหนา และลบหรือเปลี่ยนเครื่องหมายกำกับเสียงและตัวอักษรที่ไม่ได้ใช้ในชื่อรายการในวิกิพจนานุกรม
It also adds italics for languages that use the Latin alphabet (see MOS:FOREIGNITALIC). Italics cannot be turned on for languages that use a non-Latin script, but they can be turned off by using the parameter |i=-. This is useful in tables, where italics are often unnecessary.
The template will also link to the Wiktionary Reconstruction: namespace, where entries on reconstructed languages are placed, or to the Appendix: namespace, where some constructed languages have their entries (such as Lojban), if there is data for them in the module.
วิธีใช้งาน
[แก้]This template takes a language code and one or two words, and generates a link to the correct section of the corresponding Wiktionary entry. If two words are provided, it is like a piped link: the first word is the entry name, while the second serves as link text.
{{Wikt-lang|<lang code>|<Wiktionary entry>|<Text displayed>|i}}
พารามิเตอร์
[แก้]| Parameter | Description |
|---|---|
| 1 | ISO 639 language code (2 or 3 letters) representing which language the text is in. Only tags consisting of a language subtag, or a language subtag–private use subtag combination that represents a language that hasn't been assigned a language subtag, such as cel-x-proto (Proto-Celtic), are supported. Script, region, or variant subtags are not supported, as it is difficult to support both them and Wiktionary language tags that contain hyphens (such as ine-pro above). |
| 2 | Entry to link to on Wiktionary. |
| 3 | Optional. Text displayed, if different from the term being linked to. |
| italic | Optional. Use |italic=no or |italic=- to disable italicization of the text. |
ข้อมูลแม่แบบ
[แก้]TemplateData documentation used by VisualEditor and other tools | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
ไม่มีคำอธิบาย
| |||||||||||||||||||||||||
Examples
[แก้]ช่วยเหลือ
[แก้]If you try to use this template and get an error message, but can't figure out how to fix it, please go to Module talk:Language and post a message about it.