Plantilla:Marriage/testcases

De MacphersonWiki
Ir a la navegación Ir a la búsqueda
Parameters Sandbox version Main template
no parameters
(m. c.Plantilla:Wdib/sandbox)
(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)
(date missing)
{{marriage|[[Mary Soames|Mary Churchill]]}} (linked and piped name parameter; no dates, no end reason provided)
(date missing)
{{... |1234}} (no dates, no end reason provided)
1234
(m. c.Plantilla:Wdib/sandbox)
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
(m. c.Plantilla:Wdib/sandbox)
Text
(date missing)
{{... |Text1 |Text2}}
Text1
(m. invalid year⁠–⁠Error en la expresión: operador < no esperado.)
Text1
(m. invalid year)
{{... |Text1 |Text2 |end=d}}
Text1
(m. invalid year; died Error en la expresión: operador < no esperado.)
Text1
(m. invalid year, died)
{{... |Text |1234}}
Text
(m. 1234)
Text
(m. 1234)
{{... |Text |123456}}
Text
(m. 2024)
Text
(m. 2024)
{{... |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⁠–⁠Error en la expresión: operador < no esperado.)
Text
(m. 2000⁠–⁠Error en la expresión: operador < no esperado.)
{{... |Text |January 1, 2000 |December 31, 2005 |reason=div}}
Text
(m. 2000; div. Error en la expresión: operador < no esperado.)
Text
(m. 2000; div. Error en la expresión: operador < no esperado.)
{{plainlist|
* {{... |Text |January 1, 2000 |December 31, 2005 |reason=div}}<ref>Reference</ref>
* {{... |<!--Text--> |January 1, 2015 |reason=d}}<ref>Reference</ref>
}}
Text
(m. 2000; div. Error en la expresión: operador < no esperado.)
[1]
(m. 2015, died)
[2]
Text
(m. 2000; div. Error en la expresión: operador < no esperado.)
[3]
(m. 2015, died)
[4]
{{... |Text |January 1, 1882 |December 31, 1905 |reason=died}}
Text
(m. 1882; died Error en la expresión: operador < no esperado.)
Text
(m. 1882; died Error en la expresión: operador < no esperado.)
{{... |Text |January 1, 1882 |December 31, 1905 |reason=widowed}} (reason=widowed, no longer supported)
Text
(m. 1882; invalid reason Error en la expresión: operador < no esperado.)
Text
(m. 1882; invalid reason Error en la expresión: operador < no esperado.)
{{... |Text |January 1, 1882 |December 31, 1905 |reason=''reason text''}}
Text
(m. 1882; reason text Error en la expresión: operador < no esperado.)
Text
(m. 1882; reason text Error en la expresión: operador < no esperado.)
{{... |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⁠–⁠Error en la expresión: operador < no esperado.)
Text with
line breaks
in it
(m. 1882⁠–⁠Error en la expresión: operador < no esperado.)
{{... |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 Error en la expresión: operador < no esperado.)
Text with
line breaks
in it
(m. 1882; died Error en la expresión: operador < no esperado.)
{{... |1234}}
1234
(m. c.Plantilla:Wdib/sandbox)
1234
(date missing)
{{... |1278 |1309}}
1278
(m. 1309)
1278
(m. 1309)
{{... |Text}}
Text
(m. c.Plantilla:Wdib/sandbox)
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⁠–⁠Error en la expresión: operador < no esperado.)
Text
(m. 2000⁠–⁠Error en la expresión: operador < no esperado.)
{{... |Text |January 1, 1882 |December 31, 1905 |reason=''reason text''}}
Text
(m. 1882; reason text Error en la expresión: operador < no esperado.)
Text
(m. 1882; reason text Error en la expresión: operador < no esperado.)
{{... |Text |January 1, 1882 |December 31, 1905 |reason=''reason text''}}<ref>Reference</ref>
Text
(m. 1882; reason text Error en la expresión: operador < no esperado.)
[5]
Text
(m. 1882; reason text Error en la expresión: operador < no esperado.)
[6]
{{plainlist|
* {{marriage|Loretta Berardi<br />|1963}}<ref>Reference1</ref>
* {{marriage|Wendy Gaxiola Blah<br />|1978|1986}}<ref>Reference2</ref>
}}
Loretta Berardi
(m. 1963)
[7]
Wendy Gaxiola Blah
(m. 1978⁠–⁠1986)
[8]
Loretta Berardi
(m. 1963)
[9]
Wendy Gaxiola Blah
(m. 1978⁠–⁠1986)
[10]
{{Plainlist|
* {{marriage|[[Eudoxia Lopukhina]]|1689|1698|end=}}
* {{marriage|[[Martha Skavronskaya]]<br>|1707}}
}}
(1689⁠–⁠1698)
(m. 1707)
(1689⁠–⁠1698)
(m. 1707)
{{marriage|Felice Lewin|1924|1927|end=divorced}}<br/>{{marriage|[[Maureen O'Sullivan]]|1936}}
Felice Lewin
(m. 1924; div. 1927)

(m. 1936)
Felice Lewin
(m. 1924; div. 1927)

(m. 1936)
{{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)

(m. 1969; div. 1974)

Judy A. Jones
(m. 1977)
Teddy Louise Farmer
(m. 1959; div. 1966)

(m. 1969; div. 1974)

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)

(m. 1934; div. 1947)
[11]
(m. 1950; his death 1963)
Edwin Pond Parker II
(m. 1917; div. 1928)

(m. 1934; div. 1947)
[12]
(m. 1950; his death 1963)
{{marriage|Debra Lynn||2008|reason=divorced}}<ref>Reference</ref> (empty second parameter, with reason)
Debra Lynn
(divorced)
[13]
Debra Lynn
(div. 2008)
[14]
{{marriage|Debra Lynn||2008|end=}}<ref>Reference</ref> (empty second parameter, with empty end reason)
Debra Lynn
()
[15]
Debra Lynn
(until 2008)
[16]
{{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
()
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}}
}}
(disputed)
(84–69 BC; her death)
(67–61 BC; divorced)
(59–44 BC; his death)
(disputed)
(84–69 BC; her death)
(67–61 BC; divorced)
(59–44 BC; his death)
{{longitem|[[John Jacob Jingleheimer Schmidt]] {{marriage|2=1900|end=d}} }} (no name parameter, end reason provided)
Sandbox
John Jacob Jingleheimer Schmidt
(m. 1900, died)
Live
John Jacob Jingleheimer Schmidt
(m. 1900, died)
{{marriage |Text |c. 2000|25}} (manual circa)
Text
(m. 2024)
Text
(m. 2024)
{{marriage |Text |{{circa|2000}}}} (template-based circa)
Text
(m. <span title="c. 2000" class="rt-commentedText" >invalid year⁠–⁠Error en la expresión: operador < no esperado.)
Text
(m. invalid year)

Uncommon dates[editar código]

year = 0, 7, 28, 945, 1600; "Text" = spouse name
Parameters Sandbox version Main template
none
(m. c.Plantilla:Wdib/sandbox)
(date missing)
{{marriage |Text |0}}
Text
(m. invalid year⁠–⁠Error en la expresión: operador < no esperado.)
Text
(m. 2000)
{{marriage |Text |0000}}
Text
(m. 0000)
Text
(m. 0000)
{{marriage |Text |7}}
Text
(m. invalid year⁠–⁠Error en la expresión: operador < no esperado.)
Text
(m. 2007)
{{marriage |Text |0007}}
Text
(m. 0007)
Text
(m. 0007)
{{marriage |Text |28}}
Text
(m. invalid year⁠–⁠Error en la expresión: operador < no esperado.)
Text
(m. 2028)
{{marriage |Text |0028}}
Text
(m. 0028)
Text
(m. 0028)
{{marriage |Text |945}}
Text
(m. invalid year⁠–⁠Error en la expresión: operador < no esperado.)
Text
(m. 945)
{{marriage |Text |0945}}
Text
(m. 0945)
Text
(m. 0945)
{{marriage |Text |1600}} (pre-calendar change)
Text
(m. 1600)
Text
(m. 1600)
{{marriage |Text |1600|25}} (invalid ending year)
Text
(m. 1600⁠–⁠invalid year)
Text
(m. 1600⁠–⁠Error en la expresión: operador < no esperado.)
{{marriage|John Doe|c. 2010}} (circa with year)
John Doe
(m. 2024)
John Doe
(m. 2024)

Infobox[editar código]

Empty set
Live
SpouseName
(date missing)
Sandbox
SpouseName
(m. c.Plantilla:Wdib/sandbox)
Marriage year only
Live
SpouseName
(m. 2000)
Sandbox
SpouseName
(m. 2000)
Start and end years,
same century
Live
SpouseName
(m. 2000⁠–⁠2005)
Sandbox
SpouseName
(m. 2000⁠–⁠2005)
Start and end years,
diff centuries
Live
SpouseName
(m. 1990⁠–⁠2005)
Sandbox
SpouseName
(m. 1990⁠–⁠2005)
Start and end full dates,
same century
Live
Wernher von Braun
(m. 2000⁠–⁠Error en la expresión: operador < no esperado.)
Sandbox
Wernher von Braun
(m. 2000⁠–⁠Error en la expresión: operador < no esperado.)
Start and end full dates,
same century, |reason=div
Live
Jean-Claude Van Damme
(m. 2000; div. Error en la expresión: operador < no esperado.)
Sandbox
Jean-Claude Van Damme
(m. 2000; div. Error en la expresión: operador < no esperado.)
Start and end full dates,
same century, |reason=w
Live
Billy Bob Thornton
(m. 2000; invalid reason Error en la expresión: operador < no esperado.)
Sandbox
Billy Bob Thornton
(m. 2000; invalid reason Error en la expresión: operador < no esperado.)
Start and end full dates,
same century, |reason=custom
Live
Arnold Schwarzenegger
(m. 2000; abducted Error en la expresión: operador < no esperado.)
Sandbox
Arnold Schwarzenegger
(m. 2000; abducted Error en la expresión: operador < no esperado.)

References for test cases[editar código]

  1. Reference
  2. Reference
  3. Reference
  4. Reference
  5. Reference
  6. Reference
  7. Reference1
  8. Reference2
  9. Reference1
  10. Reference2
  11. Reference
  12. Reference
  13. Reference
  14. Reference
  15. Reference
  16. Reference