Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Legitimate uses  





1.2  Deprecated uses  







2 Technical notes  





3 Comparison of the case transformation templates  





4 TemplateData  





5 See also  














Template:Smallcaps all






Ænglisc
العربية
تۆرکجه

 / Bân-lâm-gú
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Boarisch
Català
Чӑвашла
Español
Esperanto
فارسی
Føroyskt
Français
ГӀалгӀай
/Hak-kâ-ngî

Ilokano
Italiano
Kurdî
Lietuvių
Македонски

مصرى
 / Mìng-dĕ̤ng-nḡ


ି
Português
Română
Русский
Scots
Shqip
Simple English
سنڌي
Slovenščina
کوردی
Српски / srpski
Tagalog
Татарча / tatarça


Тоҷикӣ
Українська
اردو
Tiếng Vit



 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikibooks
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


{{{1}}}

This text changes most letters, both upper and lower case, to small capitals, though half of the Greek alphabet is instead converted to lower case (namely the letters Α Β Γ Δ Θ Λ Μ Ρ Σ Φ Χ Ω and their accented forms apart from Ώ). With those exceptions, the text is hard-coded as upper case.

This template substitutes letters with their capital variants, then displays them as small caps, about the same height as lower-case letters. The upper-case conversion happens regardless of user preferences, and the content will copy-paste as upper case. For this reason, it is usually not suitable for article text, and is intended for specialized purposes. It is primarily for use in other templates, to correct mixed- or lower-case input.

Other templates have been developed to handle content that should remain lower or mixed-case, as detailed in § Deprecated uses, below.

This template should not be used for emphasis in articles. See Wikipedia:Manual of Style/Capital letters (shortcut: MOS:CAPS), especially the section § All caps and small caps (direct shortcut to the section: MOS:SMALLCAPS).

Usage

Code
{{smallcaps all|Hello World}}
Displayed
HELLO WORLD
Pasted
Correctly as "Hello World" in a few browsers, but incorrectly as "hello world" in many.

To maintain initial full capitals, a second parameter is used. Example:

Code
{{smallcaps all|H|ello}} {{smallcaps all|W|orld}}
Displayed
HELLO WORLD
Pasted
Correctly as "Hello World".

This style is not usually used in Wikipedia. For cases where it is needed, use {{Smallcaps}} (and {{Smallcaps2}} for smaller output), which produce this result without need of additional parameters, and for entire spans of text.

If the template is placed outside a link, it will capitalize the link itself, so in some cases it needs to be placed inside the link.

This template will corrupt HTML character entities, such as  . If a special character must be used in its content, it must be encoded as a decimal character reference (e.g.  ).

If either parameter's content contains an equals sign (=) the parameters need to be numbered, |1= and (if two are used) |2=, or the template will break. This is a general limitation of MediaWiki syntax.

Legitimate uses

This template should only be used for text that is normally all-lowercase regardless of typographic style, but which is desired to be shown in smallcaps for display purposes. An example is indication of stressed syllables in the {{Respell}} template.

It is also capable of mixed-case display with additional parameters, but is rarely needed for this purpose since {{Smallcaps}} and {{Smallcaps2}} do this more robustly.

Deprecated uses

The default parameter of this template should never be used for strings that should be capitalized regardless of typographic style, such as acronyms. As noted above, while it has the capability of being used with additional parameters to represent mixed-case text, this is better done with {{Smallcaps2}} (e.g., TCMoS), or {{Smallcaps}} (e.g., Hello World), both of which work on entire spans of mixed-case text, and without the complication of requiring additional parameters.

Several of the following attempts to lighten all-caps words, abbreviations, or acronyms, as a matter of typographic style, will corrupt the data. Many of them violate the Manual of Style if used in articles and those that do not are better done with other templates:

Technical notes

Comparison of the case transformation templates

Template Shortcut Purpose Example Output Copy-pastes as
{{Smallcaps}} {{sc1}}
{{SC}}
No conversion, small-caps display, mixed case.
No font size change (acronyms are unaffected).
Common mixed-case heading style (not in Wikipedia).
Uses: Rendering publication titles in citation styles that require them in small-caps.
{{sc1|UNICEF}} and 312 {{sc1|BCE}}

{{sc1|Mixed Case}}

UNICEF and 312 BCE

Mixed Case

UNICEF and 312 BCE
Mixed Case
{{Smallcaps2}} {{sc2}} No conversion, small-caps display, mixed case.
Slightly reduced font size.
This is the conventional display of smallcaps for acronyms/initialisms in modern book typography.
Other uses: Unicode character names.
{{sc2|UNICEF}} and 312 {{sc2|BCE}}

{{sc2|Mixed Case}}

UNICEF and 312 BCE

Mixed Case

UNICEF and 312 BCE
Mixed Case
{{Smallcaps all}} {{sc}} Lowercase conversion, small-caps display, all uppercase.
The size of lowercase letters.
Uses: Stressed syllables (in{{Respell}}); and ???.
Warning: Default use will permanently change UPPER-orMixed-Case data,
does not work consistently across different browsers,
and is not compatible with named HTML character entities.
{{sc|UNICEF}} and 312 {{sc|BCE}}

{{sc|Mixed Case}}

UNICEF and 312 BCE
MIXED CASE
unicef and 312 bce
mixed case

(in many browsers)
{{Allcaps}} {{caps}} No conversion, all-caps display.
The size of uppercase letters.
Uses: ???.
{{caps|UNICEF}} and 312 {{caps|BCE}}

{{caps|Mixed Case}}

UNICEF and 312 BCE
Mixed Case
UNICEF and 312 BCE
Mixed Case
{{Nocaps}}   No conversion, all-lowercase display.
The size of lowercase letters.
Uses: ???.
{{nocaps|UNICEF}} and 312 {{nocaps|BCE}}

{{nocaps|Mixed Case}}

UNICEF and 312 BCE
Mixed Case
UNICEF and 312 BCE
Mixed Case

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Smallcaps all in articles based on its TemplateData.

TemplateData for Smallcaps all

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
22

no description

Unknownoptional

See also

Magic words that rewrite the output (copy-paste will get the text as displayed, not as entered):


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Smallcaps_all&oldid=880486685"

Categories: 
Deprecated templates
Text-specific formatting and function templates
Hidden categories: 
Wikipedia template-protected templates
Templates not safe for use in citation templates
Templates using TemplateData
 



This page was last edited on 27 January 2019, at 18:27 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki