Template:Lunisolar calendar

From Nordic Larp Wiki
Jump to navigation Jump to search

September 8

Template documentation[view] [edit] [history] [purge]

Usage

The template converts a given year in the Gregorian calendar into the Lunisolar calendar.

Syntax

{{Lunisolar calendar|(year)|(month)|(day)|calendar=|link=|Julian calendar=}}

Date range

The template displays the date from Gregorian calendar February 13, 1391 (Julian calendar February 5 (Julian day 2229156) and Lunisolar January 1, Metal-Goat (辛未)) to Gregorian calendar December 31, 2110 (Julian calendar December 17 (Julian day 2492086) and November 21, Metal-Horse (庚午)). If you put in a date before or after, an error will print out.

Example

Input Result Note
{{Lunisolar calendar}} September 8 style="padding: 0.5em;"|Today’s date
{{Lunisolar calendar|2000|1|23}} December 17 style="padding: 0.5em;"|Gregorian calendar
{{Lunisolar calendar|2000|1|23|link=yes}} December 17 style="padding: 0.5em;"| 
{{Lunisolar calendar|2000|1|23|calendar=Julian calendar}} January 1 style="padding: 0.5em;"|Julian calendar
{{Lunisolar calendar|1582|10|4|calendar=switch}} September 18 style="padding: 0.5em;"|Gregorian calendar
{{Lunisolar calendar|1582|10|15|calendar=switch}} September 19 style="padding: 0.5em;"|Julian calendar
{{Lunisolar calendar|Julian day=2451567}} December 17 style="padding: 0.5em;"|Julian day of Gregorian calendar January 23, 2000
{{Lunisolar calendar|2001|6|1}} leap April 10 style="padding: 0.5em;"|leap month
{{Lunisolar calendar|2001|6|1|link=yes}} leap April 10 style="padding: 0.5em;"|leap month
{{Lunisolar calendar|1391|2|12}} Expression error: Unrecognized word "outofrange". Expression error: Unrecognized word "outofrange". style="padding: 0.5em;"|Range date before
{{Lunisolar calendar|2111|1|1}} Expression error: Unrecognized word "outofrange". Expression error: Unrecognized word "outofrange". style="padding: 0.5em;"|Range date after