Template:Ordinal

From Pillars of Eternity Wiki
Jump to: navigation, search
Template-info.png Template documentation

This template will add the appropriate ordinal indicator to a given number (typically integer).

For an integer ending in 1, 2 or 3 (except for integers ending in 11, 12 or 13), the ordinal suffix will be -st, -nd and -rd, respectively.

If the input is not a number, no ordinal indicator will be added.

Usage

{{Ordinal:number}}

Examples

Code Result
{{Ordinal|0}} 0th
{{Ordinal|1}} 1st
{{Ordinal|2}} 2nd
{{Ordinal|3}} 3rd
{{Ordinal|11}} 11th
{{Ordinal|12}} 12th
{{Ordinal|abc}} abc