Difference between revisions of "Template:Date"

From Nookipedia, the Animal Crossing wiki
(Created page with "<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...")
 
(Remove line break)
 
Line 1: Line 1:
<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>
+
<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>
<noinclude>
 
{{Documentation}}
 
[[Category:Templates]]
 
</noinclude>
 

Latest revision as of 07:11, July 25, 2020

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