Template:Infobox IPA/doc

Usage
This template can be used to add an infobox for a phonetic sound.

This infobox can be used to describe a phonetic sound, both by its name and its IPA symbol. Additional information can be added, like the X-SAMPA letters and a graphic image file.

In general, the descriptive name corresponds with the article name. The infobox is then placed on that article page.

Parameters
Basically two parameters are required to produce a complete infobox. The IPA number defines the article name and the default soundfile name. Decimals are decimal character references, also known as "Entity", to define the symbol in HTML:

Up to four decimal values can be entered, to compose the symbol:


 * ipa symbol = ʎ̥˔
 * ipa number = 157 402A 429
 * decimal1  = 654
 * decimal2  = 805
 * decimal3  = 724
 * decimal4  =
 * imagefile = Lateral fricatives.png

Adding more information
Overwriting:
 * x-sampa     = X-SAMPA symbol by keyboard
 * kirshenbaum = Kirshenbaum symbol by keyboard
 * note1 label = (Optional label for first note)
 * note1       = (Any text shown as a note, near the header)
 * note2 label  = (Optional label for second note)
 * note2       = (Any text shown as a note, below)
 * above       = (header by ipa symbol (IPAsym) overwritten)
 * ipa symbol  = (big symbol by decimal numbers overwritten)
 * unicode     = (unicode code number by decimal overwritten)
 * soundfile   = (overwrites any soundfile name by IPAsym (ipa number))

Image
Image:
 * imagefile   =
 * imagecaption =
 * imagesize   =

Soundfile
First, the template tries to determine the default soundfile name by using the sound name (as determined by the IPA number, or IPA symbol):
 * generates soundfile: . If this file exists, the soundbox is shown. Otherwise, no soundbox is shown at all.

The default soundfile name can be overwritten by using the parameter Then, if this file exists, the soundbox shows with that file.
 * soundfile   = anyfilename.ogg

Notes: The template uses IPA soundbox to produce the soundbox. Checking whether a file exists is "expensive" for the servers. Therefor the template only checks the existence once, if at all.

Deprecated parameters
The next parameters are deprecated. They can still be used, and may be present in articles.

Old parameters are treated as input for new ones. old       => new parameter ipa-number => ipa number ipa-text  => ipa symbol ipa-image => imagefile decimal   => decimal1 xsampa    => x-sampa sound     => soundfile