Jump to content

Template:Gregorian serial date/doc

From Worldwide Dead Wiki
This is a documentation subpage for Template:Gregorian serial date.
It contains usage information, categories, and other content that is not part of the original template page.

Usage

This template gives the Gregorian serial day.

{{Gregorian serial date
 |year=
 |month=
 |day
}}

If any of the attributes is not provided, it will use the current year, month, or day.

Example

Passing no attributes, render the serial day for today

{{Gregorian serial date}}

739717

Passing only the year, it should use the current month and current day in its place.

{{Gregorian serial date|year=2025}}

739352

Passing all the attributes, it produces the serial value for that exact date.

{{Gregorian serial date|year=2025|month=03|day=14}}

739324

This template does NOT work with negative years, and will return an error message instead.

{{Gregorian serial date|year=-1}}

-629_ERROR - Can not handle dates before January 1, 1 A.D.