Template:Unichar/gc/doc

From MansunWiki
Revision as of 13:42, 16 July 2015 by DarkMavis (Talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === Returns Unicode '''General Category (gc)''' <code>Cc Cf Cn Cs...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Usage

Returns Unicode General Category (gc) Cc Cf Cn Cs Zl Zp Zs <blank> for special code points (like <control>, space characters, formatting characters etc). When regular gc like Letter, Symbol, Mark, Punctuation, etc 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.