btw this Wiki is not meant for a wider audience yet
Template:YYMMDD Minidisplay: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Latest revision as of 23:29, 5 December 2025
Daily HFGCS Monitoring Pages
| Yesterday's Page: | December 05 2025 |
| Today's Page: | December 06 2025 |
| Tomorrow's Page: | December 07 2025 (create) |
Usage
{{Infobox_HFGCS_Daily}}
This template creates a rectangular infobox showing links to yesterday's, today's, and tomorrow's HFGCS monitoring pages based on the current date.
Features
- Automatically calculates dates relative to the current day
- Uses YYMMDD format (e.g., 251204 for December 4, 2025)
- For non-existent pages (red links), adds a "(create)" link that:
- Opens the edit page for that article
- Preloads content from Template:YYMMDD_Preload
- Updates automatically each day - no manual maintenance needed
- Visually distinct from the horizontal header navigation
Example Output
On December 4, 2025:
- Yesterday's Page: 251203
- Today's Page: 251204 (create) ← if page doesn't exist
- Tomorrow's Page: 251205
Notes
- Requires Template:YYMMDD_Preload to exist for the preload functionality to work
- The #ifexist parser function checks if each page exists before deciding whether to show the create link
- Uses MediaWiki's #time function for date arithmetic