跳转到内容

Template:Age range/doc

维基百科,自由的百科全书

Usage

[编辑]

This template returns the number of full years between two specified year ranges.

Example

[编辑]
{{age range|from1=1900|from2=1910|to1=1980|to2=1990}}

69–90

{{age range|from1=1900|from2=1910|to=1980}}

69–80

TemplateData

[编辑]

This template returns the number of full years between two specified year ranges.

模板参数

参数描述类型状态
Year1 ("from" date)from1

The first year of the "from" date

数字可选
Year2 ("from" date)from2

The second year of the "from" date

数字可选
Year ("from" date)from

If there is only one "from" year then use the from parameter instead of from1 and from2

数字可选
Year1 ("to" date)to1

The first year of the "to" date

数字可选
Year2 ("to" date)to2

The second year of the "to" date

数字可选
Year ("to" date)to

If there is only one "to" year then use the to parameter instead of to1 and to2

数字可选

See also

[编辑]