साँचा:IPA soundbox/doc
{{
साँचा:namespace detect
| type = notice
| image =
| imageright =
| class =
| style = margin-bottom:1.0em;
| textstyle =
| text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
}}
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:
Usage
The box is created in three steps:
Step 1. Determine the soundfile name
- - By using input IPA symbol, looked up in a list: साँचा:code → p
- - Use input soundfile: साँचा:code→ ʘ
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.
- साँचा:tlx →
- p
Input options
- a. साँचा:code: skip (expensive) check on file existance. Default=yes (do the check).
- b. layout of the soundbox (these settings use basic layout parameters):
- - साँचा:code: show info icon ("noicon" in basic)
- - साँचा:code size (in px: default =250px, minimum is ~40px) Basic: width.
- - साँचा:code: any style (CSS format) to be used, e.g. साँचा:code
- c. When an error would exist, show an error message:
- - default: show errormessage as साँचा:error
- - साँचा:code: Show alternate text when error
- - साँचा:code: blank, no output at all (no showbox)
Example of check file once:
- See साँचा:tl. First the file is checked, and returns filename if exists. Then if there is a filename, the infobox row is composed, including the soundbox set with साँचा:code.
- Full parameter list
{{IPA soundbox <!-- GENERAL --> | ipa symbol = | style = | errortext = <!-- ABOVE --> | show box above= | IPAsym name = | showsymbol = | line-height = <!-- PLAYER --> | soundfile = | checkexist = | showicon = | width = | size = }}
- Possible errors
- 1. IPA symbol unknow in IPAsym list
- 2. File does not exist
- When an error exists, no button will be shown.
See also
- साँचा:tlx
- साँचा:tlx (uses this template internally)
- साँचा:tlx (uses this template internally)
- साँचा:tlx (uses this template internally)
- Wikipedia:Extended image syntax