Difference between revisions of "Template:IPA soundbox"
Jump to navigation
Jump to search
imported>Nardog |
imported>Nardog (kludge for new video player) |
||
| Line 1: | Line 1: | ||
| − | <includeonly><div style="width:{{{size|250px}}}"><div style="text-align:center; vertical-align:top; font-size:{{{font-size|120%}}}; line-height:{{{line-height|1.5}}}">{{IPA link|{{{1}}}|errortext={{IPA|{{{1}}}}}}}</div><div style="height:20px">{{IPA soundbox/audio|{{#if:{{{2|}}}|{{{2}}}|{{IPA symbol|{{{1}}}|blank|output=audio}}}}|size={{{size|250px}}}|hidecc={{yesno|{{{hidecc|yes}}}}}}}</div></div></includeonly><noinclude> | + | <includeonly><div style="width: {{{size|250px}}};"><div style="text-align: center; vertical-align: top; font-size: {{{font-size|120%}}}; line-height: {{{line-height|1.5}}};">{{IPA link|{{{1}}}|errortext={{IPA|{{{1}}}}}}}</div><div style="height: 20px; overflow: hidden;">{{IPA soundbox/audio|{{#if:{{{2|}}}|{{{2}}}|{{IPA symbol|{{{1}}}|blank|output=audio}}}}|size={{{size|250px}}}|hidecc={{yesno|{{{hidecc|yes}}}}}}}</div></div></includeonly><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 23:22, 30 December 2019
This template produces a standard box to start a sound file. It has some extra features to help linking to a phonetic sound file. When the audio file is not specified, the file based on the symbol will be fetched from Module:IPA symbol/data. Basic examples:
{{IPA soundbox|ə}}→{{IPA soundbox|χ|Voiceless uvular fricative.ogg}}→
Input options
|label=: content above the soundbox (the symbol with link if empty)|size=250px: width of the entire template|font-size=120%: font size of the IPA symbol|line-height=1.5: line height of the IPA symbol|hidecc=yes: hides the CC (closed captions) button
If the audio file doesn't exist, the symbol will still be shown but the template will categorize the page into Category:IPA pages with non-existing IPA audio soundfile.
See also
{{IPA soundbox/cell}}(wrapper template for table cells)
| The above documentation is transcluded from Template:IPA soundbox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |