This template produces a standard box to start a sound file. It has some extra features to help linking to a phonetic sound file. Also, there are options to format possible error messages and to alter the layout of the box. Basic examples:
{{IPA soundbox|ə}}
→ {{IPA soundbox||χ|Voiceless_uvular_fricative.ogg}}
→ The box is created in three steps:
Step 1. Determine the soundfile name
ipa symbol=p
→ soundfile=bilabial click.ogg
→ Step 2. Check if the soundfile exists This check may prevent red links and (undesired) repeated checks
Step 3. Create the standard browser soundbox on the page, using [[File:soundfile]] Here the information is put together, optional settings such as size are used, and the result is soundbox.
{{IPA soundbox|p|size=60px}}
→checkexist=no
: skip (expensive) check on file existence. Default=yes (do the check).showicon=no
: show info icon ("noicon" in basic)size=50px
size (in px: default =250px, minimum is ~40px) Basic: width.style
: any style (CSS format) to be used, e.g. style=background:yellow;
{{IPA soundbox|| ipa symbol=m| size=120px| style=border:1px solid red; background:yellow;}}
→
errortext=something is wrong
: Show alternate text when errorerrortext=
: blank, no output at all (no showbox)Example of check file once:
checkexist=no
.{{IPA soundbox <!-- GENERAL --> | ipa symbol = | style = | errortext = <!-- ABOVE --> | show box above= | IPAsym name = | showsymbol = | line-height = <!-- PLAYER --> | soundfile = | checkexist = | showicon = | width = | size = }}
{{IPA audio filename}}
{{infobox IPA}}
(uses this template internally){{IPA vowels audio}}
(uses this template internally){{IPA pulmonics audio}}
(uses this template internally)