Template:Date: Difference between revisions
Appearance
Created page with "<includeonly>{{#if:{{{1|}}}|{{#timef:{{{1|}}}|date}}}}</includeonly><noinclude> Example: <code><nowiki>{{Date|2025-01-25}}</nowiki></code> {{Date|2025-01-25}} <templatedata> { "params": { "1": { "label": "Date", "description": "The date, given in ISO 8601 format (YYYY-MM-DD).", "type": "date", "required": true } }, "description": "Shows a date, localised to the user's preference.", "format": "inline" } </templatedata></noinclude>" |
No edit summary |
||
Line 3: | Line 3: | ||
<code><nowiki>{{Date|2025-01-25}}</nowiki></code> | <code><nowiki>{{Date|2025-01-25}}</nowiki></code> | ||
{{Date|2025-01-25}} | {{Date|2025-01-25}} | ||
<code><nowiki>{{Date|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}}}</nowiki></code> | |||
{{Date|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}}} | |||
<templatedata> | <templatedata> | ||
{ | { |
Revision as of 08:34, 25 January 2025
Example:
{{Date|2025-01-25}}
25 January 2025
{{Date|{{CURRENTYEAR}}-{{CURRENTMONTH2}}-{{CURRENTDAY2}}}}
6 April 2025
Shows a date, localised to the user's preference.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date | 1 | The date, given in ISO 8601 format (YYYY-MM-DD). | Date | required |