Template:Death_year_and_age
[Wikipedia|▼Menu]
.mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%} テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

存命人物で誕生日を年及び月しか公表していない場合に現年齢の範囲を計算して表示するテンプレートです。
入力{{Birth year and age|生誕年}}{{Birth year and age|生誕年|生誕月(任意)}}{{Death year and age|死没年|生誕年}}{{Death year and age|死没年|生誕年|死没月(任意)}}
使用例

本日の日付(2024年6月3日)を元に年齢を計算。

入力表示
{{Birth year and age|1969}}
1969年(54 - 55歳)
{{Birth year and age|1969|06}}1969年6月(54 - 55歳)
{{Death year and age|2023|1973}}2023年(49 - 50歳没)
{{Death year and age|2023|1973|06}}2023年6月(49 - 50歳没)
この解説は、Template:Death year and age/docから呼び出されています。 (編集 | 履歴)
編集者は、このテンプレートをサンドボックス (編集 | 差分)とテストケース (作成)で試すことができます。(解説
/docのサブページにカテゴリを追加してください。 このテンプレートのサブページ一覧。


記事の検索
おまかせリスト
▼オプションを表示
ブックマーク登録
mixiチェック!
Twitterに投稿
オプション/リンク一覧
話題のニュース
列車運行情報
暇つぶしWikipedia

Size:2821 Bytes
出典: フリー百科事典『ウィキペディア(Wikipedia)
担当:undef