Template:Unichar/glyph: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Primefac m Protected "Template:Unichar/glyph": semi-protection of high-usage templates to combat systematic vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite)) |
m 14 revisions imported |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{image|}}} | {{#if:{{{br|}}}|{{substr|{{#invoke:HTMLDecode | HTMLDecode | text={{{br|}}}}}|0|1}}}}{{#if:{{{image|}}} | ||
| [[File:{{{image|}}}|frameless|{{{size|}}}|baseline|alt={{{na|}}}]] | | [[File:{{{image|}}}|frameless|{{{size|}}}|baseline|alt={{{na|}}}]] | ||
| {{#switch:{{{gc|<#not a Unicode code point#>}}} | | {{#switch:{{{gc|<#not a Unicode code point#>}}} | ||
Line 8: | Line 8: | ||
| Cn =<!--Cn=<reserved> is not detected--><span style="font-size:small"><noncharacter-{{{hval|}}}></span> | | Cn =<!--Cn=<reserved> is not detected--><span style="font-size:small"><noncharacter-{{{hval|}}}></span> | ||
| Cf | Zl | Zp =<!--formatting chars, no glyph or html code at all--> | | Cf | Zl | Zp =<!--formatting chars, no glyph or html code at all--> | ||
| Zs =<span class="Unicode" style="background:lightblue">{{#ifeq:{{{hval|}}}| 0020 | |&#x{{{hval|}}};}}</span><!--change space 0x20 into nbsp=0xA0 to preserve the space from wiki-markup deletion--> | | Zs =<span class="Unicode" style="background:lightblue;line-height:1em">{{#ifeq:{{{hval|}}}| 0020 | |&#x{{{hval|}}};}}</span><!--change space 0x20 into nbsp=0xA0 to preserve the space from wiki-markup deletion--> | ||
| #default=<span style="font-size:{{{size|unexp}}}">{{#switch:{{{use|}}} | | #default=<span style="font-size:{{{size|unexp}}};line-height:1em">{{#switch:{{{use|}}} | ||
| ipa ={{IPA|{{{cwith|}}}&#x{{{hval}}};}} | | ipa ={{IPA|{{{cwith|}}}&#x{{{hval}}};}} | ||
| lang ={{lang|{{{use2|}}}|{{{cwith|}}}&#x{{{hval}}};}} | | lang ={{lang|{{{use2|}}}|{{{cwith|}}}&#x{{{hval}}};}} | ||
| script={{script|{{{use2|}}}|{{{cwith|}}}&#x{{{hval}}};}}<!--use2: first char uc here?--> | | script={{script|{{{use2|}}}|{{{cwith|}}}&#x{{{hval}}};}}<!--use2: first char uc here?--> | ||
| unicode | | unicode | ||
| #default = {{{cwith|}}}&#x{{{hval|}}}; }}</span>}}{{#ifeq:{{{cwith|}}}| | }}}}<!-- | | #default = {{{cwith|}}}&#x{{{hval|}}}; }}</span>}}{{#ifeq:{{{cwith|}}}| | }}}}{{#if:{{{br|}}}|{{substr|{{#invoke:HTMLDecode | HTMLDecode | text={{{br|}}}}}|1|2}}}}<!-- | ||
--><noinclude>{{documentation}}</noinclude> | --><noinclude>{{documentation}}</noinclude> |
Latest revision as of 23:07, 3 September 2020
Usage
Returns a glyph from Unicode code point hex value.
Input Params: 1=hex value (required) 2=font-size 3=use(font hint, e.g. IPA) 4=use2(font hint param=ISO alpha2 or alpha4) Named: dec=decimal value (from hex) to be used in /gc
See also
See main template {{unichar}} for full documentation.