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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(Created page with '{{#switch: {{{format type|}}} | format check decimals=<!-- -->{{#iferror:{{#expr:0{{{a|}}}}}|{{error|decimal1{{=}}{{{a|}}} is not numeric|tag=span}}<br>|}}<!-- -->{...')
 
imported>DePiep
Line 16: Line 16:
 
| format unicode =<!--  
 
| format unicode =<!--  
 
-->{{#if: {{{unicode|}}} | {{{unicode|}}} |<!--  
 
-->{{#if: {{{unicode|}}} | {{{unicode|}}} |<!--  
   -->{{#if: {{{a|}}}|U+{{padleft:{{hexadecimal|{{{1|0}}}|no}}|4|0}}}}<!--  
+
   -->{{#if: {{{a|}}}|U+{{padleft:{{hexadecimal|{{{a|0}}}|no}}|4|0}}}}<!--  
   -->{{#if: {{{b|}}}|&#x2008;U+{{padleft:{{hexadecimal|{{{2|0}}}|no}}|4|0}}}}<!--  
+
   -->{{#if: {{{b|}}}|&#x2008;U+{{padleft:{{hexadecimal|{{{b|0}}}|no}}|4|0}}}}<!--  
   -->{{#if: {{{c|}}}|&#x2008;U+{{padleft:{{hexadecimal|{{{3|0}}}|no}}|4|0}}}}<!--  
+
   -->{{#if: {{{c|}}}|&#x2008;U+{{padleft:{{hexadecimal|{{{c|0}}}|no}}|4|0}}}}<!--  
   -->{{#if: {{{d|}}}|&#x2008;U+{{padleft:{{hexadecimal|{{{4|0}}}|no}}|4|0}}}}<!--
+
   -->{{#if: {{{d|}}}|&#x2008;U+{{padleft:{{hexadecimal|{{{d|0}}}|no}}|4|0}}}}<!--
 
-->}}
 
-->}}
  

Revision as of 02:59, 26 January 2011

Formatting from decimal codes. Using named input "a, b, c, d" to prevent spaces sticking with numbers