Template:Unicode/doc: Difference between revisions

Content deleted Content added
move template
strip doc to make it clear that the template no longer does anything; rm cats
Line 4:
{{substituted|auto=yes}}
 
'''''This template no longer performs any function. It is retained solely to avoid breaking historic versions of articles.'''''
== 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_characters#HTML_character_references|HTML character encoding]], either in decimal (e.g. <code>&amp;#123;</code>) or hexadecimal (e.g. <code>&amp;#xA9;</code>), or by pasting it as plain text. Examples:
 
* The math symbol termed "LEFT NORMAL FACTOR SEMIDIRECT PRODUCT"
** {{#invoke:DemoTemplate|unicode|&#x22CA;}}
** {{#invoke:DemoTemplate|unicode|&#8906;}}
** {{#invoke:DemoTemplate|unicode|⋊}}
* The math symbol termed "'''RIGHT''' NORMAL FACTOR SEMIDIRECT PRODUCT"
** {{#invoke:DemoTemplate|unicode|&#x22C9;}}
** {{#invoke:DemoTemplate|unicode|&#8905;}}
** {{#invoke:DemoTemplate|unicode|⋉}}
 
== Purpose ==
 
This template was created to allow easy switching to [[Unicode font]]s. 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 range]]s. It is probably mostly useful for various [[Unicode symbols]]. Do not use it for the following:
 
* For strings in the [[International Phonetic Alphabet]], use {{tl|IPA}}.
* For various non-Latin scripts, use {{tl|lang}} if possible, or {{tl|script}} otherwise.
 
== Internals ==
 
The source for the template is:
<source lang="XML">
<span class="Unicode">{{{1}}}</span>
</source>
and <code>class="Unicode"</code> is defined in [[Cascading Style Sheets|CSS]] at [[MediaWiki:Common.js]] as follows (but {{em|only}} for Windows XP, by targeting XP in JavaScript):
<source lang="CSS">
.Unicode {
font-family: "Arial Unicode MS", "Lucida Sans Unicode";
}
</source>
 
You can override this with your own <code>Unicode</code> class definition in your [[Help:User style|personal stylesheet]] (i.e., [[Special:MyPage/common.css]]).
 
== Template data ==
{{TemplateDataHeader}}
<templatedata>
{
"description": "This template is used to set the font so that Unicode symbols are more likely to work.",
"params": {
"1": {
"label": "Symbol",
"type": "string",
"description": "The code, either in decimal, hexadecimal, or symbol form."
}
}
}
</templatedata>
 
== See also ==
Line 69 ⟶ 19:
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:MSIE font fix templates]]
[[Category:Unicode templates]]
}}</includeonly>