Difference between revisions of "Template:Infobox IPA/format numbers"

From blackwiki
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|}}}|&amp;#{{{a|}}};}}{{#if: {{{b|}}}|{{zwsp}}&amp;#{{{b|}}};}}{{#if: {{{c|}}}|{{zwsp}}&amp;#{{{c|}}};}}{{#if: {{{d|}}}|{{zwsp}}&amp;#{{{d|}}};}}
 
-->{{#if: {{{a|}}}|&amp;#{{{a|}}};}}{{#if: {{{b|}}}|{{zwsp}}&amp;#{{{b|}}};}}{{#if: {{{c|}}}|{{zwsp}}&amp;#{{{c|}}};}}{{#if: {{{d|}}}|{{zwsp}}&amp;#{{{d|}}};}}
 
 
<!-- Unicode uses &#x2008; (punctuation space). any input {{{unicode|}}} overrules stringing together numbers (this is different from the switch value, 'format type=format unicode') -->
 
<!-- Unicode uses &#x2008; (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|}}}|&#x2008;U+{{padleft:{{hexadecimal|{{{d|}}}|no}}|4|0}}}}<!--
 
   -->{{#if: {{{d|}}}|&#x2008;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