Template:Start date: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{# | {{#if:{{{3|}}} | ||
|{{#time:F j, Y|{{{1}}}-{{{2}}}-{{{3}}}}} | |||
|{{#if:{{{2|}}} | |||
|{{#time:F Y|{{{1}}}-{{{2}}}-1}} | |||
|{{{1}}} | |||
}} | }} | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
== | == Usage == | ||
Displays a formatted start date. | |||
=== Syntax === | |||
=== | |||
<pre> | <pre> | ||
{{Start date|year|month|day}} | {{Start date|year|month|day}} | ||
| Line 40: | Line 37: | ||
=== Notes === | === Notes === | ||
* Month and day are optional. | * Month and day are optional. | ||
* | * If only year is given, it returns year only. | ||
* If month is given, it shows Month Year. | |||
* If full date is given, it shows full formatted date. | |||
</noinclude> | </noinclude> | ||
Revision as of 23:34, 25 April 2026
Usage
Displays a formatted start date.
Syntax
{{Start date|year|month|day}}
Examples
{{Start date|2026}}
→ 2026
{{Start date|2026|4}}
→ April 2026
{{Start date|2026|4|25}}
→ April 25, 2026
Notes
- Month and day are optional.
- If only year is given, it returns year only.
- If month is given, it shows Month Year.
- If full date is given, it shows full formatted date.