Template:Start date

From Wiki Maui Linux NET
Revision as of 12:46, 20 October 2025 by Ten (talk | contribs) (Created page with "<includeonly> <span class="startdate" style="white-space:nowrap;"> {{{1|}}}{{#if:{{{2|}}}|-{{{2}}}{{#if:{{{3|}}}|-{{{3}}}}}}} </span> </includeonly><noinclude> '''Usage:''' * <code>{{Start date|YYYY}}</code> → displays just the year * <code>{{Start date|YYYY|MM}}</code> → displays year and month * <code>{{Start date|YYYY|MM|DD}}</code> → full date (YYYY-MM-DD) Optionally, you can use the <code>df</code> parameter for day-first formatting: * <code>{{Start date|YYYY...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage:

YYYY{{#if:|-{{{2}}}{{#if:|-{{{3}}}}}}} → displays just the year

YYYY{{#if:MM|-MM{{#if:|-{{{3}}}}}}} → displays year and month

YYYY{{#if:MM|-MM{{#if:DD|-DD}}}} → full date (YYYY-MM-DD)

Optionally, you can use the df parameter for day-first formatting:

YYYY{{#if:MM|-MM{{#if:DD|-DD}}}} → DD-MM-YYYY (visual only)

The output is a simple machine-readable and visually minimal date string.