Template:Unicode
{{{1}}}
Usage[edit]
This template sets the font for its argument to one which is likely to support special symbols. The argument is specified using HTML character encoding, either in decimal (e.g. {) or hexadecimal (e.g. ©). Examples:
- Template:Code --> ⋊
- Template:Code --> ⋊
- Template:Code --> ⋊ (this may look trivial, but could be helpful in some browsers)
or
- Template:Code --> ⋉
- Template:Code --> ⋉
- Template:Code --> ⋉
Purpose[edit]
This template was created to allow easy switching to unicode fonts. It should only be used for characters which do not render correctly on some browsers, such as Microsoft Internet Explorer on Windows XP.
The fonts selected are designed to maximize the probability of rendering 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.
Internals[edit]
The source for the template is: <source lang="XML"> {{{1}}} </source> and class="Unicode" is defined in MediaWiki:Common.js as follows: <source lang="CSS"> .Unicode {
font-family: "Arial Unicode MS", "Lucida Sans Unicode";
} </source> Note it defines this only for Windows XP.
You can override this with your own Unicode class definition in your personal stylesheet (e.g. User:username/common.css).
The above documentation is transcluded from Template:Unicode/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |