Template:Smallcaps/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Line 24:
== Technical notes ==
{{Anchors|Technical|Notes}}
* [[Wikipedia:Diacritic|Diacritic]]s (å, ç, é, ğ, ı, ñ, ø, ş, ü, etc.) are handled. However, because text formatting is performed by each reader's browser and fonts, inconsistencies in [[Wikipedia:CSS|CSS]] implementations can lead to some browsers not converting certain rare diacritics.
* Use of this template does not generate any automatic categorization. As with most templates, if the argument contains an <code>=</code> sign, the sign should be replaced with {{[[Template:=|=]]}}, or the whole argument be prefixed with {{para|1}}. And for wikilinks, you need to use piping. There is a parsing problem with MediaWiki which causes unexpected behavior when a template with one style is used within a template with another style.
* There is a problem with [[Wikipedia:dotted and dotless I|dotted and dotless I]]. <code><nowiki>{{Lang|tr|{{</nowiki>Smallcaps|ı i}}}}</code> may gives you {{Smallcaps|ı ı}}, although the language is set to Turkish, unless the font including localized glyphs for small caps variant.
* Do not use this inside {{cs1}} or {{cs2}} templates, or this template's markup will be included in the [[Wikipedia:COinS|COinS]] metadata. This means that [[Wikipedia:reference management software|reference management software]] such as [[Wikipedia:Zotero|Zotero]] will have entries corrupted by the markup. For example, if {{tl|smallcaps}} is used to format the surname of ''Bloggs, Joe'' in {{tl|cite journal}}, then Zotero will store the name as <code><nowiki><span style="font-variant:small-caps;">Bloggs</span>, Joe</nowiki></code>. This is incorrect metadata. If the article that you are editing uses a citation style that includes small caps, either format the citation manually (see examples below) or use a citation template that specifically includes small caps in its formatting, like {{tl|Cite LSA}}.
* This template will not affect the use of HTML character entities like <code>&amp;nbsp;</code>.
* Technically, the template is a wrapper for: <code>font-variant: small-caps</code>.