Template:Unicode
From Wikipedia, the free encyclopedia
{{{1}}}
Similar templates at English sister projects [edit] | |||
---|---|---|---|
mta | Meta-wiki | Unicode | |
wpd | Wikipedia | Unicode | |
cms | Commons | Unicode | |
wbk | Wikibooks | Unicode | |
wqt | Wikiquote | Unicode | |
wsr | Wikisource | Unicode | |
wsp | Wikispecies | Unicode | |
wvy | Wikiversity | Unicode | |
This project under construction ... Pardon our appearance whist we remodel, pull the engine, and change the tires. |
Usage
- 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:unicode (talk, backlinks, edit) containing:
Purpose
This template was created to allow easy switching to unicode fonts. This is useful for pages that require unicode to display correctly, such as those written in International Phonetic Alphabet (commons: International Phonetic Alphabet). On some browsers, such as Microsoft Internet Explorer, unicode does not seem to be activated automatically, so this template lets you force it manually.
One might ask why bother to use a template for this. Simply:
- The template code is easier to remember than the HTML font style specification, which must be entered fairly precisely for this to work.
- The template code, although not completely transparent, is more transparent than asking new editors to use inline HTML CSS style tags. At least for many editors.
- Using the template allows us to change unicode display properties for all articles that employ the template at once. This is useful as the prefered fonts for displaying unicode are somewhat disputable and will change as new, more complete unicode fonts continue to be developed. The way font specification works, we can provide a whole list of suggested fonts and the first one that is active on the user's machine will be selected.
- When the page says Unicode, Internet Explorer will activate Unicode.
- However, when the page says Arial, Internet Explorer will display Arial. While Arial does include e. g. basic Greek and Cyrillic, it does not include e. g. IPA extensions. These are displayed in Arial anyway when the page says so – that is, they are displayed as the famous rectangles.
- David Marjanović | david.marjanovic_at_gmx.at | 00:44 | 2006/5/16
|
Fonts
The fonts currently in use are, in order:
- TITUS Cyberbit Basic, Code2000, Doulos SIL, Chrysanthi Unicode, Bitstream Cyberbit, Bitstream CyberBase, Thryomanes, Gentium, GentiumAlt, Visual Geez Unicode, Lucida Grande, Arial Unicode MS, Microsoft Sans Serif, Lucida Sans Unicode
Controlled by Template:Unicode_fonts.
I realize this is not preferable for everyone (I prefer Gentium over Code2000, and Lucida Sans Unicode over Arial Unicode MS), but the reason is simply that the current order will result in the most characters being displayed, and thus is imnhso the best choice for the Wikipedia. I highly recommend using a personal stylesheet (/monobook.css &c, class .Unicode) to enforce a "prettier" display where preferred. User talk:Anárion 12:46, 16 Mar 2005 (UTC)
Guts of template
<span class="Unicode">{{{1}}}</span>.
wherein class="Unicode" is defined in MediaWiki:Common.css.
Examples
{{unicode|⋊}} and {{unicode|⋉}} give ⋊ and ⋉.
See also
- {{latinx}} — favours fonts supporting all the characters in the Latin Exteneded B range (includes Old/Middle English).
- {{IPA}} — International Phonetic Alphabet.
- {{polytonic}} — Polytonic Greek.
- {{CDM}} — Forces a non-buggy font when using Combining Diacritical Marks.
- {{mufi}} — Forces a font which supports the MUFI characters.
A separate template for a particular symbol is sometimes convenient. e.g.:
- Template:0/ (talk, backlinks, edit) containing:
<span class="Unicode">∅</span><noinclude>[[Category:Multilingual support templates|0/]]</noinclude>
giving ∅ (the name is a representation of the symbol, with the slash after instead of through the circle).