Usage

{{Nth|integer}}

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

It is set by default to display the ordinal suffix in superscript, to disable it use {{Nth|integer|sup=no}}.

For an integer ending in 1, 2 or 3 (except for integers ending in 11, 12 or 13), the ordinal suffix will be -st, -nd and -rd, respectively. To display -d for the ordinal suffix rather than -nd and -rd, use {{nth|positive integer|d}}.

Examples

Code Result
{{nth|101}} 101st
{{nth|-102}} -102nd
{{nth|102|sup=no}} 102nd
{{nth|103}} 103rd
{{nth|103|d}} 103d
Community content is available under CC-BY-SA unless otherwise noted.