Jump to content

Template:Small-caps: Difference between revisions

From Wikisource
Content deleted Content added
Az1568 (talk | contribs)
m Reverted changes by CanadaCitizen (talk) to last version by Jayvdb
ZandDev (talk | contribs)
inverted redirect
Tag: Removed redirect
 
(20 intermediate revisions by 14 users not shown)
Line 1: Line 1:
<includeonly><span style="font-variant:small-caps">{{{1}}}</span></includeonly><noinclude>
<templatestyles src="small-caps/styles.css"/><span class="smallcaps">{{{1}}}</span><noinclude>
{{documentation}}

[[Category:Typography templates]]
== Documentation ==
This template simplifies formatting text in {{small-caps|Small caps}}, where lowercase letters are replaced with smaller capital letters.

== Example ==

<nowiki>{{small-caps|Small caps}}</nowiki>

[[Category:Formatting templates|Small-caps]]
[[fr:Modèle:Sc]]
[[la:Formula:Sc]]
[[nl:Sjabloon:Sc]]
</noinclude>
</noinclude>

Latest revision as of 10:32, 8 November 2023

{{{1}}}

Template documentation

Usage

[edit]

This template simplifies formatting text in Small caps, where lowercase letters are replaced with smaller capital letters. {{sc}} may be used for shorthand; the broad usage of this template has made an abbreviated version convenient.

Example

[edit]
{{small-caps|Small caps}}
{{sc|Small caps}}

Small caps

Misuse for capitalisation

[edit]

The use of this template to simulate smaller capitalised text is semantically incorrect:

* {{small-caps|this is incorrect. grammatically, there should be capitals in this sentence.}}
* {{x-smaller|THIS IS CORRECT. IT IS CAPITALS, BUT IN A SMALLER FONT}}
* {{all small caps|This is also correct. It is the "small-caps" variant but the text is not all lowercase when copied.}}
  • this is incorrect. grammatically, there should be capitals in this sentence.
  • THIS IS CORRECT. IT IS CAPITALS, BUT IN A SMALLER FONT
  • This is also correct. It is the "small-caps" variant but the text is not all lowercase when copied.

While it may look similar, the first one has problems:

  • It copy-pastes as lowercase text, because the CSS only affects styling, not the content.
  • Viewers that do not handle the CSS used for small-caps (font-variant) will display the text as all lowercase.

The template {{all small caps}} can be used to request the special small-caps glyphs (generally slightly proportionally wider than simply making the font smaller) for all letters, uppercase or lowercase, without having the text copy-paste as lowercase.

See also

[edit]
  • {{All small caps}} or {{asc}}, which presents both upper and lower case as small-caps.

Format text as small-caps. See also {{All small caps}}.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

The text to format as small caps

Stringrequired