Template:IPAlink

Da Wikipedia
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

The template {{IPA link}} takes an IPA symbol and turns it into a link to the respective article which discusses the sound the symbol represents.

Versions with defined brackets are also available:

Another version is {{IPAplink}}, which encloses the link in neither brackets nor <span class="IPA">...</span>, which is useful if the link is already inside {{IPA}}, avoiding superfluous nesting of the same class.

Usage[muda l codesc]

First parameter (required): any IPA symbol.

  • {{IPAlink|m}}Errore Lua in package.lua alla linea 80: module 'Module:IPA symbol/data' not found.
  • {{IPAlink|ɡb}}Errore Lua in package.lua alla linea 80: module 'Module:IPA symbol/data' not found.

Second parameter: changes the label of the wikilink.

  • {{IPAlink|m|Any text}}Errore Lua in package.lua alla linea 80: module 'Module:IPA symbol/data' not found.

Audio link

|audio=yes adds a link to the corresponding audio file:

  • {{IPAlink|ɽ|audio=yes}}Errore Lua in package.lua alla linea 80: module 'Module:IPA symbol/data' not found.

If the value in |audio= is not "yes", "y", "true", etc., it is treated as the name of an audio file:

  • {{IPAlink|ɽ|audio=Retroflex flaps.ogg}}Errore Lua in package.lua alla linea 80: module 'Module:IPA symbol/data' not found.

If the audio file is not specified at Module:IPA symbol/data, the link will not appear:

  • {{IPAlink|s̬|audio=yes}}Errore Lua in package.lua alla linea 80: module 'Module:IPA symbol/data' not found.

Errors

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.

  • {{IPAlink|xyz}}Errore Lua in package.lua alla linea 80: module 'Module:IPA symbol/data' not found.

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.

  • {{IPAlink|xyz|errortext=Custom error message}}Errore Lua in package.lua alla linea 80: module 'Module:IPA symbol/data' not found.
  • {{IPAlink|xyz|errortext=blank}}Errore Lua in package.lua alla linea 80: module 'Module:IPA symbol/data' not found.

Template:IPA templates

Template data[muda l codesc]

Template:Template data header

TemplateData

Nessuna descrizione.

Parametri template

ParametroDescrizioneTipoStato
IPA symbol1

IPA symbol whose article to link to

Esempio
ʉː
Stringaobbligatorio
Display text2

Text to show instead of the IPA symbol

Stringafacoltativo
Audioaudio

Adds a link to sound if available

Esempio
yes
Stringafacoltativo
Error texterrortext

nessuna descrizione

Esempio
blank
Stringafacoltativo