Template:Birth based on age as of date/testcases
Appearance
This is the template test cases page for the sandbox of Template:Birth based on age as of date. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Standard case: Date before today[edit]
{{Birth based on age as of date|22|1978|1|1}}
{{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}}
{{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|07|7}}
{{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}}
{{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}}
{{Birth based on age as of date}} | {{Birth based on age as of date/sandbox}} |
---|---|
1955/1956 (age 67–68) | 1955/1956 (age 67–68) |
MOS style compatible (removed)[edit]
{{Birth based on age as of date|22|1978|09|12 |mos=y}}
{{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) |
Test for issues with white space in parameters[edit]
{{Birth based on age as of date| 22 | 1978 | 1 | 1 }}
{{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 }}
{{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) |