Template:Unicode/doc

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 i…

Template:Unicode/doc

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:

  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 preferred 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

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 .

  • {{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.


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.