F3f3f3-686868 candy.png Template documentation follows F3f3f3-686868 candy.png
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Nth/doc to edit this documentation. (How does this work?)



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


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.