Template:Marriage/testcases
{{Testcases}}{{clear}}
class=wikitable | |||
style="width:33%" | Parameters
! Sandbox version ! Main template | |||
---|---|---|---|
no parameters
| {{{{TEMPLATENAMEE|testcases}}/sandbox}} | {{ {{TEMPLATENAMEE|testcases}} }} | |||
| 1234}} (empty name parameter, start date provided, no end reason)
| {{{{TEMPLATENAMEE|testcases}}/sandbox | 1234}}
| {{{{TEMPLATENAMEE|testcases}} | 1234}} |
(linked name parameter; no dates, no end reason provided)
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Vidya Jagadish}} | {{{{TEMPLATENAMEE|testcases}} |Vidya Jagadish}} | |||
(linked and piped name parameter; no dates, no end reason provided)
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Mary Churchill}} | {{{{TEMPLATENAMEE|testcases}} |Mary Churchill}} | |||
(no dates, no end reason provided)
| {{{{TEMPLATENAMEE|testcases}}/sandbox |1234}} | {{{{TEMPLATENAMEE|testcases}} |1234}} | |||
(no dates; end reason provided)
| {{{{TEMPLATENAMEE|testcases}}/sandbox |123456|end=div}} | {{{{TEMPLATENAMEE|testcases}} |123456|end=div}} | |||
(no dates; custom end reason provided)
| {{{{TEMPLATENAMEE|testcases}}/sandbox |123456|end=annulled}} | {{{{TEMPLATENAMEE|testcases}} |123456|end=annulled}} | |||
(start date; no end reason provided)
| {{{{TEMPLATENAMEE|testcases}}/sandbox |123456|1984}} | {{{{TEMPLATENAMEE|testcases}} |123456|1984}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |1234 |1256}} | {{{{TEMPLATENAMEE|testcases}} |1234 |1256}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |1234 |1256 |1278}} | {{{{TEMPLATENAMEE|testcases}} |1234 |1256 |1278}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |1278 |1309}} | {{{{TEMPLATENAMEE|testcases}} |1278 |1309}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text}} | {{{{TEMPLATENAMEE|testcases}} |Text}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text1 |Text2}} | {{{{TEMPLATENAMEE|testcases}} |Text1 |Text2}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text1 |Text2 |end=d}} | {{{{TEMPLATENAMEE|testcases}} |Text1 |Text2 |end=d}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |1234}} | {{{{TEMPLATENAMEE|testcases}} |Text |1234}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |123456}} | {{{{TEMPLATENAMEE|testcases}} |Text |123456}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |1234 |1256}} | {{{{TEMPLATENAMEE|testcases}} |Text |1234 |1256}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |1278 |1309}} | {{{{TEMPLATENAMEE|testcases}} |Text |1278 |1309}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |January 1, 2000 |December 31, 2005}} | {{{{TEMPLATENAMEE|testcases}} |Text |January 1, 2000 |December 31, 2005}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |January 1, 2000 |December 31, 2005 |reason=div}} | {{{{TEMPLATENAMEE|testcases}} |Text |January 1, 2000 |December 31, 2005 |reason=div}} | |||
| {{plainlist|
}} | {{plainlist|
}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |January 1, 1882 |December 31, 1905 |reason=died}} | {{{{TEMPLATENAMEE|testcases}} |Text |January 1, 1882 |December 31, 1905 |reason=died}} | |||
(reason=widowed, no longer supported)
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |January 1, 1882 |December 31, 1905 |reason=widowed}} | {{{{TEMPLATENAMEE|testcases}} |Text |January 1, 1882 |December 31, 1905 |reason=widowed}} | |||
(reason=| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |January 1, 1882 |December 31, 1905 |reason={{abbr|wid.|widowed}}}} | {{{{TEMPLATENAMEE|testcases}} | Text |January 1, 1882 |December 31, 1905 |reason={{abbr|wid.|widowed}}}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |January 1, 1882 |December 31, 1905 |reason=reason text}} | {{{{TEMPLATENAMEE|testcases}} |Text |January 1, 1882 |December 31, 1905 |reason=reason text}} | |||
(mid-text line breaks, no end parameter)
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text with | {{{{TEMPLATENAMEE|testcases}} |Text with | |||
(mid-text line breaks, with end parameter)
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text with | {{{{TEMPLATENAMEE|testcases}} |Text with | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |1234}} | {{{{TEMPLATENAMEE|testcases}} |1234}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |1278 |1309}} | {{{{TEMPLATENAMEE|testcases}} |1278 |1309}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text}} | {{{{TEMPLATENAMEE|testcases}} |Text}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |1234}} | {{{{TEMPLATENAMEE|testcases}} |Text |1234}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |1234 |1256}} | {{{{TEMPLATENAMEE|testcases}} |Text |1234 |1256}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |January 1, 2000 |December 31, 2005}} | {{{{TEMPLATENAMEE|testcases}} |Text |January 1, 2000 |December 31, 2005}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |January 1, 1882 |December 31, 1905 |reason=reason text}} | {{{{TEMPLATENAMEE|testcases}} |Text |January 1, 1882 |December 31, 1905 |reason=reason text}} | |||
| {{{{TEMPLATENAMEE|testcases}}/sandbox |Text |January 1, 1882 |December 31, 1905 |reason=reason text}}Reference | {{{{TEMPLATENAMEE|testcases}} |Text |January 1, 1882 |December 31, 1905 |reason=reason text}}Reference | |||
| {{plainlist|
}} | {{plainlist|
}} | |||
| {{Plainlist|
}} | {{Plainlist|
}} | |||
| {{marriage/sandbox|Felice Lewin|1924|1927|end=divorced}} | {{marriage|Felice Lewin|1924|1927|end=divorced}} | |||
| {{marriage/sandbox|Teddy Louise Farmer | {{marriage|Teddy Louise Farmer | |||
| 1950|1963|end=his death}} (complex empty first parameter)
| {{marriage/sandbox|Edwin Pond Parker II | 1950|1963|end=his death}}
| {{marriage|Edwin Pond Parker II | 1950|1963|end=his death}} |
| 2008|reason=divorced}}Reference (empty second parameter, with reason)
| {{marriage/sandbox|Debra Lynn | 2008|reason=divorced}}Reference
| {{marriage|Debra Lynn | 2008|reason=divorced}}Reference |
| 2008|end=}}Reference (empty second parameter, with empty end reason)
| {{marriage/sandbox|Debra Lynn | 2008|end=}}Reference
| {{marriage|Debra Lynn | 2008|end=}}Reference |
| {{plainlist|
}} | {{plainlist|
}} | |||
| 2008}} (empty second parameter, without reason)
|{{marriage/sandbox|Princess Somsangouane Baldinger | 2008}}
|{{marriage|Princess Somsangouane Baldinger | 2008}} |
|
|{{marriage/sandbox|Princess Somsangouane Baldinger|2008|}}
|{{marriage|Princess Somsangouane Baldinger|2008|}}
|-
|
(bogus third parameter)
|{{marriage/sandbox|Princess Somsangouane Baldinger|2008|typo}}
|{{marriage|Princess Somsangouane Baldinger|2008|typo}}
|-
|
{{plainlist|
- {{marriage|Cossutia|reason=disputed}}
- {{marriage|Cornelia|reason=84–69 BC; her death}}
- {{marriage|Pompeia|reason=67–61 BC; divorced}}
- {{marriage|Calpurnia|reason=59–44 BC; his death}}
}}
|{{plainlist|
- {{marriage/sandbox|Cossutia|reason=disputed}}
- {{marriage/sandbox|Cornelia|reason=84–69 BC; her death}}
- {{marriage/sandbox|Pompeia|reason=67–61 BC; divorced}}
- {{marriage/sandbox|Calpurnia|reason=59–44 BC; his death}}
}}
|{{plainlist|
- {{marriage|Cossutia|reason=disputed}}
- {{marriage|Cornelia|reason=84–69 BC; her death}}
- {{marriage|Pompeia|reason=67–61 BC; divorced}}
- {{marriage|Calpurnia|reason=59–44 BC; his death}}
}}
|-
|
(no name parameter, end reason provided)
| {{infobox |bodyclass=floatleft |bodystyle=width:220px |label1=Sandbox |data1={{longitem|{{fake link|John Jacob Jingleheimer Schmidt}} {{marriage/sandbox|2=1900|end=d}} }}}}
| {{infobox |bodyclass=floatleft |bodystyle=width:220px |label1=Live |data1={{longitem|{{fake link|John Jacob Jingleheimer Schmidt}} {{marriage|2=1900|end=d}} }}}}
|-
|
(manual circa)
| {{Marriage/sandbox |Text |c. 2000}}
| {{Marriage |Text |c. 2000}}
|-
|
(template-based circa)
| {{Marriage/sandbox |Text |{{circa|2000}}}}
| {{Marriage |Text |{{circa|2000}}}}
|}
Uncommon dates, Infobox
{{Infobox | headerstyle = background:#ccf;
| title = Infobox Example Tests
| header2 = Empty set
| data3 = {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|SpouseName}}
| header4 = Marriage year only
| data5 = {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|SpouseName|2000}}
| header7 = Start and end years,
same century
| data8 = {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|SpouseName|2000|2005}}
| header10 = Start and end years,
diff centuries
| data11 = {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|SpouseName|1990|2005}}
| header13 = Start and end full dates,
same century
| data14 = {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Wernher von Braun|January 1, 2000|December 31, 2005|goofy=dog? but what about Pluto?|pluto=dog? but what about Goofy?}}
| header16 = Start and end full dates,
same century, {{Para|reason|div}}
| data17 = {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Jean-Claude Van Damme|January 1, 2000|December 31, 2005|reason=div}}
| header19 = Start and end full dates,
same century, {{Para|reason|w}}
| data20 = {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Billy Bob Thornton|January 1, 2000|December 31, 2005|reason=w}}
| header22 = Start and end full dates,
same century, {{Para|reason|custom}}
| data23 = {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Arnold Schwarzenegger|January 1, 2000|December 31, 2005|reason=abducted}}
| header25 = Next Test Case
| data26 = {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Another Test Case}}
}}
= Uncommon dates =
: year = 0, 7, 28, 945, 1600; "Text" = spouse name
class=wikitable |
style="width:10%" | Year
! style="width:25%" | Test case |
---|
(no year)
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |
|-
| 0
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |0}}
|-
| 0000
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |0000}}
|-
| 7
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |7}}
|-
| 0007
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |0007}}
|-
| 28
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |28}}
|-
| 0028
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |0028}}
|-
| 945
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |945}}
|-
| 0945
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |0945}}
|-
| 1600 (pre-calendar change)
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |1600}}
|-
| 3000 (future year)
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |1600|3000}}
|-
| c. 2010 (circa with year)
| {{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |John Doe|c. 2010}}
|}
= Additional tests =
== Invalid ending year: ==
invalid ending year, 1600–25 (pre-calendar change)
{{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |1600|25}}
{{hr}}
invalid ending year, 2020–21 (post-calendar change)
{{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |2020|21}}
{{hr}}
Use of "separated" for end reason
{{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |1990|2000|end=separated}}
{{hr}}
Use of "sep." for end reason
{{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |1990|2000|end=sep.}}
{{hr}}{{clear}}
Use of "annulled" for end reason
{{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |1990|2000|end=annulled}}
{{hr}}
Use of "he d." for end reason
{{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |1990|2000|end=he d.}}
{{hr}}
Use of "she d." for end reason
{{Test case|_heading1=Live|_heading2=Sandbox|_format=tablerows|Text |1990|2000|end=she d.}}
{{hr}}
References for test cases
{{reflist}}