Difference between revisions of "Template:Infobox IPA/format numbers"
Jump to navigation
Jump to search
imported>DePiep |
imported>DePiep |
||
| Line 5: | Line 5: | ||
-->{{#iferror:{{#expr:0{{{c|}}}}}|{{error|decimal3{{=}}{{{c|}}} is not numeric|tag=span}}<br>|}}<!-- | -->{{#iferror:{{#expr:0{{{c|}}}}}|{{error|decimal3{{=}}{{{c|}}} is not numeric|tag=span}}<br>|}}<!-- | ||
-->{{#iferror:{{#expr:0{{{d|}}}}}|{{error|decimal4{{=}}{{{d|}}} is not numeric|tag=span}}|}} | -->{{#iferror:{{#expr:0{{{d|}}}}}|{{error|decimal4{{=}}{{{d|}}} is not numeric|tag=span}}|}} | ||
| − | |||
<!-- do not use the template {{IPA}} before inputting in IPAsym--> | <!-- do not use the template {{IPA}} before inputting in IPAsym--> | ||
| format character =<!-- | | format character =<!-- | ||
-->{{#if: {{{a|}}}|&#{{{a|}}};}}{{#if: {{{b|}}}|&#{{{b|}}};}}{{#if: {{{c|}}}|&#{{{c|}}};}}{{#if: {{{d|}}}|&#{{{d|}}};}}<!-- do not use the {{IPA}} template--> | -->{{#if: {{{a|}}}|&#{{{a|}}};}}{{#if: {{{b|}}}|&#{{{b|}}};}}{{#if: {{{c|}}}|&#{{{c|}}};}}{{#if: {{{d|}}}|&#{{{d|}}};}}<!-- do not use the {{IPA}} template--> | ||
| − | |||
| format html =<!-- | | format html =<!-- | ||
-->{{#if: {{{a|}}}|&#{{{a|}}};}}{{#if: {{{b|}}}|{{zwsp}}&#{{{b|}}};}}{{#if: {{{c|}}}|{{zwsp}}&#{{{c|}}};}}{{#if: {{{d|}}}|{{zwsp}}&#{{{d|}}};}} | -->{{#if: {{{a|}}}|&#{{{a|}}};}}{{#if: {{{b|}}}|{{zwsp}}&#{{{b|}}};}}{{#if: {{{c|}}}|{{zwsp}}&#{{{c|}}};}}{{#if: {{{d|}}}|{{zwsp}}&#{{{d|}}};}} | ||
| − | |||
<!-- Unicode uses   (punctuation space). any input {{{unicode|}}} overrules stringing together numbers (this is different from the switch value, 'format type=format unicode') --> | <!-- Unicode uses   (punctuation space). any input {{{unicode|}}} overrules stringing together numbers (this is different from the switch value, 'format type=format unicode') --> | ||
| format unicode =<!-- | | format unicode =<!-- | ||
| Line 21: | Line 18: | ||
-->{{#if: {{{d|}}}| U+{{padleft:{{hexadecimal|{{{d|}}}|no}}|4|0}}}}<!-- | -->{{#if: {{{d|}}}| U+{{padleft:{{hexadecimal|{{{d|}}}|no}}|4|0}}}}<!-- | ||
-->}} | -->}} | ||
| − | |||
| #default = | | #default = | ||
}}<noinclude> | }}<noinclude> | ||
Revision as of 04:27, 26 January 2011
Formatting from decimal codes. Using named input "a, b, c, d" to prevent spaces sticking with numbers