Template:生年と年齢
表示
存命人物で誕生日を年及び月しか公表していない場合に現年齢の範囲を計算して表示するテンプレートです。
他言語版の{{Birth year and age}}と互換性があります(本テンプレートにリダイレクトされます)。
入力
{{生年と年齢|生誕年}}
{{生年と年齢|生誕年|生誕月(任意)}}
{{Birth year and age|生誕年}}
{{Birth year and age|生誕年|生誕月(任意)}}
使用例
本日の日付(2026年9月7日)を元に年齢を計算。
| 入力 | 表示 |
|---|---|
| {{生年と年齢|1971}} | 1971年(54 - 55歳) |
| {{生年と年齢|1971|09}} | 1971年9月(54 - 55歳) |
| {{Birth year and age|1971}} | 1971年(54 - 55歳) |
| {{Birth year and age|1971|09}} | 1971年9月(54 - 55歳) |
関連項目
- Template:生年と年齢2 - 年齢だけの表示版。
- Template:Death year and age - 亡くなった人に対して使用(歿年齢を計算)。