Template:J2G/documentation
Template:Documentation subpage
Usage
This template converts a Julian calendar date to a date in the Gregorian calendar. It can be used, for example, to display the Gregorian date of a work that is dated according to the Julian calendar in a quotation template.
In Britain and the British Empire (including the eastern part of what is now the United States), the Gregorian calendar was adopted with effect from 3 September 1752 (Julian calendar) or 14 September 1752 (Gregorian). Thus, it is most likely unnecessary to use this template for dates of works published from that date onwards. For the years when other territories adopted the calendar, see "w:Gregorian calendar#Adoption" and "w:Adoption of the Gregorian calendar".
The template takes only one parameter: Template:Para or Template:Para, which is the Julian calendar date to be converted.
To determine the number of days that a Gregorian date is ahead of a Julian date, called the "secular difference" between the two calendars, the template uses the following formula:
In the formula, is the secular difference and is the year using Template:W. means that if the result of the division is not an integer it is rounded down to the nearest integer. See "w:Gregorian calendar#Difference between Gregorian and Julian calendar dates".
Examples
- Wikitext:
- Template:Temp (start of the Template:W); or
- Template:Temp
- Result: Template:J2G
- Wikitext: Template:Temp
- Result:
- Comment: The trial was held on 27 January 1605 according to the Julian calendar. By using Template:Temp, the quotation template is directed to display the Gregorian calendar date (6 February 1603) as the date of the work.