Template:Ordinal/doc

Works out whether a number is st, nd, rd or th; and displays that. Works with negative numbers too.

Usage
First parameter is the number.

Second can be set to "d" to make the suffix "d" rather than anything else, for some reason.

Set parameter "sup" to "yes" to make the suffix superscript.

Examples: