btw this Wiki is not meant for a wider audience yet
Template:YYMMDD Header: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Latest revision as of 23:29, 5 December 2025
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)