Template:Th

th

With this template, typing eg.  4  can be used as a shortcut to typing  4th , producing 4.

Note also Template:Ordinal, which also works with numbers ending in 1, 2, and 3, but is not superscripted, eg:

  gives ', and    gives '