Template:Ordinal: Difference between revisions

have split the "th", etc.-adding bit off as it may be useful by itself
(minor edits; reduced template size)
(have split the "th", etc.-adding bit off as it may be useful by itself)
Line 1:
{{{1|101}}}{{#ifeq: {{#expr: {{#expr: Ordinal/th|{{{1|101}}} mod 100}} round -1<noinclude>{{/doc}} |10|th</noinclude>
|{{#ifeq:{{#expr:{{{1|101}}} mod 10}}|1|st
|{{#ifeq:{{#expr:{{{1|101}}} mod 10}}|2|nd
|{{#ifeq:{{#expr:{{{1|101}}} mod 10}}|3|rd
|th
}}
}}
}}
}}<noinclude>
{{/doc}}</noinclude>
Anonymous user