Template:Unichar/glyph: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>DePiep
m typo
Ookami (talk | contribs)
m 14 revisions imported
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#switch:{{unichar/gc|{{hex2dec|{{{1|}}}|no}}}}
{{#if:{{{br|}}}|{{substr|{{#invoke:HTMLDecode | HTMLDecode | text={{{br|}}}}}|0|1}}}}{{#if:{{{image|}}}
| Cc =<span style="font-size:small"><control-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span>
| [[File:{{{image|}}}|frameless|{{{size|}}}|baseline|alt={{{na|}}}]]
| Cs =<span style="font-size:small"><surrogate-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span>
| {{#switch:{{{gc|<#not a Unicode code point#>}}}
| Cp =<span style="font-size:small"><private-use-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span>
| <#not a Unicode code point#> =
| Cn =<!--<reserved>=Cn cannot easily be detected--><span style="font-size:small"><noncharacter-{{padleft:{{uc:{{{1|}}}}}|4|0}}></span>
| Cc =<span style="font-size:small"><control-{{{hval|}}}></span>
| Zs =<span class="unicode" style="background:lightblue">{{#ifeq:{{{1}}}|20|&#xA0;|&#x{{uc:{{{1}}}}};}}</span><!--ch space 0x20 into nbsp=0xA0 to keep the symbol-->
| Cs =<span style="font-size:small"><surrogate-{{{hval|}}}></span>
| #default=<span style="font-size:{{{2|100%}}}">{{#switch:{{{use|unicode}}}
| Cp =<span style="font-size:small"><private-use-{{{hval|}}}></span>
| IPA  ={{IPA|&#x{{uc:{{{1}}}}};}}
| Cn =<!--Cn=<reserved> is not detected--><span style="font-size:small"><noncharacter-{{{hval|}}}></span>
| lang ={{lang|{{{use2|}}}|&#x{{uc:{{{1}}}}};}}
| Cf | Zl | Zp =<!--formatting chars, no glyph or html code at all-->
| script ={{script|{{{use2|}}}|&#x{{uc:{{{1}}}}};}}
| Zs =<span class="Unicode" style="background:lightblue;line-height:1em">{{#ifeq:{{{hval|}}}| 0020  |&#xA0;|&#x{{{hval|}}};}}</span><!--change space 0x20 into nbsp=0xA0 to preserve the space from wiki-markup deletion-->
| unicode
| #default=<span style="font-size:{{{size|unexp}}};line-height:1em">{{#switch:{{{use|}}}
| #default ={{unicode|&#x{{uc:{{{1|0}}}}};}}}}</span>}}<noinclude>
  | ipa  ={{IPA|{{{cwith|}}}&#x{{{hval}}};}}
----
  | lang ={{lang|{{{use2|}}}|{{{cwith|}}}&#x{{{hval}}};}}
Returns a glyph from Unicode code point hex value.<br>
  | script={{script|{{{use2|}}}|{{{cwith|}}}&#x{{{hval}}};}}<!--use2: first char uc here?-->
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>
  | unicode  
See main template {{tl|unichar}} for full documentation.
  | #default = {{{cwith|}}}&#x{{{hval|}}}; }}</span>}}{{#ifeq:{{{cwith|}}}|&nbsp;|&nbsp;}}}}{{#if:{{{br|}}}|{{substr|{{#invoke:HTMLDecode | HTMLDecode | text={{{br|}}}}}|1|2}}}}<!--
</noinclude>
 
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 23:07, 3 September 2020