這模板將儒略日轉換成中國農曆

輸入日期的範圍從00042月10日(西漢平帝元始四年正月初一)2044年1月29日

用法

{{Chinese calendar/cycle}}

將從西元前2637年以來的儒略年轉換成每60年的周期

{{Chinese calendar/year}}

將儒略年轉換成干支紀年的方式(0=甲子,1=乙丑,2=丙寅,…,59=癸亥)

{{Chinese calendar/month}}

將月份轉換成傳統叫法(1=正月,-1=閏正月,2=二月,-2=閏二月,…)

{{Chinese calendar/day}}

將日期轉換成傳統叫法(1=初一,2=初二,…,29=廿九,30=三十)

舉例

代碼:

今日是{{Chinese calendar/year name|{{Chinese calendar/year|{{JD|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}}}}}年{{Chinese calendar/month name|{{Chinese calendar/month|{{JD|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}}}}}月{{Chinese calendar/day name|{{Chinese calendar/day|{{JD|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}}}}}

效果:今日是甲辰年十月初五

子頁面

參考


Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.