Jump to content

Template:Date: Difference between revisions

From Joepedia
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#dateformat:{{{1}}}}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{1|}}}|{{#dateformat:{{{1}}}}}}}</includeonly><noinclude>= Example: =
Example:
<pre><nowiki>{{Date|2025-01-25}}</nowiki></pre>
  <code><nowiki>{{Date|2025-01-25}}</nowiki></code>
{{Date|2025-01-25}}
{{Date|2025-01-25}}
  <code><nowiki>{{Date|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}}}</nowiki></code>
 
<pre><nowiki>{{Date|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}}}</nowiki></pre>
{{Date|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}}}
{{Date|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}}}
= See also: =
* [[Template:Time]]
* [[Template:Datetime]]
= Template Data =
<templatedata>
<templatedata>
{
{

Latest revision as of 09:02, 25 January 2025

Example:

{{Date|2025-01-25}}

2025-01-25

{{Date|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}}}

2025-04-06

See also:

Template Data

Shows a date, localised to the user's preference.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Date1

The date, given in ISO 8601 format (YYYY-MM-DD).

Daterequired