Шаблон:theordinal/док
Изглед
Given a number, this template automatically generates an English word for an ordinal.
Usage
[уреди]This template uses only one parameter, which is the number (written with Hindu-Arabic digits) to be converted.
Examples
[уреди]
returns:{{theordinal|1}}
returns:{{theordinal|13}}
Mechanics
[уреди]This template simply employs the parser function #switch to keep a list of numbers in algarisms and their ordinal words. Consequently, this list should contain all the relevant number before they are converted elsewhere.
If a user tries to convert a set characters that is not in the list, the final result is simply the same set of characters. (For example,
merely returns "qwerty".)
{{theordinal|qwerty}}
See also
[уреди]Contents, text, tables:
- caps (returns a particular letter, either in upper or lower cases)
- ordinal to word (returns "first" from 1, "second" from 2, etc.)
- navbox (generates a collapsible box)
- !! (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:
Categories:
- categorize (adds a category, with language-specific sorting)
- topics (adds a topical category, with language-specific sorting)
- catlangname (adds a lexical or other category similarly named, with language-specific sorting)
Other:
- edit (generates an "edit" button)