แม่แบบ:Sc/doc

==Usage**
, 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|small caps. This template is especially useful for name/surname disambiguation in lead sections, and to lighten all-caps words or pronounceable acronyms.
Contrary to , 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.
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  would give.)

**Notes**
 An optional parameter, wrap=no will prevent the wrapping of a part of the text:
 - The template will handle up to 20 segments, but could very easily be extended to do twice or more. If you accidentally use more than 20 segments, the template will output an error message in a yellow box like this: KaBoom This will let you know about it instead of having your extra segments be silently ignored.- The actual process depends on the alternance of odd and even segments (see also the more visual examples):
** Odd segments are outputted verbatim, and displayed with a small caps filter, that is: uppercase letters are outputted uppercase and displayed as regular caps, lowercase letters are outputted as lowercase but displayed as small caps. All other characters are unaltered. A copy-paste of this segment (or a degraded visual on an older browser) will thus display the original text provided to the segment, with its original case. This allows both control of where regular caps will go, and of the contents of copy-paste and degradation.
** Even segments are forced to uppercase for output, and displayed in small caps, that is: whether the source text is uppercase or lowercase doesn't matter here, the output and display will be the same, uppercase letters displayed as small-caps. Note that non-letter signs (especially numbers) shouldn't go in this segment, because they too would be reduced in size.- Diacritics (å, ç, é, ğ, ı, ñ, ø, ş, ü, etc.) are handled.- There are dedicated templates LORD and GOD for the scriptural use. They are equivalent but streamlined. Preferably do not use  for this.- With a single argument,  is 100% equivalent to . Thus,  could be redirected to  without breaking anything. However,  is not to be redirected to , because there would be no benefit to it, and because the code for  is much shorter to transclude for what it does than the longer code for .- Use of this template does not generate any automatic categorization. As with most templates, if the argument contains an = sign, the sign should be replaced with =, or the whole argument be prefixed with 1=. And for wikilinks, you need to use piping.

**Code examples**
Note: some of the "wrong" examples would actually work when used outside of a table, but it is preferable to know and use codes that will work everywhere instead.


**Reasons to use small caps**
Small caps are useful for encyclopedical and typographical uses including:
 To lighten ALL-CAPS words or pronounceable acronyms- The biblical "" (instead of LORD or Lord) or "Lord " as written in the King James Bible and such- The acronyms UNESCO|nesco (instead of UNESCO or Unesco) or UNICEF|nicef- The trademark Time (magazine)|ime (instead of TIME or Time)
 To lighten ALL-CAPS surnames mandated by citation styles such as Harvard- Piccadilly has been compared to "a Parisian boulevard" (ickens 1879).- Charles Dickens, Jr|ickens, C., Jr (1879). "Piccadilly" in Dickens's Dictionary of London. London: C. Dickens.
 To disambiguate Western names and surnames at a glance- Many Hispanic names are tricky to decompose:
** Jorge Luis Borges|Jorge Luis orges, but Adolfo Bioy Casares|Adolfo asares (both filed under "B")
** José Álvarez de Bohórquez|José oyeneche, Marqués de los Trujillos- And many Hispanic names are better known by their second surname:
** Pablo Ruiz Picasso|Pablo icasso, Federico García Lorca|Federico orca, Emir Rodríguez Monegal|Emir onegal, José Luis Rodríguez Zapatero|José Luis apatero- Many names (Martín, Miguel, Ramón, Tomás, etc.) can be either forename or surname:
** Juan Martín Hernández|Juan Martín ernández vs. Rafael Martín Vázquez|Rafael ázquez (two ball players)- Hungarian names natively use the surname-first order:
** Petőfi Sándor|etőfi Sándor is usually westernized Sándor Petőfi|Sándor etőfi
 To disambiguate Eastern surnames and given names at a glance- Most Chinese names and Korean names retain their surname-first order:
** Mao Zedong|ao Zedong fought Chiang Kai-shek|hiang Kai-shek
** The movie Oldboy by Park Chan-wook|ark Chan-wook starring Choi Min-sik|hoi Min-sik was not seen by Kim Il-sung|im Il-sung- Most Japanese names are reversed in the West, but not all:
** (Akira Kurosawa|Akira urosawa or Motojirō Kajii|Motojirō ajii are usually westernized)
** But Matsuo Bashō|atsuo Bashō, Ono no Komachi|no no Komachi, Kaga no Chiyo|aga no Chiyo (haiku poets known under their given name)
** But Edogawa Ranpo|dogawa Ranpo (kept due to wordplay "EdgarA–llanPoe) vs. Ranpo Edogawa|Ranpo dogawa (some modern uses)- Burmese names ignore the concept of forename/surname, but are adapted in the West:
** Daw Aung San Suu Kyi|Aung San yi, daughter of General Aung San|an ("Daw" is honorific, her name take part of his name)- And some Burmese names are so short they need to retain an honorific prefix (U for Mister, Daw for Madam, Thakin for Master) which is confusable with a forename or a surname:
** U Nu|U u ("Mister u"), a.k.a. Thakin Nu|Thakin u ("Master u")

**Technical code**
Technically, any call such as:
 
 
 
Will result in the very same code:
 
That is:-  in the odd segments-  in the even segments
The "font-size:80%" displays a capital at the same height than those generated by "font-variant:small-caps". (The "font-variant:small-caps;text-transform:lowercase" has not been used because it doesn't work at least in Internet Explorer 5 and 6, which are still fairly common browsers.)

**See also**
Streamlined equivalent versions for very common cases:- LORD, GOD
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):- Nocaps    – lower case display- Smallcaps – small caps display- Allcaps   – upper case display
Magic words that rewrite the output (copy-paste will get the text as displayed):-       – lower case output of the full text-       – upper case output of the full text-  – lower case output of the first character only-  – upper case output of the first character only
หมวดหมู่:แม่แบบจัดรูปแบบและฟังก์ชันวิกิพีเดีย
ar:قالب:كبيبرات/و