This is the documentation page for Үлгі:Unicode.
When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.


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:

Ver
Update to late P2, P3 call forms. FrankB 15:38, 10 February 2007 (UTC)

Үлгі:Interwikitmp-grp

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:

  1. The template code is easier to remember than the HTML font style specification, which must be entered fairly precisely for this to work.
  2. 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.
  3. 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

The fonts currently in use are, in order:

Үлгі:Unicode fonts

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|&#x22CA;}} and {{unicode|&#x22C9;}} 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.:

giving Үлгі:0/ (the name is a representation of the symbol, with the slash after instead of through the circle).