Template:Unicode/doc: Difference between revisions
(→Guts of template: format) |
(Move TOC up) |
||
Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
{{TOCright}} | |||
==Usage== | ==Usage== | ||
{{code|<nowiki>{{unicode|&#x22CA;}}</nowiki>}} and {{code|<nowiki>{{unicode|&#x22C9;}}</nowiki>}} give {{unicode|⋊}} and {{unicode|⋉}}. | {{code|<nowiki>{{unicode|&#x22CA;}}</nowiki>}} and {{code|<nowiki>{{unicode|&#x22C9;}}</nowiki>}} give {{unicode|⋊}} and {{unicode|⋉}}. | ||
==Purpose== | ==Purpose== | ||
This template was created to allow easy switching to [[unicode font]]s. It should ''only'' be used in cases where characters do otherwise not render correctly on some browsers, such as [[Microsoft]] [[Internet Explorer]]. | This template was created to allow easy switching to [[unicode font]]s. It should ''only'' be used in cases where characters do otherwise not render correctly on some browsers, such as [[Microsoft]] [[Internet Explorer]]. | ||
Line 13: | Line 12: | ||
*for various non-Latin scripts, use {{tl|lang}} if possible, or {{tl|script}} otherwise. | *for various non-Latin scripts, use {{tl|lang}} if possible, or {{tl|script}} otherwise. | ||
*for [[MUFI]] encoding (non-Unicode), use {{tl|mufi}}. | *for [[MUFI]] encoding (non-Unicode), use {{tl|mufi}}. | ||
==Guts of template== | ==Guts of template== |
Revision as of 14:40, 3 September 2010
Usage
{{unicode|&#x22CA;}}
and
{{unicode|&#x22C9;}}
give ⋊ and ⋉.
Purpose
This template was 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:
- For strings in the International Phonetic Alphabet, use {{IPA}}.
- for various non-Latin scripts, use {{lang}} if possible, or {{script}} otherwise.
- for MUFI encoding (non-Unicode), use {{mufi}}.
Guts of template
<span class="Unicode">{{{1}}}</span>
...wherein class="Unicode" is defined in MediaWiki:Common.css/WinFixes.css:
.Unicode { font-family: Code2000, Code2001, "Free Serif", "TITUS Cyberbit Basic", "Doulos SIL", "Chrysanthi Unicode", "Bitstream Cyberbit", "Bitstream CyberBase", Thryomanes, Gentium, GentiumAlt, "Lucida Grande", "Free Sans", "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.
Examples
{{unicode|⋊}} and {{unicode|⋉}} give ⋊ and ⋉.
Technical
- This portion ported as usage from en.wikipedia talk page w:template talk:unicode
- Problems and talk discussions should be posted to that page which the programmers have watchlisted.
Template:Tiw containing:
See also
- {{IPA}} — 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
- {{Table Unicode}} — General Unicode navigation box (deprecated)