Template:Ordinal/th/doc

This converts an integer into st, nd, rd or th.