แม่แบบ:IPAslink

จากวิกิพีเดีย สารานุกรมเสรี
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.

การใช้งาน[แก้]

พารามิเตอร์แรก (จำเป็น): สัญลักษณ์สัทอักษรสากล

  • {{IPAslink|m}}/m/
  • {{IPAslink|ɡb}}/ɡb/

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

ลิงก์เสียง

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

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

  • {{IPAslink|ɽ|audio=Retroflex flaps.ogg}}/ɽ/ (listen)

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

  • {{IPAslink|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.

  • {{IPAslink|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.

  • {{IPAslink|xyz|errortext=Custom error message}} → Custom error message
  • {{IPAslink|xyz|errortext=blank}}

ข้อมูลแม่แบบ[แก้]

ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ

ข้อมูลแม่แบบสำหรับ IPAslink (ยังไม่มีการตรวจสอบ)

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
สตริงเลือกได้