Template:Start date: Difference between revisions

From Wiki Maui Linux NET
Jump to navigation Jump to search
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..."
(No difference)

Revision as of 12:46, 20 October 2025

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.