Template:Sc/doc

From FORwiki

(Difference between revisions)
Jump to: navigation, search

Admin (Talk | contribs)
(Created page with '{{Documentation subpage}} == Usage == '''<nowiki>{{sc}}</nowiki>''', named after '''s'''mall '''c'''aps, is a more robust and consistent WYSIWYG extension of {{tl|Smallcaps}}, b...')
Newer edit →

Revision as of 20:32, 24 December 2009

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| &#61; 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:NG}}{{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:NAFTER {{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|&#124;|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):

Templates that change the display (copy-paste will get the original text):

Personal tools