Template:Unicode/doc: Difference between revisions
m (55 revisions) |
No edit summary |
||
Line 1: | Line 1: | ||
==Usage== | ==Usage== | ||
The template looks for letter font families that are broadly supporting incurrent characters (symbols, characters). Input can be decimal like <tt>&#123;</tt> or hexadecimal <tt>&#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>&#123;</tt> or hexadecimal <tt>&#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. | ||
<includeonly> | <includeonly> | ||
[[Category:Templates]] | |||
[[Category: | |||
</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 { or hexadecimal ©. E.g. (mind the 'x' for hex values):
--> ⋊{{unicode|&#x22CA;}}
--> ⋊{{unicode|&#8906;}}
--> ⋊ (this may look trivial, but could be helpful in other browsers){{unicode|⋊}}
or
--> ⋉{{unicode|&#x22C9;}}
--> ⋉{{unicode|&#8905;}}
--> ⋉{{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:
- For strings in the International Phonetic Alphabet, use {{IPA}}.
- For various non-Latin scripts, use {{lang}} if possible, or {{script}} otherwise.
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.