Template:Date: Difference between revisions

From RosieSoCrossing
mNo edit summary
No edit summary
 
Line 1: Line 1:
<div class="date">
<includeonly>{{{1|}}}<sup>{{#switch:{{{1|}}}| 1 | 21 | 31 = st | 2 | 22 = nd | 3 | 23 = rd | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 | 28 | 29 | 30 = th}}</sup></includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
{{{1}}} by {{{2}}}
</div>

Latest revision as of 21:20, 11 January 2026

Template documentation (view)


Usage

{{Date}}

This template is to be used for dates where a suffix is desired (e.g. “st”, “nd”, “rd” and “th”), and will automatically append the appropriate suffix to the numbers.

Example

{{Date|1}}
{{Date|22}}
{{Date|23}}
{{Date|30}}

1st 22nd 23rd

30th