Template:Unicode/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(+trivial & useful)
m (fix cat)
Line 48: Line 48:


[[Category:MSIE font fix templates|{{PAGENAME}}]]
[[Category:MSIE font fix templates|{{PAGENAME}}]]
[[Unicode templates]]
[[Category:Unicode templates]]


<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->

Revision as of 08:40, 20 September 2010

Usage

The template loooks for letter font families that are broadly supporting incurrent characters (symbols, characters). Inpiut can be decimal like &#123; or hexadecimal &#A9:. E.g. (mind the 'x' for hex values):

  • ​{{unicode|&amp;#x22CA;}}​
    -->
  • ​{{unicode|&amp;#8906;}}​
    -->
  • ​{{unicode|&#8906;}}​
    --> (seems trivial, but could help in other browsers)

or

  • ​{{unicode|&amp;#x22C9;}}​
    -->
  • ​{{unicode|&amp;#8905;}}​
    -->
  • ​{{unicode|&#8905;}}​
    -->

Purpose

This template was created to allow easy switching to unicode fonts. It should only be used in cases where characters do otherwise not render correctly on some browsers, such as Microsoft Internet Explorer.

The fonts selected are designed to maximize the probability to render uncommon Unicode characters correctly. However, different fonts cover different Unicode ranges. It is probably mostly useful for various Unicode symbols. Do not use it for the following:

Guts of template

<span class="Unicode">{{{1}}}</span>

...wherein class="Unicode" is defined in MediaWiki:Common.css/WinFixes.css:

.Unicode {
    font-family: Code2000, Code2001, "Free Serif", "TITUS Cyberbit Basic",
                 "Doulos SIL", "Chrysanthi Unicode", "Bitstream Cyberbit",
                 "Bitstream CyberBase", Thryomanes, Gentium, GentiumAlt,
                 "Lucida Grande", "Free Sans", "Arial Unicode MS",
                 "Microsoft Sans Serif", "Lucida Sans Unicode";
}

A personal stylesheet (/monobook.css &c, class .Unicode) may be used to enforce a "prettier" display where preferred.

See also