Template:Infobox IPA/core1/sandbox: Difference between revisions

Content deleted Content added
Lfdder (talk | contribs)
No edit summary
Lfdder (talk | contribs)
No edit summary
Line 1:
{{infobox
{{Infobox IPA/core2
| bodystyle =width: 16em;<!-- acts as a minimum; the max is 300px -->
| above = {{#if: {{{above|}}}<!--
| abovestyle =background: #f2f2ce;<!-- yellowish brown -->
-->|{{{above|}}}<!-- input abovetext overwrites ipa symbol name
| headerstyle =background: #ffffe6;<!-- light yellow -->
-->|{{ucfirst:<!-- above text by IPAsym name
<!-- ABOVE TITLE -->
-->{{#if: {{{ipa number|}}}<!-- by ipa number
| above ={{{above|}}}
-->|{{IPAsym |{{{ipa number|}}}|2=}}<!-- 2=return blank if error
<!-- IPA SYMBOL (in big font) -->
-->|{{IPAsym |{{{ipa symbol|}}}|2=}}<!-- 2=return blank if error
| headerstyle =font-size: 5em; line-height: 1.2em; vertical-align: super; font-weight: normal;
| header1 ={{#if: {{{ipa symbol|}}}<!--
-->{{IPA|{{{ipa symbol|}}}}}<!--
-->}}<!--
repeat headerstyle for optional symbols 2, 3, 4-->
-->}}<!-- close ucfirst & IPAsym above-title
| header2 ={{#if: {{{ipa symbol2|}}}<!--
-->{{IPA|{{{ipa symbol2|}}}}}<!--
-->}}
| ipaheader3 symbol ={{#if: {{{ipa symbolsymbol3|}}}<!--
-->{{IPA|{{{ipa symbol3|}}}}}<!--
| ipa symbol2 ={{{ipa symbol2|}}}<!-- 2...8: will be shown, but not used otherwise-->
| ipa symbol3 ={{{ipa symbol3|}}}
| ipa symbol4 ={{{ipa symbol4|}}}
| ipa symbol5 ={{{ipa symbol5|}}}
| ipa symbol6 ={{{ipa symbol6|}}}
| ipa symbol7 ={{{ipa symbol7|}}}
| ipa symbol8 ={{{ipa symbol8|}}}
<!--
-->
| imagefile ={{#if: {{{imagefile|}}}<!--
-->| {{#ifexist:Media:{{{imagefile|}}}<!--
-->| {{{imagefile|}}}<!--
-->}}<!--
-->|}}<!-- no imagefile entered so no imagefilename -->
| imagestate ={{#if: {{{ipa symbol|}}} |collapsed|uncollapsed}}
| imagecaption ={{{imagecaption|}}}
| imagesize ={{{imagesize|}}}<!--
-->
| ipa number ={{{ipa number|}}}
| ipa link ={{{ipa link|}}}
| note1 label ={{{note1 label|}}}
| note1 ={{{note1|}}}<!--
-->
| html format ={{{html format|}}}
| unicode format={{{unicode format|}}}
| x-sampa ={{{x-sampa|}}}
| kirshenbaum ={{{kirshenbaum|}}}
| braille ={{{braille|}}}
| braille2 ={{{braille2|}}}
| braille3 ={{{braille3|}}}
| braille4 ={{{braille4|}}}
| check decimals={{{check decimals|}}}
| note2 label ={{{note2 label|}}}
| note2 ={{{note2|}}}<!--
compose & check soundfile name -->
| soundfile ={{IPA audio filename/sandbox<!--
-->| 1={{#if:{{{ipa number|}}}<!-- IPA nr/symbol for IPAsym
-->| {{{ipa number|}}}<!--
-->| {{{ipa symbol|}}} }}<!--
-->| soundfile ={{{soundfile|}}}<!--
-->| checkexist=yes<!--
-->| errortext =<!-- errortext=blank when error
-->}}
| header4 ={{#if: {{{ipa symbol4|}}}<!--
-->{{IPA|{{{ipa symbol4|}}}}}<!--
-->}}
| header5 ={{#if: {{{ipa symbol5|}}}<!--
-->{{IPA|{{{ipa symbol5|}}}}}<!--
-->}}
| header6 ={{#if: {{{ipa symbol6|}}}<!--
-->{{IPA|{{{ipa symbol6|}}}}}<!--
-->}}
| header7 ={{#if: {{{ipa symbol7|}}}<!--
-->{{IPA|{{{ipa symbol7|}}}}}<!--
-->}}
| header8 ={{#if: {{{ipa symbol8|}}}<!--
-->{{IPA|{{{ipa symbol8|}}}}}<!--
-->}}
<!-- IPA NUMBER -->
| label16 =[[{{#if: {{{ipa link|}}}|{{{ipa link|}}}<!--
-->|IPA number}}|IPA number]]
| data16 ={{{ipa number|}}}
<!-- NOTE1 -->
| label17 ={{{note1 label|}}}<!-- optional input -->
| data17 ={{{note1|}}}
<!-- ENCODINGS -->
| header18 ={{#if:<!--
-->{{{html format|}}}{{{unicode format|}}}{{{x-sampa|}}}{{{kirshenbaum|}}}<!-- one or more encodings present so header
-->| Encoding }}
| label19 =Entity <small>(decimal)</small>
| data19 ={{#iferror:{{{check decimals|}}} ||<!--
-->{{#if: {{{html format|}}} | <code>{{{html format|}}}</code>}}<!--
-->}}
| label30 =Unicode <small>(hex)</small>
| data30 ={{#if: {{{unicode format|}}} | {{{unicode format|}}} }}
| label31 =[[X-SAMPA]]
| data31 ={{#if: {{{x-sampa|}}} | <code>{{{x-sampa|}}}</code> }}
| label32 =[[Kirshenbaum]]
| data32 ={{#if: {{{kirshenbaum|}}} | <code>{{{kirshenbaum|}}}</code> }}
| label33 =[[IPA Braille|Braille]]
| data33 ={{#if: {{{braille|}}} | {{Braille cell|type=6|size=25px|{{{braille|}}}|{{{braille2|}}}|{{{braille3|}}}|{{{braille4|}}}}}}}
<!-- NOTE2 -->
| label35 ={{{note2 label|}}}<!-- optional input -->
| data35 ={{{note2|}}}
<!-- CHECK DECIMALS error message -->
| data37 ={{{check decimals|}}}
<!-- IMAGEFILE -->
| data51 = {{#if:{{{imagefile|}}}<!--
-->| {{infobox IPA/image box<!--
-->|imagefile ={{{imagefile|}}}<!--
-->|imagestate ={{{imagestate|collapsed}}}<!--
-->|imagesize ={{{imagesize|}}}<!--
-->|imagecaption={{{imagecaption|}}}<!--
-->}}<!--
-->|}}<!-- if...else: no imagefile no show -->
<!-- SOUNDFILE -->
| header59 ={{#if: {{{soundfile|}}} | Sound }}
| data60 ={{#if: {{{soundfile|}}}|[[File:{{{soundfile|}}}|150px|center|noicon]]
<div style="text-align:center"><small>[[:File:{{{soundfile|}}}|source]]&nbsp;<span style="font-weight:bold;">&middot;</span>&#32;[[Wikipedia:Media help|help]]</small></div>}}
}}<noinclude>
{{documentation}}