Jump to content

Template:Birth based on age as of date/testcases

From Wikipedia, the free encyclopedia

Standard case: Date before today

[edit]
{{Birth based on age as of date|22|1978|1|1}}
Side by side comparison
{{Birth based on age as of date}}{{Birth based on age as of date/sandbox}}
1955 or 1956 (age 68–69) 1955 or 1956 (age 68–69)

Standard case: Date after today

[edit]
{{Birth based on age as of date|22|1978|12|31}}
Side by side comparison
{{Birth based on age as of date}}{{Birth based on age as of date/sandbox}}
1955 or 1956 (age 67–68) 1955 or 1956 (age 67–68)

Standard case: Date is today

[edit]
{{Birth based on age as of date|22|1978|11|23}}
Side by side comparison
{{Birth based on age as of date}}{{Birth based on age as of date/sandbox}}
1955 or 1956 (age 68–69) 1955 or 1956 (age 68–69)

Suppress age

[edit]
{{Birth based on age as of date|22|1978|09|12|noage=y}}
Side by side comparison
{{Birth based on age as of date}}{{Birth based on age as of date/sandbox}}
1955 or 1956 1955 or 1956

Display with slash (for compact style)

[edit]
{{Birth based on age as of date|22|1978|09|12|slash=y}}
Side by side comparison
{{Birth based on age as of date}}{{Birth based on age as of date/sandbox}}
1955/1956 (age 68–69) 1955/1956 (age 68–69)

MOS style compatible (removed)

[edit]
{{Birth based on age as of date|22|1978|09|12|mos=y}}
Side by side comparison
{{Birth based on age as of date}}{{Birth based on age as of date/sandbox}}
1955 or 1956 (age 68–69) 1955 or 1956 (age 68–69)

Test for issues with white space in parameters

[edit]
{{Birth based on age as of date| 22 | 1978 | 1 | 1 }}
Side by side comparison
{{Birth based on age as of date}}{{Birth based on age as of date/sandbox}}
1955 or 1956 (age 68–69) 1955 or 1956 (age 68–69)
{{Birth based on age as of date| 22 | 1978 | 12 | 31 }}
Side by side comparison
{{Birth based on age as of date}}{{Birth based on age as of date/sandbox}}
1955 or 1956 (age 67–68) 1955 or 1956 (age 67–68)