ഫലകം:Sc/doc
This is a documentation subpage for ഫലകം:Sc. It may contain usage information, categories and other content that is not part of the original ഫലകം page. |
Template:Sc/doc is deprecated. Please use Template:smallcaps instead. |
This ഫലകം employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Usage
തിരുത്തുക{{sc}}, named after small caps was a variation on {{Smallcaps}} but has, since a deletion discussion been merged with the latter. Per (particularly ) and , small caps should not be used for emphasis nor for disambiguating names in the ways for which {{sc}} was designed.
The way in which {{sc}} has been merged to {{smallcaps}} means that implementations should appear identical, but the copy/pasted text will no longer maintain the capitalisation (as that is the accessibility problem with this version of the template).
For smallcaps, in the few occasions where it should be used (see and ), please use {{smallcaps}} instead.
Notes
തിരുത്തുക- An optional parameter,
wrap=no
will prevent the wrapping of a part of the text:
{{sc|wrap=no|4004 |BC}}
- 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: 12 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 unchanged. Formerly, they were 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 {{sc}} for this.
- 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.
Reasons to use small caps
തിരുത്തുകPlease note that , and recommend against the use of small caps, including the uses below. |
Small caps are useful for encyclopedical and typographical uses including:
- To lighten ALL-CAPS words or pronounceable acronyms
- The biblical "LORD" (instead of LORD or Lord) or "Lord GOD" as written in the King James Bible and such
- The acronyms UNESCO (instead of UNESCO or Unesco) or UNICEF
- The trademark TIME (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" (DICKENS 1879).
- DICKENS, C., Jr (1879). "Piccadilly" in Dickens's Dictionary of London. London: C. Dickens.[1]
- To disambiguate Western names and surnames at a glance
- Many Hispanic names are tricky to decompose:
- Jorge Luis BORGES, but Adolfo BIOY (both filed under "B")
- José ÁLVAREZ, Marqués de los Trujillos
- And many Hispanic names are better known by their second surname:
- Many names (Martín, Miguel, Ramón, Tomás, etc.) can be either forename or surname:
- Juan Martín HERNÁNDEZ vs. Rafael MARTÍN (two ball players)
- Hungarian names natively use the surname-first order:
- PETŐFI Sándor is usually westernized Sándor PETŐFI
- To disambiguate Eastern surnames and given names at a glance
- Most Chinese names and Korean names retain their surname-first order:
- MAO Zedong fought CHIANG Kai-shek
- The movie Oldboy by PARK Chan-wook starring CHOI Min-sik was not seen by KIM Il-sung
- Most Japanese names are reversed in the West, but not all:
- (Akira KUROSAWA or Motojirō KAJII are usually westernized)
- But MATSUO Bashō, ONO no Komachi, KAGA no Chiyo (haiku poets known under their given name)
- But EDOGAWA Ranpo (kept due to wordplay "EdgarA–llanPoe) vs. Ranpo EDOGAWA (some modern uses)
- Burmese names ignore the concept of forename/surname, but are adapted in the West:
- Daw Aung San SUU, daughter of General AUNG ("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:
Suppressing small caps
തിരുത്തുകIf you wish to suppress the display of small caps in your browser, as a logged in user, you can make an edit to your common.css reading
span.smallcaps { font-variant: normal !important; }
See also
തിരുത്തുകStreamlined equivalent versions for very common cases:
Templates that change the display (copy-paste will get the original text):
Magic words that rewrite the output (copy-paste will get the text as displayed):
- {{lc:}} – lower case output of the full text
- {{uc:}} – upper case output of the full text
- {{lcfirst:}} – lower case output of the first character only
- {{ucfirst:}} – upper case output of the first character only