Content deleted Content added
update, per request |
add example table |
||
Line 7:
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_characters#HTML_character_references|HTML character encoding]], either in decimal (e.g. <tt>&#123;</tt>) or hexadecimal (e.g. <tt>&#xA9;</tt>). Examples:
* {{code|<nowiki>{{unicode|&#x22CA;}}</nowiki>}} → {{unicode|⋊}}
* {{code|<nowiki>{{unicode|&#8906;}}</nowiki>}} → {{unicode|⋊}}
* {{code|<nowiki>{{unicode|⋊}}</nowiki>}} → {{unicode|⋊}} (this may look trivial, but could be helpful in some browsers)
or
* {{code|<nowiki>{{unicode|&#x22C9;}}</nowiki>}} → {{unicode|⋉}}
* {{code|<nowiki>{{unicode|&#8905;}}</nowiki>}} → {{unicode|⋉}}
* {{code|<nowiki>{{unicode|⋉}}</nowiki>}} → {{unicode|⋉}}
==Subject==
The template also takes a ''subject'' parameter, to use alternate fonts for specific sets of characters, organized thematically, where the usual fonts don't provide glyphs. The currently supported subjects are animal, astro, chem, communication, dentistry, education, emoticon, enclosed, event, food, game, map, medicine, money, music, person, picto, plant, politicsreligion, region, sport, technology, time, ui, warning, weather. <!-- EDITORS, complete list of which symbols are included in which subjects, and support for the subjects by various fonts, is in the TALK page for the doco. --> Examples:
Line 21 ⟶ 22:
Depending on your browser's built-in font substitution capabilities, and fonts you have installed, you may or may not see any difference.
{| class="wikitable"
! plain !! <code><nowiki>{{unicode|}}</nowiki></code> !! {{para|subject|}} !! <code><nowiki>{{unicode||subject=}}</nowiki></code> !! note
{{unicode/example|ABC|subject=animal}}
|}
== Purpose ==
Line 40 ⟶ 46:
<source lang="CSS">
.Unicode {
font-family: "Arial Unicode MS", "Lucida Sans Unicode";
}
</source>
|