Šablon:Unikod/dok

Izvor: Vojna Enciklopedija
< Шаблон:Уникод
(razl) ← Starija izmena | Trenutna verzija (razl) | Novija izmena → (razl)
Pređi na navigaciju Pređi na pretragu

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. &#123;) or hexadecimal (e.g. &#xA9;), or by pasting it as plain text. Examples:

  • {{unicode|&amp;#x22CA;}}
  • {{unicode|&amp;#8906;}}
  • {{unicode|&#8906;}}

or

  • {{unicode|&amp;#x22C9;}}
  • {{unicode|&amp;#8905;}}
  • {{unicode|&#8905;}}

Purpose

This template was created to allow easy switching to Unicode fonts. It helps some browsers in which characters 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:

Internals

The source for the template is:

<span class="Unicode">{{{1}}}</span>

and class="Unicode" is defined in CSS at MediaWiki:Common.js as follows (but only for Windows XP, by targeting XP in JavaScript):

.Unicode {
    font-family: "Arial Unicode MS", "Lucida Sans Unicode";
}

You can override this with your own Unicode class definition in your personal stylesheet (i.e., Special:MyPage/common.css).

Template data

Ovo je TemplateData dokumentacija za ovaj šablon, korišćena u Vizuelnom uređivaču i u drugim alatkama; pogledajte mesečni izveštaj o greškama za ovaj šablon.

TemplateData za Unikod

This template is used to set the font so that Unicode symbols are more likely to work.

Parametri šablona

ParametarOpisVrstaStatus
Symbol1

The code, either in decimal, hexadecimal, or symbol form.

tekstneobavezno

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

Šablon:Unicode templates