ผลต่างระหว่างรุ่นของ "แม่แบบ: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

Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

แม่แบบ {{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}}m
  • {{IPA link|ɡb}}ɡb

พารามิเตอร์ที่สอง: เปลี่ยนรายการของวิกิลิงก์

ลิงก์เสียง

|audio=yes เพิ่มลิงก์ไฟล์เสียง:

ถ้าค่าใน |audio= ไม่ได้เป็น "yes", "y", "true", ฯลฯ ตัวลิงก์จะถือเป็นชื่อไฟล์เสียง:

  • {{IPA link|ɽ|audio=Retroflex flaps.ogg}}ɽ (listen)

ถ้าไฟล์เสียงไม่ได้ระบุใน Module:IPA symbol/data ลิงก์จะไม่ปรากฏ:

  • {{IPA link|s̬|audio=yes}}

ข้อผิดพลาด

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 symbol1

IPA symbol whose article to link to

ตัวอย่าง
ʉː
สตริงจำเป็น
Display text2

Text to show instead of the IPA symbol

สตริงเลือกได้
Audioaudio

Adds a link to sound if available

ตัวอย่าง
yes
สตริงเลือกได้
Error texterrortext

ไม่มีคำอธิบาย

ตัวอย่าง
blank
สตริงเลือกได้