Jump to content

Template:Start date: Difference between revisions

From Rave Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#ifeq:{{{3|}}}||
{{#if:{{{3|}}}
  {{#if:{{{2|}}}||
|{{#time:F j, Y|{{{1}}}-{{{2}}}-{{{3}}}}}
    {{#time:F Y|{{{1}}}-{{{2|1}}}-1}}
|{{#if:{{{2|}}}
  |
  |{{#time:F Y|{{{1}}}-{{{2}}}-1}}
    {{#time:F j, Y|{{{1}}}-{{{2}}}-{{{3}}}}}
  |{{{1}}}
   }}
   }}
|
  {{#time:Y|{{{1}}}}}
}}
}}
</includeonly>
</includeonly>


<noinclude>
<noinclude>
== Template:Start date ==
== Usage ==
Displays a formatted start date.


Formats a start date in a Wikipedia-style human-readable form.
=== Syntax ===
 
=== Usage ===
<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.
* Designed for clean display (no broken ISO or time complexity).
* 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.