మూస:caps/doc
Appearance
< మూస:caps
This template returns the uppercase or lowercase version of a letter.
Usage
[<small>మార్చు</small>]This template is supposed to be used in other templates, mainly to display the first letter of an automatic text in either case, as chosen by the user.
Simply add the following code to any template, replacing the X by a default letter.
{{caps|X|{{{cap|}}}|{{{nocap|}}}}}
Here are other examples:
{{caps|A|{{{cap|}}}|{{{nocap|}}}}}
{{caps|B|{{{cap|}}}|{{{nocap|}}}}}
{{caps|C|{{{cap|}}}|{{{nocap|}}}}}
Parameters
[<small>మార్చు</small>]This template by default uses the parameters {{{cap}}}
and {{{nocap}}}
from the other template.
nocap=1
: Unless it is empty or omitted, {{caps}} returns the default letter in the opposite case.cap
: If equal to the opposite case of the default letter, the opposite case is returned by {{caps}}.
Examples
[<small>మార్చు</small>]Here are some hypotheses, possibly true if the piece of code "{{caps|O|{{{cap|}}}|{{{nocap|}}}}}bsolete spelling of
" exists in Template:obsolete spelling of:
{{obsolete spelling of|ameba}}
returns:- Obsolete spelling of ameba.
{{obsolete spelling of|ameba|nocap=1}}
returns:- obsolete spelling of ameba.
{{obsolete spelling of|ameba|cap=o}}
returns:- obsolete spelling of ameba.
See also
[<small>మార్చు</small>]Supplementary templates [edit]
Contents, text, tables:
- caps (returns a particular letter, either in upper or lower cases)
- str len (returns the number of characters of a string)
- theordinal (returns "first" from 1, "second" from 2, etc.)
- theplural (returns "suffixes" from suffix, "verbs" from verb, etc.)
- navbox (generates a collapsible box)
- ! (returns a vertical pipe: |)
- !! (returns two vertical pipes: ||)
- (! (returns a left brace followed by a vertical pipe: {|)
- !) (returns a vertical pipe followed by a right brace: |})
- !- (returns a vertical pipe followed by a dash: |-)
Languages, families and scripts:
- langname (same as above, but also returns a language name from the same language name)
- languagex (returns the language name from any language code)
- langnamex (same as above, but also returns a language name from the same language name)
- langrev (returns the language code of a given language name)
- languageshift (differentiates between "American Sign Language" and "American Sign Language language", among other related languages)
- langfamily (returns the language family from a language code)
- family (returns the family from a subfamily)
- script (returns a script name from a script code)
- scriptrev (returns a script code from a script name)
Pages:
- langprefix (returns the prefix, like conl:, of a language template)
- catlangcode (returns the name of a topical category, notably by never displaying the code en:)
- catlangname (returns the name of a lexical or other category similarly named)
- deftempboiler (generates a definition template)
- edit (generates an "edit" button)