Changes

Jump to navigation Jump to search
m
{{#switch: {{{1|{{ctime:Y}}}}}
|1984=9|1985=12|2033=10
|{{#switch:{{#expr:({{{1|{{ctime:Y}}}}}-1905) mod 19}}
|1={{#expr:{{#switch:{{#expr: trunc(({{{1|{{ctime:Y}}}}}-1905)/19)}}|1=-36|2=0|3=18|4=-68|5=48|6=-36|7=1|8=18|9=18|10=48|-116}} mod 2 +4}}
|4={{#expr:{{#switch:{{#expr: trunc(({{{1|{{ctime:Y}}}}}-1905)/19)}}|1=-36|2=0|3=18|4=-68|5=48|6=-36|7=1|8=18|9=18|10=48|-116}}/2 mod 2 +2}}
|6={{#expr:{{#switch:{{#expr: trunc(({{{1|{{ctime:Y}}}}}-1905)/19)}}|1=-36|2=0|3=18|4=-68|5=48|6=-36|7=1|8=18|9=18|10=48|-116}}/4 mod 2 +5}}
|9={{#expr:{{#switch:{{#expr: trunc(({{{1|{{ctime:Y}}}}}-1905)/19)}}|1=-36|2=0|3=18|4=-68|5=48|6=-36|7=1|8=18|9=18|10=48|-116}}/8 mod 2 +5}}
|12={{#expr:{{#switch:{{#expr: trunc(({{{1|{{ctime:Y}}}}}-1905)/19)}}|1=-36|2=0|3=18|4=-68|5=48|6=-36|7=1|8=18|9=18|10=48|-116}}/16 mod 2 +3}}
|14={{#expr:{{#switch:{{#expr: trunc(({{{1|{{ctime:Y}}}}}-1905)/19)}}|1=-36|2=0|3=18|4=-68|5=48|6=-36|7=1|8=18|9=18|10=48|-116}}/32 mod 2 +8}}
|17={{#expr:{{#switch:{{#expr: trunc(({{{1|{{ctime:Y}}}}}-1905)/19)}} |1=-36|2=0|3=18|4=-68|5=48|6=-36|7=1|8=18|9=18|10=48|-116}}/64 mod 2 +6}}
|0}}}}<noinclude>[[Category:Chinese traditional date templates]]
<templatedata>
{
"description": "To get the leap month of the year. 0 = no leap",
"params": {
"1": {
"aliases": [
"y"
],
"label": "year",
"description": "The year number in the Chinese Calendar",
"type": "number",
"default": "current year"
}
}
}
</templatedata>
</noinclude>
Anonymous user

Navigation menu