Template:Smallcaps/doc: Difference between revisions
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) m Text replacement - "[[WP:" to "[[Wikipedia:WP:" |
Caleb Cooper (talk | contribs) No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
Line 4:
{{Uses TemplateStyles|Template:Smallcaps/styles.css}}
{{template shortcut|sm|aut}}{{Commons Import}}
{{tlx|Smallcaps}} will display the lowercase part of your text as a soft format of typographical {{Smallcaps|[[wikipedia:small caps|small caps]]}}.<br />For example: {{tlx|Smallcaps|Beware of Dog}} → {{Smallcaps|Beware of Dog}}.
This template should be avoided or used sparingly in articles, as the Wikipedia [[Wikipedia:MOS:SMALLCAPS|Manual of Style advises]] that small caps should be avoided and reduced to one of the other title cases or normal case, and that [[Wikipedia:Manual of Style#Keep markup simple|markup should be kept simple]].
{{em|For display of acronyms/initialisms}} in small caps, use {{tlx|Smallcaps2}} (a.k.a. {{tlx|sc2}}) instead.
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>&nbsp;</code>.
* Technically, the template is a wrapper for: <code>font-variant: small-caps</code>.
Line 89:
Note that most of these uses are not sanctioned by the [[Wikipedia:WP:Manual of Style]] and should be avoided in article prose.
==
For more detail and examples see wikipedia page [[wikipedia:Template:Smallcaps]]
== Templatedata ==
| |||