Template:Unicode/doc

From Official Kodi Wiki
< Template:Unicode
Revision as of 13:14, 4 December 2011 by >[email protected] (→‎See also: No longer in use)
Jump to navigation Jump to search

Usage

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

  • ​{{unicode|&amp;#x22CA;}}​
    -->
  • ​{{unicode|&amp;#8906;}}​
    -->
  • ​{{unicode|&#8906;}}​
    --> (this may look trivial, but could be helpful in other browsers)

or

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

Purpose

This template is created to allow easy switching to unicode fonts. It should only be used in cases where characters otherwise do 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: "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

  • {{IPA}} — to produce symbols from the International Phonetic Alphabet
  • {{transl}} — generic romanization
  • {{script}} — Scripts in Unicode navigation box

Template:Unicode templates