Jump to content

Module:Date time/doc: Difference between revisions

From LarpOfHoi4 Wiki
j>Gonnym
No edit summary
 
m 1 revision imported
 
(No difference)

Latest revision as of 00:04, 28 September 2026

Lua error in Module:Effective_protection_level at line 64: attempt to index field 'TitleBlacklist' (a nil value).

                -->

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.

Tracking categories

[edit source]