Difference between revisions of "Template:Date"
Jump to navigation
Jump to search
Tag: Undo |
m |
||
Line 2: | Line 2: | ||
==Info== | ==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. | 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 | ! Parameter !! Mandatory !! Purpose !! Detailed description | ||
|- | |- | ||
! 1 | ! 1 | ||
| '''Yes''' | | '''Yes''' || Day || The day number, from 1 to 31. | ||
|- | |- | ||
! 2 | ! 2 | ||
| '''Yes''' | | '''Yes''' || Month || The month's name, starting with a capital letter. | ||
|- | |- | ||
! 3 | ! 3 | ||
| No | | 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 | ! Code !! Result | ||
|- | |- | ||
| <pre>{{date| | | <pre>{{date|11|December|2008}}</pre> | ||
| {{date| | | {{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 |