Module:Date time/doc: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
|||
Line 17: | Line 17: | ||
== Tracking categories == |
== Tracking categories == |
||
* {{Category link with count|Pages using |
* {{Category link with count|Pages using Module:Date time with invalid values}} |
||
* {{Category link with count|Pages using end date with invalid values}} |
|||
* {{Category link with count|Pages using start date and age with invalid values}} |
|||
* {{Category link with count|Pages using end date and age with invalid values}} |
|||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
Revision as of 12:45, 10 April 2025
Module:Date time provides functions for validating and formatting dates in templates such as {{Start date}}, {{End date}}, {{Start date and age}}, and {{End date and age}}.
It handles:
- Validation of date components (year, month, day)
- Validation of time components (hour, minute, second)
- Timezone formatting and validation
- Generation of appropriate hCalendar microformat markup
- "time-ago" calculations
Returns an error message and category if validation fails.
Usage
{{#invoke:Date time|generate_date}}
{{#invoke:Date time|validate_date_time}}