Template:Sc/doc
From FORwiki

Usage
{{sc}}, named after small caps, is a more robust and consistent WYSIWYG extension of {{Smallcaps}}, backward-compatible in syntax and results. It will rewrite your text using typographical SMALL CAPS. This template is especially useful for name/surname disambiguation in lead sections, and to lighten all-caps words or pronounceable acronyms.
Code | Adolfo {{sc|B|ioy| C|asares}}
|
Displayed | Adolfo BIOY CASARES |
Pasted | Adolfo BIOY CASARES |
Contrary to {{Smallcaps}}, the text will still show the disambiguated "Adolfo BIOY CASARES" (instead of "Adolfo Bioy Casares") in:
- A copy-pasted version of the text.
- A degraded version displayed by a non-CSS browser, or one whose CSS has been disabled, or portable devices such as mobile phones.
- An excerpt as displayed in the results of search engines such as Google.
This preserves the benefit of small caps where they were judged useful.
Code | {{sc|The Lord G|OD| was the L|ORD| in 4004 |BC}}
|
Displayed | The Lord GOD was the LORD in 4004 BC |
Pasted | The Lord GOD was the LORD in 4004 BC |
In this case, the pasted/degraded/excerpted text will retain proper theological caps (instead of the erroneous "The Lord God was the Lord in 4004 bc" that {{Smallcaps}} would give.)
Code examples
Display (screen) Output (pasted) | Code | |
---|---|---|
Template:Y | Sinéad O'CONNOR (born 1966) Sinéad O'CONNOR (born 1966) | Sinéad {{sc|O'C|onnor}} (born 1966) |
Template:Y | Leonardo DiCAPRIO (born 1974) Leonardo DiCAPRIO (born 1974) | Leonardo {{sc|DiC|aprio}} (born 1974) |
Template:Y | Adolfo BIOY CASARES is at "B" Adolfo BIOY CASARES is at "B" | Adolfo {{sc|B|ioy| C|asares}} is at "B" |
Template:Y | José ÁLVAREZ de TOLEDO y GONZAGA José ÁLVAREZ de TOLEDO y GONZAGA | José {{sc|Á|lvarez| de T|oledo| y G|onzaga}} |
Template:Y | NESBØ, VÅGEN, LOUŸS, ZÚÑIGA, KABAAĞAÇLI NESBØ, VÅGEN, LOUŸS, ZÚÑIGA, KABAAĞAÇLI | {{sc|N|esbø|, V|ågen|, L|ouÿs|, Z|úñiga|, K|abaağaçlı}} |
Template:Y | THE NAME OF THE 2ND GAME THE NAME OF THE 2ND GAME | {{sc|T|he| ''N|ame'' of the| 2|<sup>nd</sup>| G|ame}} |
When your text shouldn't be wrapped: | ||
Template:Y | From 4004 BC to 525 AD From 4004 BC to 525 AD | From {{sc|wrap=no|4004 |BC}} to {{sc|wrap=no|525 |AD}} |
Template:Y | The shortcut is CTRL + ALT + DEL The shortcut is CTRL + ALT + DEL | The shortcut is {{sc|wrap=no|C|TRL| + A|LT| + D|EL}} |
When your text uses an = sign: | ||
Template:N | YOU AND MEs | {{sc|Y|ou and| M|e| = U|s}} |
Template:Y | YOU AND ME = US | {{sc|Y|ou and| M|e| <nowiki>=</nowiki> U|s}} |
Template:Y | YOU AND ME = US | {{sc|Y|ou and| M|e| = U|s}} |
Template:Y | YOU AND ME = US | {{sc|Y|ou and| M|e| {{=}} U|s}} |
When your text has a template inside: | ||
Template:N | in FIDDLER'S Template:GreenTEMPLATE:GREEN forever | in {{sc|F|iddler's| {{Green|G}}|{{Green|reen}}}} forever |
Template:N | G}}{{GREEN|REEN}} forever | in {{sc|F|iddler's| {{Green{{!}}G}}|{{Green{{!}}reen}}}} forever |
Template:Y | in FIDDLER'STemplate:GreenTEMPLATE:GREEN forever | in {{sc|1=F|2=iddler's|3={{Green| G}}|4={{Green|reen}}}} forever |
Template:Y | in FIDDLER'S Template:Green forever | in {{sc|F|iddler's}} {{Green|1={{sc|G|reen}}}} forever |
When your text is inside a template: | ||
Template:N | Template:Green | {{Green|in {{sc|F|iddler's| G|reen}} forever}} |
Template:Y | Template:Green | {{Green|1=in {{sc|F|iddler's| G|reen}} forever}} |
Template:Y | in FIDDLER'S GREEN forever | {{Colors|green|yellow|3=in {{sc|F|iddler's| G|reen}} forever}} |
When your text uses a | pipe: | ||
Template:N | AFTER | {{sc|B|efore|{{!}}|afteR}} |
Template:N | BEFOREafteR | {{sc|B|efore|3={{!}}|afteR}} |
Template:Y | BEFORE|AFTER | {{sc|B|efore|<nowiki>|</nowiki>|afte|R}} |
Template:Y | BEFORE|AFTER | {{sc|B|efore|||afte|R}} |
When your text uses a link: | ||
Template:N | [[MAO Zedong]] | [[{{sc|M|ao}} Zedong]] |
Template:Y | MAO Zedong | [[Mao Zedong|{{sc|M|ao}} Zedong]] |
See also
Alternative template that only changes the display (copy-paste will get the small-caps as lowercase):
- {{Smallcaps}} – small caps display
Templates that change the display (copy-paste will get the original text):