| Parameters | Sandbox version | Main template | ||||
|---|---|---|---|---|---|---|
| no parameters | (date missing) | (date missing) | ||||
{{... ||1234}} (empty name parameter, start date provided, no end reason)
| (m. 1234) | (m. 1234) | ||||
{{marriage|[[Vidya Jagadish]]}} (linked name parameter; no dates, no end reason provided)
| ||||||
{{marriage|[[Mary Soames|Mary Churchill]]}} (linked and piped name parameter; no dates, no end reason provided)
| ||||||
{{... |1234}} (no dates, no end reason provided)
| 1234 (date missing) | 1234 (date missing) | ||||
{{... |123456|end=div}} (no dates; end reason provided)
| 123456 (divorced) | 123456 (divorced) | ||||
{{... |123456|end=annulled}} (no dates; custom end reason provided)
| 123456 (annulled) | 123456 (annulled) | ||||
{{... |123456|1984}} (start date; no end reason provided)
| 123456 (m. 1984) | 123456 (m. 1984) | ||||
{{... |1234 |1256}}
| 1234 (m. 1256) | 1234 (m. 1256) | ||||
{{... |1234 |1256 |1278}}
| 1234 (m. 1256–1278) | 1234 (m. 1256–1278) | ||||
{{... |1278 |1309}}
| 1278 (m. 1309) | 1278 (m. 1309) | ||||
{{... |Text}}
| Text (date missing) | Text (date missing) | ||||
{{... |Text1 |Text2}}
| Text1 (m. invalid year) | Text1 (m. invalid year) | ||||
{{... |Text1 |Text2 |end=d}}
| Text1
(m. invalid year, died) | Text1
(m. invalid year, died) | ||||
{{... |Text |1234}}
| Text (m. 1234) | Text (m. 1234) | ||||
{{... |Text |123456}}
| Text (m. 2026) | Text (m. 2026) | ||||
{{... |Text |1234 |1256}}
| Text (m. 1234–1256) | Text (m. 1234–1256) | ||||
{{... |Text |1278 |1309}}
| Text (m. 1278–1309) | Text (m. 1278–1309) | ||||
{{... |Text |January 1, 2000 |December 31, 2005}}
| Text (m. 2000–2005) | Text (m. 2000–2005) | ||||
{{... |Text |January 1, 2000 |December 31, 2005 |reason=div}}
| Text
(m. 2000; div. 2005) | Text
(m. 2000; div. 2005) | ||||
{{plainlist|
* {{... |Text |January 1, 2000 |December 31, 2005 |reason=div}}<ref>Reference</ref>
* {{... |<!--Text--> |January 1, 2015 |reason=d}}<ref>Reference</ref>
}}
| ||||||
{{... |Text |January 1, 1882 |December 31, 1905 |reason=died}}
| Text
(m. 1882; died 1905) | Text
(m. 1882; died 1905) | ||||
{{... |Text |January 1, 1882 |December 31, 1905 |reason=widowed}} (reason=widowed, no longer supported)
| Text
(m. 1882; invalid reason 1905) | Text
(m. 1882; invalid reason 1905) | ||||
{{... |Text |January 1, 1882 |December 31, 1905 |reason={{abbr|wid.|widowed}}}} (reason={{abbr|wid.|widowed}}, no longer supported)
| Text
(m. 1882; wid. 1905) | Text
(m. 1882; wid. 1905) | ||||
{{... |Text |January 1, 1882 |December 31, 1905 |reason=''reason text''}}
| Text
(m. 1882; reason text 1905) | Text
(m. 1882; reason text 1905) | ||||
{{... |Text with<br/>line breaks<br >in it |January 1, 1882 |December 31, 1905 }}(mid-text line breaks, no end parameter)
| Text with
line breaks in it (m. 1882–1905) | Text with
line breaks in it (m. 1882–1905) | ||||
{{... |Text with<br/>line breaks<br >in it |January 1, 1882 |December 31, 1905|end=died }} (mid-text line breaks, with end parameter)
| Text with
line breaks in it (m. 1882; died 1905) | Text with
line breaks in it (m. 1882; died 1905) | ||||
{{... |1234}}
| 1234 (date missing) | 1234 (date missing) | ||||
{{... |1278 |1309}}
| 1278 (m. 1309) | 1278 (m. 1309) | ||||
{{... |Text}}
| Text (date missing) | Text (date missing) | ||||
{{... |Text |1234}}
| Text (m. 1234) | Text (m. 1234) | ||||
{{... |Text |1234 |1256}}
| Text (m. 1234–1256) | Text (m. 1234–1256) | ||||
{{... |Text |January 1, 2000 |December 31, 2005}}
| Text (m. 2000–2005) | Text (m. 2000–2005) | ||||
{{... |Text |January 1, 1882 |December 31, 1905 |reason=''reason text''}}
| Text
(m. 1882; reason text 1905) | Text
(m. 1882; reason text 1905) | ||||
{{... |Text |January 1, 1882 |December 31, 1905 |reason=''reason text''}}<ref>Reference</ref>
| Text
(m. 1882; reason text 1905) | Text
(m. 1882; reason text 1905) | ||||
{{plainlist|
* {{marriage|Loretta Berardi<br />|1963}}<ref>Reference1</ref>
* {{marriage|Wendy Gaxiola Blah<br />|1978|1986}}<ref>Reference2</ref>
}}
| ||||||
{{Plainlist|
* {{marriage|[[Eudoxia Lopukhina]]|1689|1698|end=}}
* {{marriage|[[Martha Skavronskaya]]<br>|1707}}
}}
| ||||||
{{marriage|Felice Lewin|1924|1927|end=divorced}}<br/>{{marriage|[[Maureen O'Sullivan]]|1936}}
| Felice Lewin
(m. 1924; div. 1927) | Felice Lewin
(m. 1924; div. 1927) | ||||
{{marriage|Teddy Louise Farmer<br>|1959|1966|end=divorced}}<br>{{marriage|[[Vickery Turner]]<br>|1969|1974|end=divorced}}<br />{{marriage|Judy A. Jones<br>|1977}}
| Teddy Louise Farmer
(m. 1959; div. 1966)Judy A. Jones
(m. 1977) | Teddy Louise Farmer
(m. 1959; div. 1966)Judy A. Jones
(m. 1977) | ||||
{{marriage|Edwin Pond Parker II<br />|1917|1928|end=divorced}}<br />{{marriage|[[Alan Campbell (screenwriter)|Alan Campbell]]<br />|1934|1947|end=divorced}}<ref>Reference</ref><br />{{marriage||1950|1963|end=his death}} (complex empty first parameter)
| Edwin Pond Parker II
(m. 1917; div. 1928)[11] (m. 1950; "his death" is deprecated; use "died" instead. 1963) | Edwin Pond Parker II
(m. 1917; div. 1928)[12] (m. 1950; "his death" is deprecated; use "died" instead. 1963) | ||||
{{marriage|Debra Lynn||2008|reason=divorced}}<ref>Reference</ref> (empty second parameter, with reason)
| Debra Lynn (div. 2008) | Debra Lynn (div. 2008) | ||||
{{marriage|Debra Lynn||2008|end=}}<ref>Reference</ref> (empty second parameter, with empty end reason)
| Debra Lynn (until 2008) | Debra Lynn (until 2008) | ||||
{{plainlist|
* {{marriage|end=div|Susan Cox<br>}}
* {{marriage|end=div|Nora Robbins<br>}}
}}
| Susan Cox
(divorced)Nora Robbins
(divorced) | Susan Cox
(divorced)Nora Robbins
(divorced) | ||||
{{marriage|Princess Somsangouane Baldinger||2008}} (empty second parameter, without reason)
| Princess Somsangouane Baldinger
(before 2008) | Princess Somsangouane Baldinger
(before 2008) | ||||
{{marriage|Princess Somsangouane Baldinger|2008|}} (empty third parameter, without reason)
| Princess Somsangouane Baldinger
(m. 2008) | Princess Somsangouane Baldinger
(m. 2008) | ||||
{{marriage|Princess Somsangouane Baldinger|2008|typo}} (bogus third parameter)
| Princess Somsangouane Baldinger
(m. 2008–invalid year) | Princess Somsangouane Baldinger
(m. 2008–invalid year) | ||||
{{plainlist|
* {{marriage|[[Cossutia]]|reason=disputed}}
* {{marriage|[[Cornelia (wife of Caesar)|Cornelia]]|reason=84–69 BC; her death}}
* {{marriage|[[Pompeia (wife of Julius Caesar)|Pompeia]]|reason=67–61 BC; divorced}}
* {{marriage|[[Calpurnia (wife of Caesar)|Calpurnia]]|reason=59–44 BC; his death}}
}}
| ||||||
{{longitem|[[John Jacob Jingleheimer Schmidt]] {{marriage|2=1900|end=d}} }} (no name parameter, end reason provided)
|
|
| ||||
{{marriage |Text |c. 2000|25}} (manual circa)
| Text (m. 2026) | Text (m. 2026) | ||||
{{marriage |Text |{{circa|2000}}}} (template-based circa)
| Text (m. invalid year) | Text (m. invalid year) | ||||
{{Marriage|Louise Jouanne|1884|1931|end=died}} (acceptable start and end dates, with end=died)
| Louise Jouanne
(m. 1884; died 1931) | Louise Jouanne
(m. 1884; died 1931) | ||||
{{Marriage|Louise Jouanne|1884|1864|end=died}} (marriage date after end date (error) with end=died)
| Louise Jouanne
(m. 1884; died 1864) | Louise Jouanne
(m. 1884; died 1864) |
Uncommon dates, Infobox
| Empty set | |||||||
|---|---|---|---|---|---|---|---|
| |||||||
| Marriage year only | |||||||
| |||||||
| Start and end years, same century | |||||||
| |||||||
| Start and end years, diff centuries | |||||||
| |||||||
| Start and end full dates, same century | |||||||
| |||||||
| Start and end full dates, same century, |reason=div | |||||||
| |||||||
| Start and end full dates, same century, |reason=w | |||||||
| |||||||
| Start and end full dates, same century, |reason=custom | |||||||
| |||||||
| Next Test Case | |||||||
| |||||||
Uncommon dates
- year = 0, 7, 28, 945, 1600; "Text" = spouse name
| Year | Test case | ||||||
|---|---|---|---|---|---|---|---|
| (no year) |
| ||||||
| 0 |
| ||||||
| 0000 |
| ||||||
| 7 |
| ||||||
| 0007 |
| ||||||
| 28 |
| ||||||
| 0028 |
| ||||||
| 945 |
| ||||||
| 0945 |
| ||||||
| 1600 (pre-calendar change) |
| ||||||
| 3000 (future year) |
| ||||||
| c. 2010 (circa with year) |
|
Additional tests
Invalid ending year:
invalid ending year, 1600–25 (pre-calendar change)
| Live | → |
Text (m. 1600–Expression error: Unexpected < operator) |
|---|---|---|
| Sandbox | → |
Text (m. 1600–Expression error: Unexpected < operator) |
invalid ending year, 2020–21 (post-calendar change)
| Live | → |
Text (m. 2020–Expression error: Unexpected < operator) |
|---|---|---|
| Sandbox | → |
Text (m. 2020–Expression error: Unexpected < operator) |
Use of "separated" for end reason
| Live | → |
Text
(m. 1990; sep. 2000) |
|---|---|---|
| Sandbox | → |
Text
(m. 1990; sep. 2000) |
Use of "sep." for end reason
| Live | → |
Text
(m. 1990; sep. 2000) |
|---|---|---|
| Sandbox | → |
Text
(m. 1990; sep. 2000) |
Use of "annulled" for end reason
| Live | → |
Text
(m. 1990; ann. 2000) |
|---|---|---|
| Sandbox | → |
Text
(m. 1990; ann. 2000) |
Use of "he d." for end reason
| Live | → |
Text
(m. 1990; "he d." is deprecated; use "died" instead. 2000) |
|---|---|---|
| Sandbox | → |
Text
(m. 1990; "he d." is deprecated; use "died" instead. 2000) |
Use of "she d." for end reason
| Live | → |
Text
(m. 1990; "she d." is deprecated; use "died" instead. 2000) |
|---|---|---|
| Sandbox | → |
Text
(m. 1990; "she d." is deprecated; use "died" instead. 2000) |
Realistic Infobox_Person example
To better visualize the usage of the template within the Infobox Person template in a realistic usage, this Infobox is manually created to show differences in spacing, padding, margins, word-wrapping, etc., as compared to the other parameters in the template.
References for test cases
- Reference
- Reference
- Reference
- Reference
- Reference
- Reference
- Reference1
- Reference2
- Reference1
- Reference2
- Reference
- Reference
- Reference
- Reference
- Reference
- Reference