ผลต่างระหว่างรุ่นของ "แม่แบบ:IPA link"
Somsak Ung (คุย | ส่วนร่วม) หน้าใหม่: <includeonly>{{#invoke:IPA symbol|link|symbol={{{1|}}}|text={{{2|}}}|audio={{{audio|}}}|errortext={{{errortext|}}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
(ไม่แตกต่าง)
|
รุ่นแก้ไขเมื่อ 14:34, 3 ตุลาคม 2562
มีการใช้แม่แบบนี้หลายพัน หน้าและการแก้ไขอาจทำให้เกิดผลกระทบหรือสังเกตเห็นได้ ควรทดสอบการเปลี่ยนแปลงในกระบะทราย หรือหน้าทดสอบ หรือในหน้าย่อยผู้ใช้ของคุณเองนอกจากนี้คุณยังสามารถพูดคุยเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปราย ก่อนที่จะนำไปใช้ |
แม่แบบนี้ใช้ลูอา |
แม่แบบ {{IPA link}} ใช้สัญลักษณ์สัทอักษรสากลและเปลี่ยนไปเป็นลิงก์ไปยังบทความที่เกี่ยวข้อง ซึ่งกล่าวถึงตัวแทนสัญลักษณ์ของเสียง
รุ่นที่มีวงเล็บจำเพาะด้ปรากฏให้ใช้งาน:
- สำหรับการแสดงรูปทางสัทศาสตร์ {{IPAblink}} ครอบลิงก์ในวงเล็บเหลี่ยม: [a]
- สำหรับการแสดงรูปหน่วยเสียง {{IPAslink}} ครอบลิงก์ในเครื่องหมายทับ: /a/
- สำหรับการแสดงรูปสะกดคำ {{IPAalink}} ครอบลิงก์ในวงเล็บมุม: แม่แบบ:IPAalink
Another version is {{IPAplink}}, which encloses the link in neither brackets nor <span class="IPA" lang="und-fonipa">...</span>
, which is useful if the link is already inside {{IPA}}, avoiding superfluous nesting of the same class.
การใช้งาน
พารามิเตอร์แรก (จำเป็น): สัญลักษณ์สัทอักษรสากล
พารามิเตอร์ที่สอง: เปลี่ยนรายการของวิกิลิงก์
{{IPA link|m|ข้อความที่ต้องการ}}
→ ข้อความที่ต้องการ
ลิงก์เสียง
|audio=yes
เพิ่มลิงก์ไฟล์เสียง:
ถ้าค่าใน |audio=
ไม่ได้เป็น "yes", "y", "true", ฯลฯ ตัวลิงก์จะถือเป็นชื่อไฟล์เสียง:
ถ้าไฟล์เสียงไม่ได้ระบุใน Module:IPA symbol/data ลิงก์จะไม่ปรากฏ:
{{IPA link|s̬|audio=yes}}
→ s̬
ข้อผิดพลาด
If the IPA symbol is not defined at Module:IPA symbol/data, then an error message is returned and the page will be categorized into Category:International Phonetic Alphabet pages needing attention.
{{IPA link|xyz}}
→ Error using {{IPA symbol}}: "xyz" not found in list
The error message can be customized in |errortext=
. This cancels the addition of the error category. If set to blank
, the message will not appear at all.
{{IPA link|xyz|errortext=Custom error message}}
→ Custom error message{{IPA link|xyz|errortext=blank}}
→
ข้อมูลแม่แบบ
ข้อมูลแม่แบบสำหรับ IPA link (ยังไม่มีการตรวจสอบ)
TemplateData
| |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ไม่มีคำอธิบาย
|
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:IPA link/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |