「テンプレート:年月日/doc」の版間の差分

提供:nandeanotowiki
(ページの作成:「<noinclude>{{Documentation subpage|種類=テンプレート}}</noinclude><includeonly>{{使用箇所の多いテンプレート|161,000以上…」)
 
(相違点なし)

2021年8月27日 (金) 21:08時点における最新版

テンプレート:Documentation subpage

{{年月日 | year=西暦年 | month= | day=}}

年月日を「XXXX年XX月XX日」の形に整形します。

yearmonthday が数字であれば、「年」「月」「日」を後につけます。そうでなければ、指定したものをそのまま出力します (月については、英語の月名やその略号でも数字と「月」にします)。

  • {{年月日 | year=1999 | month=7 }} → 1999年7月
  • {{年月日 | year=1999 | month=7 | day=7 }} → 1999年7月7日
  • {{年月日 | month=7 | day=7 }} → 7月7日
  • {{年月日 | year=昭和64年 | month=01 | day=06 }} → 昭和64年1月6日
  • {{年月日 | year=1873 | month=閏11月 }} → 1873年閏11月

関連項目