Template:Unichar/glyph: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>DePiep m typo |
meta>DePiep Moved hex2dec calc into higher template to reduce depth. Now takes variable "dec" |
||
Line 1: | Line 1: | ||
{{#switch:{{unichar/gc|{{ | {{#switch:{{unichar/gc|{{{dec|-1}}}}} | ||
| Cc =<span style="font-size:small"><control-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span> | | Cc =<span style="font-size:small"><control-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span> | ||
| Cs =<span style="font-size:small"><surrogate-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span> | | Cs =<span style="font-size:small"><surrogate-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span> | ||
Line 13: | Line 13: | ||
---- | ---- | ||
Returns a glyph from Unicode code point hex value.<br> | Returns a glyph from Unicode code point hex value.<br> | ||
Input Params: 1=hex value (required) 2=font-size 3=use(font hint, eg IPA) 4=use2(font hint param=ISO alpha2 or alpha4)<br> | Input Params: 1=hex value (required) 2=font-size 3=use(font hint, eg IPA) 4=use2(font hint param=ISO alpha2 or alpha4) Named: dec=decimal value (from hex) to be used in /gc <br> | ||
See main template {{tl|unichar}} for full documentation. | See main template {{tl|unichar}} for full documentation. | ||
</noinclude> | </noinclude> |
Revision as of 09:38, 8 September 2010
Returns a glyph from Unicode code point hex value.
Input Params: 1=hex value (required) 2=font-size 3=use(font hint, eg IPA) 4=use2(font hint param=ISO alpha2 or alpha4) Named: dec=decimal value (from hex) to be used in /gc
See main template {{unichar}} for full documentation.