Difference between revisions of "Template:Date"

From Diary of a Wimpy Kid Wiki
Jump to navigation Jump to search
m (Undo revision 79685 by Username (talk))
Tag: Undo
m
 
Line 2: Line 2:


==Info==
==Info==
From [https://pikminfanon.com/wiki/Template:Date Pikmin Fanon].
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.
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==
==Parameters==
{| class = "wikitable"
{| class="wikitable"
! Parameter || Mandatory || Default || Purpose || Detailed description
! Parameter !! Mandatory !! Purpose !! Detailed description
|-
|-
! 1
! 1
| '''Yes''' ||  || Day || The day number, from 1 to 31.
| '''Yes''' || Day || The day number, from 1 to 31.
|-
|-
! 2
! 2
| '''Yes''' ||  || Month || The month's name, starting with a capital letter.
| '''Yes''' || Month || The month's name, starting with a capital letter.
|-
|-
! 3
! 3
| No ||  || Year || The year number.
| No || Year || The year number.
|}
|}


==Skeleton==
==Skeleton==
<pre>
<pre>{{date|<day>|<month>|<year>}}</pre>
{{date|<day>|<month>|<year>}}
</pre>


==Examples==
==Examples==
{| class = "wikitable"
{| class="wikitable"
! Code || Result
! Code !! Result
|-
|-
| <pre>{{date|1|January|2020}}</pre>
| <pre>{{date|11|December|2008}}</pre>
| {{date|1|January|2020}}
| {{date|11|December|2008}}
|}
|}


[[Category:Templates]]
[[Category:Templates]]</noinclude>
</noinclude>

Latest revision as of 16:18, 13 May 2023

{{{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 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|11|December|2008}}
December 11th, 2008