Template:Unicode/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
m (55 revisions)
No edit summary
Line 1: Line 1:
{{documentation subpage}}
{{TOCright}}
==Usage==
==Usage==
The template looks for letter font families that are broadly supporting incurrent characters (symbols, characters). Input can be decimal like <tt>&amp;#123;</tt> or hexadecimal <tt>&amp;#xA9;</tt>. E.g. (mind the 'x' for hex values):
The template looks for letter font families that are broadly supporting incurrent characters (symbols, characters). Input can be decimal like <tt>&amp;#123;</tt> or hexadecimal <tt>&amp;#xA9;</tt>. E.g. (mind the 'x' for hex values):
Line 31: Line 29:
A personal stylesheet (/monobook.css &c, class ''.Unicode'') may be used to enforce a "prettier" display where preferred.
A personal stylesheet (/monobook.css &c, class ''.Unicode'') may be used to enforce a "prettier" display where preferred.


== See also ==
* {{tl|IPA}} &mdash; to produce symbols from the International Phonetic Alphabet
* {{tl|transl}} &mdash; generic [[romanization]]
* {{tl|script}} &mdash; Scripts in Unicode navigation box
{{Unicode templates}}
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Templates]]
 
[[Category:MSIE font fix templates|{{PAGENAME}}]]
[[Category:Unicode templates]]
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
[[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]]
 
</includeonly>
</includeonly>

Revision as of 15:43, 16 March 2012

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.js:

.Unicode {
    font-family: "Arial Unicode MS", "Lucida Sans Unicode"; 
}

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