Template:IPA link

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Template:Documentation

Template:High-use Template:Lua The template Template:Tl 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 Template:Tl, which encloses the link in neither brackets nor Template:Tag, which is useful if the link is already inside Template:Tl, avoiding superfluous nesting of the same class.

Usage

[edit]

First parameter (required): any IPA symbol.

Second parameter: changes the label of the wikilink.

Audio link

Template:Para adds a link to the corresponding audio file:

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

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

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.

The error message can be customized in Template:Para. This cancels the addition of the error category. If set to blank, the message will not appear at all.

Template:IPA templates

Template data

[edit]

Template:Template data header Template:Collapse top

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
IPA symbol1

IPA symbol whose article to link to

Example
ʉː
Stringrequired
Display text2

Text to show instead of the IPA symbol

Stringoptional
Audioaudio

Adds a link to sound if available

Example
yes
Stringoptional
Error texterrortext

no description

Example
blank
Stringoptional

Template:Collapse bottom