Difference between revisions of "Template:Unichar/gc"
en>Primefac m (Protected "Template:Unichar/gc": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (in...) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 12:55, 2 January 2019
<#not a Unicode code point#>
Usage
Returns Unicode General Category (gc) Cc Cf Cn Cs Zl Zp Zs <blank>
for special code points (like <control>, space characters, formatting characters). When regular gc like Letter, Symbol, Mark, or Punctuation, it returns a blank.
Parameters
This is a subtemplate, so parameters may has tight requirements. Input: (unnamed)
{{Unichar/gc
|1= <!--decimal value of the code point-->
}}
The code point value is required as a decimal value, because we are using the #ifexpr:
numerical calculations.
For five Arabic number markings U+0600..U+0603 and U+60DD, it returns Cf (visible)
. While Cf formatting characters usually have no glyph, these five have. By adding the "(visible)" text, these characters are shown (while regular Cf characters are hidden).
See also
See main template {{unichar}} for full documentation.
The above documentation is transcluded from Template:Unichar/gc/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |