• 首页
  • 随机
  • 最近更改
  • 特殊页面
  • 社群首页
  • 设置
  • 关于戏曲百科
  • 免责声明
戏曲百科
  • 登录

模板:Age in years and months

  • 监视
  • 查看源代码
    • 链入页面
    • 固定链接
    • 页面信息
模板文档[查看] [编辑] [历史] [清除缓存]
🪧此模板使用Lua语言:
  • Module:Age

This template returns the duration between two specified dates as a number of full years and remaining months. If the second set of parameters is not included, the duration is between the specified date and today's date.

语法

{{age in years and months |year1|month1|day1 |year2|month2|day2}}
{{age in years and months |year1|month1|day1}}  (causing the current date to be used as the second date)

示例

-{zh-cn:代码; zh-tw:原始碼;}- [[:模板: 效果
{{age in years and months |1989|7|23 |2003|7|14}}

13年11个月

{{age in years and months |1989|7|23 |1989|8|22}}

0个月

{{age in years and months |1989|7|23 |1989|8|23}}

1个月

{{age in years and months |1989|7|23 |1990|7|23}}

1年

{{age in years and months |1989|7|23}}

36年9个月

{{age in years and months |1990|7|23 |1989|7|23}}

−1年

{{age in years and months |1990|9|23 |1989|7|23}}

−1年2个月


  • 查
  • 论
  • 编
出生、逝世及日期模板
出生,逝世,年龄
模板  描述模板:\用法 
{{BirthDeathAge}} Combines functions of {{birth date}}, {{birth-date}}, {{birth date and age}}, {{birth year and age}}, {{death date}}, {{death-date}}, {{death date and age}} and {death year and age}}.
{{birth date}} To display a birth date and related hidden metadata.
{{birth-date}}
{{birth date and age}} {{birth date}} with suffix "(age N)".
{{birth date and age2}} {{birth date and age}} plus age as of a specified date.
{{birth-date and age}} As {{birth date and age}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
{{birth year and age}} Year of birth and approximate age.
{{Birth based on age as of date}} To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person).
{{Birth date based on age at death}} To display approximate birth year based on age at death.
模板  描述模板:\用法 
{{death date}} To display a death date and related hidden metadata.
{{death-date}}
{{death date and age}} {{death date}} with suffix "(aged N)". Also called with {{event date and age}}
{{death-date and age}} As {{death date and age}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
{{death date and given age}} To display a death date and specified age.
{{death year and age}} To display a year of and approximate age at death.
只有年龄
模板  描述模板:\用法 
{{age in years, months, weeks and days}} Number of complete years, months, weeks and days between two dates.
{{age in years, months and days}} Number of complete years, months and days between two dates.
{{age in years and months}} Number of complete years and remaining months between two dates.
{{age in years and days}} Number of complete years and remaining days between two dates.
{{age in years and days nts}} {{age in years and days}} with output formatted for use in sortable tables.
{{age in decimal years}} Number of years between two dates, rounded to the specified number of decimal places.
{{age in years}} Number of years between two dates.
{{age in years nts}} {{age in years}} with output formatted for use in sortable tables.
{{age in months}} Number of months between two dates.
{{age in weeks and days}} Number of weeks and days between two dates.
{{age in weeks}} Number of weeks between two dates.
{{age in days}} Age in days between two dates.
{{age in days nts}} {{age in days}} with output formatted for use in sortable tables.
模板  描述模板:\用法 
{{age}} Age based on number of complete years between two dates.
{{age nts}} {{age}} with output formatted for use in Help:可排序表格.
{{age as of date}} Current age (in years) from a known age at a specified date.
{{age for infant}} Current age for infant: months and days up to one year, years and months up to three years, and years beyond.
开始模板:\结束时间
模板  描述模板:\用法 
{{start date}} / {{end date}}
{{start-date}} / {{end-date}}
{{start date and age}}
{{end date and age}}
杂项
模板  描述模板:\用法 
{{OldStyleDate}} Dates pre-1584 in Julian calendar
  • About age calculation templates
  • Category:日期计算模板
上述文档嵌入自模板:Age in years and months/doc。 (编辑 | 历史)
编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。
请在/doc子页面中添加分类。 本模板的子页面。
检索自“https://wiki66.com/index.php?title=模板:Age_in_years_and_months&oldid=46520”
分类:​
  • Lua模板
  • 日期计算模板
最后编辑于2021年6月16日 (星期三) 23:01

语言

    此页面在其他语言不可用。

    戏曲百科
    • 本页面最后编辑于2021年6月16日 (星期三) 23:01。
    • 错误反馈
    • 关于戏曲百科
    • 免责声明
    • 豫ICP备13003402号-1
    • 桌面版