ഫലകം:Sc/doc

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.

Usage[തിരുത്തുക]

{{sc}}, named after small caps was a variation on {{Smallcaps}} but has, since a deletion discussion been merged with the latter. Per MOS:TEXT (particularly MOS:BADEMPHASIS) and MOS:ACCESS, 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 MOS:TEXT and MOS:BADEMPHASIS), 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[തിരുത്തുക]

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
To disambiguate Eastern surnames and given names at a glance

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


"https://ml.wikipedia.org/w/index.php?title=ഫലകം:Sc/doc&oldid=1821568" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്