Template:Date: Difference between revisions

From Blockate Wiki
Content added Content deleted
No edit summary
m (1 revision imported)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1}}}|jan = January|feb = February|mar = March|apr = April|may = May|jun = June|jul= July|aug = August|sep = September|oct = October|nov = November|dec = December|#default = Invalid Month}} {{#if:{{{2}}}|{{#switch:{{{2}}}|1 = 1<sup>st</sup>|2 = 2<sup>nd</sup>|3 = 3<sup>rd</sup>|#default = {{{2}}}<sup>th</sup>}}|Invalid Day}}, 20{{{3}}}</includeonly><noinclude>[[Category:Templates]]{{documentation}}</noinclude>
<includeonly>{{#switch:{{{month}}}|1 = January|2 = February|3 = March|4 = April|5 = May|6 = June|7 = July|8 = August|9 = September|10 = October|11 = November|12 = December|#default = Invalid Month}} {{#if:{{{day}}}|{{#switch:{{{day}}}|1 = 1<sup>st</sup>|2 = 2<sup>nd</sup>|3 = 3<sup>rd</sup>|21 = 21<sup>st</sup>|22 = 22<sup>nd</sup>|23 = 23<sup>rd</sup>|31 = 31<sup>st</sup>|#default = {{{day}}}<sup>th</sup>}}|Invalid Day}}, {{{year}}}</includeonly><noinclude>[[Category:Templates]]{{documentation}}</noinclude>

Latest revision as of 17:48, 20 October 2022

Description
Use this template to enter a date.
Month must be the numerical abbreviation of the month, such as "1" for January and "2" for February.
Syntax
{{Date}}