Template:Marriage/doc

Usage
This template is intended for use in infoboxes; specifically Infobox person and templates calling Infobox person.

Marriage takes up to three unnamed parameters (name, start date, end date)&mdash;plus an optional named parameter end&mdash;to produce output such as the following:


 * John Smith (m. 1 January 1895-December 31, 1905)
 * John Doe (m. 1885-July 27, 1888)
 * Jane Doe (m. 2002)
 * John Q. Public (m. 2002-2010)
 * John Q. Citizen (m. 2002-2010)
 * John Q. Taxpayer (m. 2002)
 * Joe Blow
 * Joe Bloggs

The above were produced by:

Use of end will cause a line break between the name and the dates.

In an infobox
Infoboxes already reduce text size to 88%, and MOS:FONTSIZE sets a lower limit for text size at 85% of the normal page font size, so it is not appropriate to use font size reduction when this template is used in an infobox. The example here is produced by: 

TemplateData
{ "description": "insert description here", "params": { "1": {     "label": "Spouse's name", "description": "Name of the person to whom the subject is married.", "type": "string", "default": "", "required": true },   "2": {      "label": "Date married", "description": "Date the marriage began.", "type": "string", "default": "", "suggested": true },   "3": {      "label": "Date ended", "description": "Date the marriage was dissolved or the spouse of the article's subject died.", "type": "string", "default": "", "required": false },   "end": { "label": "Reason ended", "description": "Reason for marriage's end.", "type": "string", "default": "", "required": false, "aliases": [ "reason" ] } } }