Template:Lunisolar calendar

From Wikipedia, the free encyclopedia

August 1

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}} August 1 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
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Lunisolar_calendar&oldid=800430771"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Template:Lunisolar_calendar
This page is based on the copyrighted Wikipedia article "Template:Lunisolar calendar"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA