Template:Unicode

From GM-RKB
Jump to navigation Jump to search

{{{1}}}

[edit] [history] [purge] File:Template-info.png Template documentation

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):

  • <syntaxhighlight lang="text" enclose="none">​{{unicode|&#x22CA;}}​</syntaxhighlight> -->
  • <syntaxhighlight lang="text" enclose="none">​{{unicode|&#8906;}}​</syntaxhighlight> -->
  • <syntaxhighlight lang="text" enclose="none">​{{unicode|⋊}}​</syntaxhighlight> --> (this may look trivial, but could be helpful in other browsers)

or

  • <syntaxhighlight lang="text" enclose="none">​{{unicode|&#x22C9;}}​</syntaxhighlight> -->
  • <syntaxhighlight lang="text" enclose="none">​{{unicode|&#8905;}}​</syntaxhighlight> -->
  • <syntaxhighlight lang="text" enclose="none">​{{unicode|⋉}}​</syntaxhighlight> -->

Purpose

This template is 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: <source lang="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;

} </source>

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
  • {{mufi}} — Forces a font which supports the MUFI characters.
  • {{transl}} — generic romanization
  • {{script}} — Scripts in Unicode navigation box
  • {{Unicode navigation}} — General Unicode navigation box


ar:قالب:يونيكود be-x-old:Шаблён:Юнікод bg:Шаблон:Уникод de:Vorlage:Unicode dsb:Pśedłoga:Unicode es:Plantilla:Unicode eo:Ŝablono:Unicode ko:틀:Unicode hsb:Předłoha:Unicode hr:Predložak:Unicode it:Template:Unicode ja:Template:Unicode mk:Шаблон:Уникод nl:Sjabloon:Unicode pl:Szablon:Unicode pnt:Πρότυπον:Unicode pt:Predefinição:Unicode ro:Format:Unicode ru:Шаблон:Unicode sq:Stampa:Unicode simple:Template:Unicode fi:Malline:Unicode vi:Tiêu bản:Unicode zh:Template:Unicode