Template:Ordinal

Usage
where NUM is a positive integer. This template will add the appropriate ordinal suffix to NUM. For example, produces 101st.