टेम्पलेट:Unicode
{{{1}}}
Usage
संपादन करींIn its basic version, 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. ©
), or by pasting it as plain text. Examples:
{{unicode|⋊}}
→ ⋊{{unicode|⋊}}
→ ⋊{{unicode|⋊}}
→ ⋊
or
{{unicode|⋉}}
→ ⋉{{unicode|⋉}}
→ ⋉{{unicode|⋉}}
→ ⋉
Purpose
संपादन करींThis template was created to allow easy switching to Unicode fonts. It helps some browsers in which characters which do not render correctly, 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 is defined only for Windows XP. It does so by targeting XP in JavaScript.
You can override this with your own Unicode
class definition in your personal stylesheet (e.g. User:username/common.css
).
Template data
संपादन करींTemplateData for Unicode
This template is used to set the font so that Unicode symbols are more likely to work.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Symbol | 1 | The code, either in decimal, hexadecimal, or symbol form. | String | optional |
इहो देखल जाय
संपादन करीं- {{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
परिचय खातिर ऊपर दिहल गइल बिबरनलेख के टेम्पलेट:Unicode/doc से ट्रांसक्लूड क के इहाँ देखावल जा रहल बाटे। (संपादन करीं | इतिहास देखीं) संपादक लोग एह टेम्पलेट के अभ्यासपन्ना (सैंडबाक्स) (बनाईं | मिरर करीं) आ टेस्टकेस (बनाईं) पन्ना सभ पर अभ्यास आ प्रयोग (टेस्टिंग) क सकत बाटे। अनुरोध बा कि अगर श्रेणी जोड़े के होखे तब /doc उपपन्ना (सबपेज) पर जोड़ल जाय। एह टेम्पलेट के उपपन्ना (सबपेज) देखीं। |