साँचा:IPA soundbox
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}}
→χ
Usage
संपादित करेंThe box is created in three steps:
Step 1. Determine the soundfile name
- - By using input IPA symbol, looked up in a list:
→ipa symbol=p
p - - Use input soundfile:
→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}}
→- p
Input options
संपादित करें- a.
: skip (expensive) check on file existance. Default=yes (do the check).checkexist=no
- b. layout of the soundbox (these settings use basic layout parameters):
- -
: show info icon ("noicon" in basic)showicon=no
- -
size (in px: default =250px, minimum is ~40px) Basic: width.size=50px
- -
: any style (CSS format) to be used, e.g.style
style=background:yellow;
{{IPA soundbox|| ipa symbol=m| size=120px| style=border:1px solid red; background:yellow;}}
→
{{{1}}}
- c. When an error would exist, show an error message:
- - default: show errormessage as error message
- -
: Show alternate text when errorerrortext=something is wrong
- -
: blank, no output at all (no showbox)errortext=
Example of check file once:
- See {{infobox IPA}}. 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
.checkexist=no
- 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
संपादित करें{{IPA audio filename}}
{{infobox IPA}}
(uses this template internally){{IPA vowels audio}}
(uses this template internally){{IPA pulmonics audio}}
(uses this template internally)- Wikipedia:Extended image syntax
ऊपर दिए गए निर्देश साँचा:IPA soundbox/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (create) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |