• Home
  • Random
  • Log in
  • Settings
  • About Amateur Theatre Wiki
  • Disclaimers
Amateur Theatre Wiki

Template:Marriage

  • Language
  • Watch
  • View source
​
(Template:Error-small)​
Template documentation[view] [edit] [history] [purge]

Template:Esoteric

WarningThis template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Check for unknown parameters
  • Module:Parameter validation

Template:Uses Wikidata Template:Uses TemplateStyles

Contents

  • 1 Usage
    • 1.1 In an infobox
  • 2 Syntax and parameters
  • 3 Tracking categories
    • 3.1 Categories populated via template logic
    • 3.2 Categories populated via parameter validation
  • 4 TemplateData

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)—plus an optional named parameter |end= (|reason=)—to produce output such as the following:

Template:Markup

Use of the first two parameters with |end= (|reason=) will cause a line break between the name and the start date.

In an infobox

Template:Infobox person 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: <syntaxhighlight style="font-size:small;" lang="wikitext"> Template:Infobox person </syntaxhighlight>

Syntax and parameters

Template:((marriage |Template:Thin space|Template:Thin space|Template:Thin space[|Template:Thin space]Template:))

Template:Aligned table

None of the parameters are required on their own, but if a template is missing all three of start date, end date, and reason, an error message will be displayed.

Tracking categories

Categories populated via template logic

  • Category:Marriage template errors (0): invalid or missing dates; unsupported parameters or values
    • Category:Marriage template deprecations (0)
    • Category:Marriage template anomalies (0)

Categories populated via parameter validation

  • Category:Pages using Marriage with duplicate parameters (0)
  • Category:Pages using Marriage with unknown parameters (0)
  • Category:Pages using Marriage with deprecated parameters (0)

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Marriage

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Spouse's name1

Name of the person to whom the subject is married.

Stringsuggested
Date married2

Date the marriage began.

Datesuggested
Date ended3

Date the marriage was dissolved or the spouse of the article's subject died.

Dateoptional
Reason endedend reason

Reason for marriage's end. If the marriage ended because of the death of the article's subject, do not provide a reason.

Suggested values
died divorced
Stringoptional
The above documentation is transcluded from Template:Marriage/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://www.amateur-theatre-wiki.gwi.uni-muenchen.de/index.php?title=Template:Marriage&oldid=674"
Last edited on 4 July 2023, at 20:42

Languages

    This page is not available in other languages.

    Amateur Theatre Wiki
    • This page was last edited on 4 July 2023, at 20:42.
    • Content is available under Creative Commons Attribution unless otherwise noted.
    • Privacy policy
    • About Amateur Theatre Wiki
    • Disclaimers
    • ⧼Imprint⧽
    • Desktop