FANDOM


{{{1}}}th

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

Usage

{{ordinal|integer}}

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

To display the ordinal suffix in superscript, 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 {{ordinal|positive integer|d}}.

Examples

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