Changes
+
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
The template converts a given year in the [[Gregorian calendar]] into the [[Lunisolar calendar]].
===Syntax===
: <pre>{{Lunisolar calendar|(year)|(month)|(day)|calendar=|link=|Julian calendar=}}</pre>
== Date range ==
The template displays the date from Gregorian calendar February 13, 1391 (Julian calendar February 5 <small>(Julian day 2229156)</small> and Lunisolar January 1, Metal-Goat (辛未)) to Gregorian calendar December 31, 2110 (Julian calendar December 17 <small>(Julian day 2492086)</small> and November 21, Metal-Horse (庚午)). If you put in a date before or after, an error will print out.
== Example ==
{| class="wikitable" style="margin: 1em 2em;"
!style="padding: 0.5em;"|Input||style="padding: 0.5em;"|Result||style="padding: 0.5em;"|Note
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar}}||style="padding: 0.5em;"|Today’s date
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2000|1|23}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2000|1|23}}||style="padding: 0.5em;"|Gregorian calendar
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2000|1|23|link=yes}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2000|1|23|link=yes}}||style="padding: 0.5em;"|
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2000|1|23|calendar=Julian calendar}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2000|1|23|calendar=Julian calendar}}||style="padding: 0.5em;"|Julian calendar
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|1582|10|4|calendar=switch}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|1582|10|4|calendar=switch}}||style="padding: 0.5em;"|Gregorian calendar
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|1582|10|15|calendar=switch}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|1582|10|15|calendar=switch}}||style="padding: 0.5em;"|Julian calendar
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|Julian day=2451567}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|Julian day=2451567}}||style="padding: 0.5em;"|Julian day of Gregorian calendar January 23, 2000
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2001|6|1}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2001|6|1}}||style="padding: 0.5em;"|[[leap month]]
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2001|6|1|link=yes}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2001|6|1|link=예}}||style="padding: 0.5em;"|leap month
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|1391|2|12}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|1391|2|12}}||style="padding: 0.5em;"|Range date before
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2111|1|1}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2111|1|1}}||style="padding: 0.5em;"|Range date after
|}
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Calendar templates]]
[[Category:Date mathematics templates]]
}}</includeonly>
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
The template converts a given year in the [[Gregorian calendar]] into the [[Lunisolar calendar]].
===Syntax===
: <pre>{{Lunisolar calendar|(year)|(month)|(day)|calendar=|link=|Julian calendar=}}</pre>
== Date range ==
The template displays the date from Gregorian calendar February 13, 1391 (Julian calendar February 5 <small>(Julian day 2229156)</small> and Lunisolar January 1, Metal-Goat (辛未)) to Gregorian calendar December 31, 2110 (Julian calendar December 17 <small>(Julian day 2492086)</small> and November 21, Metal-Horse (庚午)). If you put in a date before or after, an error will print out.
== Example ==
{| class="wikitable" style="margin: 1em 2em;"
!style="padding: 0.5em;"|Input||style="padding: 0.5em;"|Result||style="padding: 0.5em;"|Note
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar}}||style="padding: 0.5em;"|Today’s date
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2000|1|23}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2000|1|23}}||style="padding: 0.5em;"|Gregorian calendar
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2000|1|23|link=yes}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2000|1|23|link=yes}}||style="padding: 0.5em;"|
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2000|1|23|calendar=Julian calendar}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2000|1|23|calendar=Julian calendar}}||style="padding: 0.5em;"|Julian calendar
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|1582|10|4|calendar=switch}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|1582|10|4|calendar=switch}}||style="padding: 0.5em;"|Gregorian calendar
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|1582|10|15|calendar=switch}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|1582|10|15|calendar=switch}}||style="padding: 0.5em;"|Julian calendar
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|Julian day=2451567}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|Julian day=2451567}}||style="padding: 0.5em;"|Julian day of Gregorian calendar January 23, 2000
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2001|6|1}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2001|6|1}}||style="padding: 0.5em;"|[[leap month]]
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2001|6|1|link=yes}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2001|6|1|link=예}}||style="padding: 0.5em;"|leap month
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|1391|2|12}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|1391|2|12}}||style="padding: 0.5em;"|Range date before
|-
|style="padding: 0.5em;"|<code><nowiki>{{Lunisolar calendar|2111|1|1}}</nowiki></code>||style="padding: 0.5em;"|{{Lunisolar calendar|2111|1|1}}||style="padding: 0.5em;"|Range date after
|}
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Calendar templates]]
[[Category:Date mathematics templates]]
}}</includeonly>