Template:Date: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(Created page with "{{{1}}}<sup>{{#switch:{{{1}}}|1=21=31=st|2=22=nd|3=23=rd|#default=th}}</sup> {{{2}}}{{#if:{{{3|}}}| {{{3}}}}}<noinclude> ==Info== This template serves to standardize the...")
 
m (Text replacement - "]] </noinclude>" to "]]</noinclude>")
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{{1}}}<sup>{{#switch:{{{1}}}|1=21=31=st|2=22=nd|3=23=rd|#default=th}}</sup> {{{2}}}{{#if:{{{3|}}}|&nbsp;{{{3}}}}}<noinclude>
{{{2}}} {{{1}}}<sup>{{#switch:{{{1}}}|1|21|31=st|2|22=nd|3|23=rd|#default=th}}</sup>{{#if:{{{3|}}}|, {{{3}}}}}<noinclude>


==Info==
==Info==
Line 31: Line 31:
|}
|}


[[Category:Inline templates]]
[[Category:Inline templates]]</noinclude>
</noinclude>

Latest revision as of 01:13, August 30, 2019

{{{2}}} {{{1}}}th

Info

This template serves to standardize the way dates are displayed on the wiki. Feed the date values into the template, and it will write it in a specific format.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 Yes Day The day number, from 1 to 31.
2 Yes Month The month's name, starting with a capital letter.
3 No Year The year number.

Skeleton

{{date|<day>|<month>|<year>}}

Examples

Code Result
{{date|1|February|2013}}
February 1st, 2013