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:


 * Jane Doe (m. 1 January 1895-December 31, 1905)
 * Fred Smith (m. 2010)
 * Jane Smith (m. 1885-July 27, 1888)
 * Frank Lee (m. 2002-2013)

The above were produced by:

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": "", "required": false },   "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" ] } } }