Template:Unichar/glyph: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>DePiep Moved hex2dec calc into higher template to reduce depth. Now takes variable "dec" |
meta>DePiep lc: |
||
Line 5: | Line 5: | ||
| Cn =<!--<reserved>=Cn cannot easily be detected--><span style="font-size:small"><noncharacter-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span> | | Cn =<!--<reserved>=Cn cannot easily be detected--><span style="font-size:small"><noncharacter-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span> | ||
| Zs =<span class="unicode" style="background:lightblue">{{#ifeq:{{{1}}}|20| |&#x{{uc:{{{1}}}}};}}</span><!--ch space 0x20 into nbsp=0xA0 to keep the symbol--> | | Zs =<span class="unicode" style="background:lightblue">{{#ifeq:{{{1}}}|20| |&#x{{uc:{{{1}}}}};}}</span><!--ch space 0x20 into nbsp=0xA0 to keep the symbol--> | ||
| #default=<span style="font-size:{{{2|100%}}}">{{#switch:{{{use|unicode}}} | | #default=<span style="font-size:{{{2|100%}}}">{{#switch:{{lc:{{{use|unicode}}}}} | ||
| | | ipa ={{IPA|&#x{{uc:{{{1}}}}};}} | ||
| lang ={{lang|{{{use2|}}}|&#x{{uc:{{{1}}}}};}} | | lang ={{lang|{{{use2|}}}|&#x{{uc:{{{1}}}}};}} | ||
| script ={{script|{{{use2|}}}|&#x{{uc:{{{1}}}}};}} | | script ={{script|{{{use2|}}}|&#x{{uc:{{{1}}}}};}} |
Revision as of 02:30, 9 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.