Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Ordinal/doc: Difference between revisions

Template page
No edit summary
m endash; minus sign
Line 8: Line 8:
* In English there is "style=d" adding ''-d'' suffixes to all numbers. Used in the legal field (e.g. ''3d'' or ''22d'') .
* In English there is "style=d" adding ''-d'' suffixes to all numbers. Used in the legal field (e.g. ''3d'' or ''22d'') .
:''<code><nowiki>{{Ordinal|101|d}}</nowiki></code>'', for example, produces ''{{Ordinal|101|d}}''.
:''<code><nowiki>{{Ordinal|101|d}}</nowiki></code>'', for example, produces ''{{Ordinal|101|d}}''.
* In French "style=roman" presenting the number (in 1-5,000,000 range) as roman numeral, alternatively "style=roman year" allows to use much simpler template for numbers in 1-3000 range
* In French "style=roman" presenting the number (in 1–5,000,000 range) as roman numeral, alternatively "style=roman year" allows to use much simpler template for numbers in 1–3000 range
|2def=
|2def=
|2stat=optional-
|2stat=optional-
Line 52: Line 52:
| <code><nowiki>{{Ordinal|101}}</nowiki></code> || {{Ordinal|101}}
| <code><nowiki>{{Ordinal|101}}</nowiki></code> || {{Ordinal|101}}
|-
|-
| <code><nowiki>{{Ordinal|-102}}</nowiki></code> || {{Ordinal|-102}}
| <code><nowiki>{{Ordinal|−102}}</nowiki></code> || {{Ordinal|−102}}
|-
|-
| <code><nowiki>{{Ordinal|102}}</nowiki></code> || {{Ordinal|102}}
| <code><nowiki>{{Ordinal|102}}</nowiki></code> || {{Ordinal|102}}

Revision as of 09:24, 11 March 2012

This template will add the appropriate ordinal suffix to a given integer.

{{Ordinal|101}}, for example, produces 101st.

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= }}

Template parameters

ParameterDescriptionDefaultStatus
1positive integer numberemptyoptional
stylePresentation style. Different options for different languages:
  • In English there is "style=d" adding -d suffixes to all numbers. Used in the legal field (e.g. 3d or 22d) .
{{Ordinal|101|d}}, for example, produces 101st.
  • In French "style=roman" presenting the number (in 1–5,000,000 range) as roman numeral, alternatively "style=roman year" allows to use much simpler template for numbers in 1–3000 range
emptyoptional
gendergender is used in French and Polish language versions. Genders: m for male, f for female and n for neuter.moptional
langlanguage{{int:Lang}}optional
nosupSet nosup=y to display the ordinals without superscript for links and category names. E.g. 101st instead of 101st.emptyoptional
debugemptyoptional

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: all users

Examples

Code Result
{{Ordinal|101}} 101st
{{Ordinal|−102}} −102
{{Ordinal|102}} 102nd
{{Ordinal|103}} 103rd
{{Ordinal|103|d}} 103rd
{{Ordinal|103|lang=pl}} 103‑ci


Cookies help us deliver our services. By using our services, you agree to our use of cookies.