btw this Wiki is not meant for a wider audience yet

Template:YYMMDD Header

From HFGCS Wiki
Revision as of 23:29, 5 December 2025 by Breadpan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Expression error: Unrecognized word "yymmdd".
Error: Invalid time.
[[Invalid date format (expected YYMMDD)|Invalid date format (expected YYMMDD) →]]

Usage

{{Infobox_ymd_horizontal_header}}

This template requires Module:DateNav to work. It creates a horizontal navigation header that automatically:

  • Calculates the full date from the page name (YYMMDD format)
  • Creates links to the previous and next day articles (with proper date arithmetic)
  • Displays in format: "← 251130 | December 01, 2025 | 251202 →"
  • Handles month boundaries, leap years, and year rollovers correctly
  • Shows day with leading zero (01, 02, 03, etc.)

No parameters needed - all information is derived from the page title.

Examples

  • On page "251130": Shows November 30, 2025, with prev=251129 and next=251201
  • On page "240229": Shows February 29, 2024 (leap year), with prev=240228 and next=240301
  • On page "251231": Shows December 31, 2025, with prev=251230 and next=260101
  • On page "251201": Shows December 01, 2025 (with leading zero)