Template:Unicode/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Adding Category:Character templates - note that if this category didn't exist, this would need to be added to Category:Font-fix templates. Doing this because I had trouble finding this template.)
(adding related template to documentation)
Line 39: Line 39:
== See also ==
== See also ==
* {{tl|IPA}} — to produce symbols from the International Phonetic Alphabet
* {{tl|IPA}} — to produce symbols from the International Phonetic Alphabet
* {{tl|Alt}} — The equivalent of this template for Windows Alt-key keyboard input codes.
* {{tl|mufi}} — Forces a font which supports the [[MUFI]] characters.
* {{tl|mufi}} — Forces a font which supports the [[MUFI]] characters.
* {{tl|transl}} — generic [[romanization]]
* {{tl|transl}} — generic [[romanization]]

Revision as of 21:27, 7 July 2011

Usage

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

  • ​{{unicode|⋊}}​
    -->
  • ​{{unicode|⋊}}​
    -->
  • ​{{unicode|⋊}}​
    --> (this may look trivial, but could be helpful in other browsers)

or

  • ​{{unicode|⋉}}​
    -->
  • ​{{unicode|⋉}}​
    -->
  • ​{{unicode|⋉}}​
    -->

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", "Free Sans",
                 "Gentium Plus", "Gentium Basic", "Gentium", "GentiumAlt", "DejaVu Sans",
                 "DejaVu Serif", "Free Serif", "TITUS Cyberbit Basic",
                 "Bitstream Cyberbit", "Bitstream CyberBase", "Doulos SIL",
                 "Code2000", "Code2001";
    font-size-adjust: 0.54;
}

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
  • {{Alt}} — The equivalent of this template for Windows Alt-key keyboard input codes.
  • {{mufi}} — Forces a font which supports the MUFI characters.
  • {{transl}} — generic romanization
  • {{script}} — Scripts in Unicode navigation box
  • {{Unicode navigation}} — General Unicode navigation box