De TI-Planet Wiki
Révision datée du 3 septembre 2012 à 14:54 par Adriweb (discussion | contributions) (1 version)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche
[edit] [history] [purge] Documentation icon Template documentation

This template specifies in a structured form the particulars of a marriage: the names of the spouses, the period of the marriage, and the location of the ceremony where the two were joined. This adds the ability to interoperate with net applications that understand relationships between people and time and place information. For instance, seeing a 1000 foot view of a location of a wedding described in Wikipedia article is a single click away. This is possible with Google / MapQuest / Yahoo! used directly from Wikipedia articles when viewed with a microformats aware browser. Unlike {{coord}}, no intermediate jumps are necessary, and simple text descriptions may be used to describe the location. This is not limited to map applications and it is currently thought that this functionality will be standard in browsers in the 2010 time frame. For step by step information on how to enable this functionality, see instructions here. If the individuals specified in the template consider themselves to be in a marriage as defined in the article Marriage, then this template is applicable.


The template {{marriage}} would typically be in an infobox, such as in {{Infobox person}}'s spouse field. However, it may be used anywhere in an article.


Parameter Default
Optional show If present this text is displayed in place of anything else.
Required 1 Name of the person to whom the subject is married. Alias parameter: "spouse".
Required 2 Date the marriage began. Alias parameter: "date".
Optional 3 Date the marriage was dissolved or one of the spouses died. Alias parameter: "end".
Optional reason Reason for the end of marriage. Should be one of "divorced" or "widowed".
Optional spouse2 Name of the second person that appears in the Marriage description. If omitted, the name of the article is assumed to refer to this person. article name
Location of the ceremony (optional; a wide variety of location information may be specified in any combination).
Optional locality1 Catch-all specifier for any location. Examples: a building, facility, square, county, mountain, valley. Any geographical area or locality in which the named item is physically located or with which it is associated in some other important way. (Also supports locality2 & locality3.)
Optional street-address1 First street address line. (3 lines supported, named street-address2... and so on.)
Optional city town (Aliases) Same as locality.
Optional region State, province, department, oblast, or other subnational governmental unit.
Optional state (Alias) Same as region.
Optional province (Alias) Same as region.
Optional country-name Country.
Optional uncertain If set to "y", the location is to be interpreted as "in the vicinity of", rather than to be regarded as a precise point. (Class assigned: "label".)
Optional lat Latitude. Numeric decimal value only, no compass directions. World Geodetic System values. Used for the purpose of exporting geo values as part of the hCard. Users that don't understand why they would want to do that should use {{coord}} instead.
Optional lon Longitude. Numeric decimal value only, no compass directions.

Example usage

The typical use of {{marriage}} is to specify a spouse in an article. See: Joseph Needham, spouse parameter:

{{marriage|Lu Gwei-Djen|1989|1991}}
Full dates are supported in any format with standard output as years only
{{marriage|Michelle Obama|October 3, 1992}} produces

Michelle Obama (m. 1992) «start: (1992-10-03)»"Marriage: Michelle Obama to Marriage" Location: (linkback:

Example demonstrating multiple options:

{{marriage|Michelle Obama|October 3, 1992|show=[[Michelle Obama]] <small>(m. 1992)</small>|spouse2=Barack Obama
|street-address1=Trinity United Church of Christ|street-address2=400 W. 95th Street|city=Chicago

produces Michelle Obama (m. 1992) «start: (1992-10-03)»"Marriage: Michelle Obama to Barack Obama" Location:Trinity United Church of Christ, 400 W. 95th Street, Chicago41°43′19″N 87°38′03″W / 41.7219°N 87.6342°W / 41.7219; -87.6342 (October 3, 1992: Marriage: Michelle Obama to Barack Obama) (linkback: