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

Content deleted Content added
Lfdder (talk | contribs)
Undid revision 567102670 by Lfdder (talk)
Lfdder (talk | contribs)
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1:
{{Infobox IPA/core2/sandbox
{{infobox
| above = {{#if: {{{above|}}}<!--
| bodystyle =width: 16em;<!-- acts as a minimum; the max is 300px -->
| abovestyle =background: #f2f2ce;<!-- yellowish brown -->
<!-- ABOVE TITLE -->
| above ={{#if: {{{above|}}}<!--
-->|{{{above|}}}<!-- input abovetext overwrites ipa symbol name
-->|{{ucfirst:<!-- above text by IPAsym name
-->{{#if: {{{ipa number|}}}<!-- by ipa number
-->|{{IPAsymIPA symbol |{{{ipa number|}}}|2=}}<!-- 2=return blank if error
-->|{{IPAsymIPA symbol |{{{ipa symbol|}}}|2=}}<!-- 2=return blank if error
-->}}<!--
-->}}<!-- close ucfirst & IPAsym above-title
-->}}
| data16 ipa symbol ={{{ipa numbersymbol|}}}
<!-- IPA SYMBOL (in big font) -->
| ipa symbol2 ={{{ipa symbol2|}}}<!-- 2...8: will be shown, but not used otherwise-->
| headerstyle =font-size: 5em; line-height: 1.2em; vertical-align: super; font-weight: normal;
| header1 ipa symbol3 ={{#if: {{{ipa symbolsymbol3|}}}<!--
-->{{IPA| ipa symbol4 ={{{ipa symbolsymbol4|}}}}}<!--
| ipa symbol5 ={{{ipa symbol5|}}}
| ipa symbol6 ={{{ipa symbol6|}}}
| ipa symbol7 ={{{ipa symbol7|}}}
| ipa symbol8 ={{{ipa symbol8|}}}
<!--
-->}}
-->| imagefile ={{#if: {{{imagefile|}}}<!--
-->| data51 = {{#ififexist:Media:{{{imagefile|}}}<!--
-->{{IPA| {{{ipa symbol2imagefile|}}}}}<!--
-->}}<!--
-->|}}<!-- if...else: no imagefile entered so no showimagefilename -->
repeat headerstyle for optional symbols 2, 3, 4-->
| header2 imagestate ={{#if: {{{ipa symbol2symbol|}}}<!-- |collapsed|uncollapsed}}
-->| imagecaption ={{{imagecaption|}}}<!--
-->{{IPA|{{{ipa symbol2|}}}}}<!--
-->| imagesize ={{{imagesize|}}}<!--
-->}}
-->}}
| header3 ={{#if: {{{ipa symbol3|}}}<!--
-->{{IPA| ipa number ={{{ipa symbol3number|}}}}}<!--
| data35 ipa link ={{{note2ipa link|}}}
-->}}
| header4 note1 label ={{#if: {{{ipanote1 symbol4label|}}}<!--
-->{{IPA| note1 ={{{ipa symbol4note1|}}}}}<!--
-->}}
| header5 html format ={{#if: {{{ipahtml symbol5format|}}}<!--
| data30 ={{#if: {{{unicode format|}}} | ={{{unicode format|}}} }}
-->{{IPA|{{{ipa symbol5|}}}}}<!--
| data17 x-sampa ={{{note1x-sampa|}}}
-->}}
| header6 kirshenbaum ={{#if: {{{ipa symbol6kirshenbaum|}}}<!--
| data37 braille ={{{check decimalsbraille|}}}
-->{{IPA|{{{ipa symbol6|}}}}}<!--
| braille2 ={{{braille2|}}}
-->}}
| header7braille3 ={{#if: {{{ipa symbol7braille3|}}}<!--
| braille4 ={{{braille4|}}}
-->{{IPA|{{{ipa symbol7|}}}}}<!--
| check decimals={{{check decimals|}}}
-->}}
| header8 note2 label ={{#if: {{{ipanote2 symbol8label|}}}<!--
-->{{IPA| note2 ={{{ipa symbol8note2|}}}}}<!--
compose & check soundfile name -->
-->}}
| header59 soundfile ={{#ififexist: Media:{{{soundfile|}}} | Sound {{{soundfile}}}}}
| headerstyle =background: #ffffe6;<!-- light yellow -->
<!-- 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}}