Template:Ordinal/doc

This template will add the appropriate ordinal suffix to a given positive integer.
 *  , for example, produces .

For superscripted suffixes set a second parameter to sup.
 *  , for example, produces .

For the -d suffixes used in the legal field (e.g. 3d or 22d) set a second parameter to d.
 *  , for example, produces .