మూస:catlangcode
స్వరూపం
(మూస:lang నుండి దారిమార్పు చెందింది)
{{catlangcode|xx|qwertys}}
- The following documentation is located at Template:catlangcode/doc. [edit]
- Note: Please move the documentation subpage to Template:catlangcode/documentation.
This template returns the name of a topical category, based on its language and subject.
Usage
[<small>మార్చు</small>]This template is supposed to be used in names of topical categories, where the code for any language but English is shown.
Examples
[<small>మార్చు</small>]{{catlangcode|en|Biology}}
returns:- Category:Biology
{{catlangcode||Biology}}
returns:- Category:Biology
{{catlangcode|pt|Biology}}
returns:- Category:pt:Biology
{{catlangcode|de|Biology}}
returns:- Category:de:Biology
Mechanics
[<small>మార్చు</small>]Here are some exceptions, where a language code is not shown in the final text:
- If the parameter 1 is empty or uncalled.
- If the parameter 1 contains the values en or eng.
See also
[<small>మార్చు</small>]- {{categ}}, which can be used in some of the same circumstances as this template, though it works differently
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)