الگو:Marriage

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به ناوبری پرش به جستجو
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

This template specifies in a structured form the particulars of a ازدواج: 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 هم‌کنش‌پذیری 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 ازدواج, then this template is applicable.

Usage:

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.

Parameters[ویرایش]

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. سامانه ژئودتیک جهانی ۱۹۸۴ 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: جوزف نیدهام, 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 (ازدواج ۱۹۹۲)

Example demonstrating multiple options:

{{marriage|Michelle Obama|October 3, 1992|show=[[میشل اوباما]] <small>(m. 1992)</small>|spouse2=Barack Obama
|street-address1=Trinity United Church of Christ|street-address2=400 W. 95th Street|city=Chicago
|lat=41.7219|lon=-87.6342}}

produces میشل اوباما (m. 1992)