แม่แบบ:Unicode
{{{1}}}
Usage
แก้ไข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:
- แม่แบบ:Code --> ⋊
- แม่แบบ:Code --> ⋊
- แม่แบบ:Code --> ⋊ (this may look trivial, but could be helpful in some browsers)
or
- แม่แบบ:Code --> ⋉
- แม่แบบ:Code --> ⋉
- แม่แบบ:Code --> ⋉
Purpose
แก้ไข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
แก้ไขThe source for the template is:
<span class="Unicode">{{{1}}}</span>
and class="Unicode" is defined in MediaWiki:Common.js as follows:
.Unicode {
font-family: "Arial Unicode MS", "Lucida Sans Unicode";
}
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).
See also
แก้ไข- {{IPA}} – to format symbols of the International Phonetic Alphabet
- {{PUA}} – to mark characters from the Private Use Area that should be retained
- {{transl}} – generic romanization
- {{script}} – Scripts in Unicode navigation box
- {{UnicodeTitle}}
- {{unichar}} to format an Unicode character description
The above คู่มือการใช้งานเป็นการรวมข้ามจากแม่แบบ:Unicode/doc. (แก้ | ประวัติ) ผู้แก้ไขสามารถทำการทดลองได้ที่มอดูล (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้. |