Template:Unichar: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>DePiep
Moving a hex2dec calculation here from subtemplate to reduce depth
Ookami (talk | contribs)
m 25 revisions imported
 
(16 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|{{#if:{{{2|}}}|<!--U+hex code point-->U+{{padleft:{{hexadecimal|{{hex2dec|{{uc:{{{1}}}}} }}|no}}|4|0}}<!--glyph-->&#x20;{{unichar/glyph| {{hexadecimal|{{hex2dec|{{uc:{{{1}}}}} }}|no}}| {{{font-size|120%}}}|{{{use|unicode}}}| {{{use2|}}}| dec={{hex2dec|{{{1|}}}|no}} }}<!--char name, optional link-->&#x20;{{unichar/na|na={{{2|}}}| link={{{link|<#salted#>}}}}}<!--note-->{{#if:{{{note|}}}|&#x20;({{{note}}})|}}|<!--#if:no 2=missing/blank-->{{error|Error using {{tl|unichar}}: Parameter #2 missing, no character name.|tag=span}}}}|<!--#if:no #1=missing/blank-->{{error|Error using {{tl|unichar}}: Parameter #1 missing, no code point value.|tag=span}}
<includeonly>{{unichar/main
}}<noinclude>  
| hval  ={{unichar/hexformat|{{{1|<#salted#>}}} }}
{{documentation}}
| hvalinput ={{{1|}}}<!--to use in errormessage-->
</noinclude>
| na    ={{{2|}}}
| ulink ={{{ulink|<#salted#>}}}
| image ={{{image|}}}
| cwith ={{#if:{{{cwith|}}} | {{{cwith}}} | {{#if:{{{cwith}}} || &nbsp; }} }}
| size  ={{#if:{{{image|}}} | {{#ifeq:{{Str rightc|{{lc:{{{size|}}}}}|2}} | px | {{{size}}} | 10px}} | {{{size|{{#if:{{{cwith}}}|125%|150%}}}}} }}
| use  ={{lc:{{{use|unicode}}}}}
| use2  ={{{use2|}}}
| nlink ={{{nlink|<#salted#>}}}
| dec  ={{{dec|<#salted#>}}}
| dval  ={{hex2dec|{{unichar/hexformat|{{{1|<#salted#>}}} }}|no}}
| html  ={{{html|{{{HTML|<#salted#>}}}}}}
| note ={{#if:{{{note|}}}|{{{note|}}}|<#salted#>}}
| finaltext ={{#if:{{{note|}}} | NOTE | {{#ifeq:{{{html|+}}} | {{{html|-}}} | HTML | {{#ifeq: {{{dec|+}}} | {{{dec|-}}} | DEC | NOTEXT }} }} }}
| gc    ={{#if:{{{1|}}} |{{unichar/gc|{{hex2dec|{{{1|0}}}|no}}|hval={{unichar/hexformat|{{{1|<#salted#>}}} }} }} | <#not a Unicode code point#> }}
| sans  ={{{sans|}}}
| br    ={{{br|}}}
}}</includeonly><!--
 
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 14:49, 3 September 2020