(Translated by https://www.hiragana.jp/)
Template:Is-leap-year - Wikipedia コンテンツにスキップ

Template:Is-leap-year

指定していした西暦せいれきねん閏年うるうどしならば1を、平年へいねんならば0をかえす。

だい1引数ひきすう年数ねんすう指定していする。

だい2引数ひきすうこよみ指定していする。0ならばユリウスれき、1ならばグレゴリオれきとして計算けいさんする。

使用しようれい

  • {{is-leap-year|645|0}} = 0
  • {{is-leap-year|652|0}} = 1
  • {{is-leap-year|1600|1}} = 1
  • {{is-leap-year|1601|1}} = 0
  • {{is-leap-year|1604|1}} = 1
  • {{is-leap-year|1700|1}} = 0
  • {{is-leap-year|1800|1}} = 0
  • {{is-leap-year|1900|1}} = 0
  • {{is-leap-year|2000|1}} = 1