<includeonly>{{#ifeq: {{#expr: {{#expr: {{{1}}} mod 100}} round -1}} |10|
|{{#ifeq:{{#expr:{{{1}}} mod 10}}|1|
|{{#ifeq:{{#expr:{{{1}}} mod 10}}|2|
|{{#ifeq:{{#expr:{{{1}}} mod 10}}|3|
|
}}
}}
}}
}}</includeonly><noinclude>This converts an integer into ''st'', ''nd'', ''rd'' or ''th''.</noinclude>