This is an archive copy of wikilivres.ca as of 18 February 2017 (from the WikiTeam dump). The original site is closed.
Template:Ordinal
Jump to navigation
Jump to search
Documentation
(English) This documentation is transcluded from Template:Ordinal/documentation (view | edit | history).
(Français) Cette documentation est incluse dans la sous-page Template:Ordinal/documentation (voir | editer | historique).
(Polski) Ta dokumentacja jest dołączana ze strony Template:Ordinal/documentation (zobacz | edytuj | historia).
This template will add the appropriate ordinal suffix to a given integer.
{{Ordinal|101}}, for example, produces 101.
In English version, for an integer ending in 2 or 3 (except for integers ending in 12 or 13), the ordinal suffix will be -nd and -rd, respectively.
Usage
{{Ordinal|1=|debug=}}
Parameters
| Parameter name | Description | Default value | required or optional?
|
|---|---|---|---|
| parameter #1 (1) | positive integer number | empty | optional |
| style | Presentation style. Different options for different languages:
|
empty | optional |
| gender | gender is used in French and Polish language versions. Genders: m for male, f for female and n for neuter. | m | optional |
| lang | language | {{int:Lang}} | optional |
| nosup | Set nosup=y to display the ordinals without superscript for links and category names. E.g. 101st instead of 101st.
|
empty | optional |
| debug | empty | optional |
Additional information
The template is intended to be used in the following namespaces:
- all namespaces
The template is intended to be used by the following user groups:
Examples
| Code | Result |
|---|---|
{{Ordinal|101}} |
101 |
{{Ordinal|−102}} |
−102 |
{{Ordinal|102}} |
102 |
{{Ordinal|103}} |
103 |
{{Ordinal|103|d}} |
103 |
{{Ordinal|103|lang=pl}} |
103-ci |