మూస:Marriage/doc: కూర్పుల మధ్య తేడాలు

చి en:మూస:Marriage/doc నుండి ఒక కూర్పు: తెలుగులో వాడటానికి
పంక్తి 1:
{{Documentation subpage}}
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. 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.
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{high-use| 32957 }}
{{Uses Wikidata|P21|P570}}
 
==Usage: ==
This template is intended for use in infoboxes; specifically {{tl|Infobox person}} and [[:Category:Templates calling Infobox person|templates calling Infobox person]].
 
{{tl|Marriage}} takes up to three unnamed parameters (name, start date, end date)&mdash;plus an optional named parameter {{para|end}}&mdash;to produce output such as the following:
The template {{tlx|marriage}} would typically be in an infobox, such as in {{tlx|Infobox person}}'s spouse field. However, it may be used anywhere in an article.
 
{{block indent|{{xtn| {{aligned table|style=line-height:1.5|col1style=padding-right:2em;
===Parameters===
| 1= {{plainlist |
* {{marriage |John Smith |1 January 1895 |December 31, 1905}}
* {{marriage |John Doe |1885 |July 27, 1888 |end=d.}}
* {{marriage |Jane Doe |2002}}
* {{marriage |John Q. Public |2002|2010}}
* {{marriage |John Q. Citizen |2002|2010|end=div}}
* {{marriage |<!--John Q. Citizen-->|2012}}}}
| 2= {{plainlist |
* {{marriage |John Q. Taxpayer |2002|end=div}}
* {{marriage |Joe Blow|<!--unknown-->|2010|end=div}}
* {{marriage |Joe Bloggs|<!--unknown-->|2010}}
* {{marriage |Joe Sixpack|<!--unknown-->|2010|end=<!--unknown-->}}
* {{marriage |Joe Schmo |end=div}}
* {{marriage |Juan Perez |2010|<!--uncertain-->}}}} }}
}}}}
 
The above were produced by:
{| class="wikitable"
: <syntaxhighlight inline=1 lang="html">{{marriage |John Smith |1 January 1895 |December 31, 1905}}</syntaxhighlight>
! colspan="3" style="text-align:left;" | Parameter !! Default
: <syntaxhighlight inline=1 lang="html">{{marriage |John Doe |1885 |July 27, 1888 |end=d.}}</syntaxhighlight>
|-
: <syntaxhighlight inline=1 lang="html">{{marriage |Jane Doe |2002}}</syntaxhighlight>
| width="60" style="vertical-align:top;" | Optional ||width="100" style="vertical-align:top;" align="center" | ''show'' || If present this text is displayed in place of anything else.|| align="center" style="vertical-align:top;"| &ndash;
: <syntaxhighlight inline=1 lang="html">{{marriage |John Q. Public |2002|2010}}</syntaxhighlight>
|-
: <syntaxhighlight inline=1 lang="html">{{marriage |John Q. Citizen |2002|2010|end=div}}</syntaxhighlight>
| Required || width="100" align="center" | 1 || Name of the person to whom the subject is married. Alias parameter: "spouse". || align="center" style="vertical-align:top;"| &ndash;
: <syntaxhighlight inline=1 lang="html">{{marriage |<!--John Q. Citizen-->|2012}}</syntaxhighlight>
|-
: <syntaxhighlight inline=1 lang="html">{{marriage |John Q. Taxpayer |2002|end=div}}</syntaxhighlight>
| Required || width="100" align="center" | 2 || Date the marriage began. Alias parameter: "date". || align="center" style="vertical-align:top;"| &ndash;
: <syntaxhighlight inline=1 lang="html">{{marriage |Joe Blow|<!--unknown-->|2010|end=div}}</syntaxhighlight>
|-
: <syntaxhighlight inline=1 lang="html">{{marriage |Joe Bloggs|<!--unknown-->|2010}}</syntaxhighlight>
| Optional || width="100" align="center" | 3 || Date the marriage was dissolved or one of the spouses died. Alias parameter: "end". || align="center" style="vertical-align:top;"| –
: <syntaxhighlight inline=1 lang="html">{{marriage |Joe Sixpack|<!--unknown-->|2010|end=<!--unknown-->}}</syntaxhighlight>
|-
: <syntaxhighlight inline=1 lang="html">{{marriage |Joe Schmo |end=div}}</syntaxhighlight>
| Optional || width="100" align="center" | ''reason'' || Reason for the end of marriage. Should be one of "divorced" or "widowed". || align="center" style="vertical-align:top;"| –<!-- QUESTIONABLE PARAMETERS
: <syntaxhighlight inline=1 lang="html">{{marriage |Juan Perez |2010|<!--uncertain-->}}</syntaxhighlight>
|-
| Optional ||width="100" align="center"| ''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. || align="center" style="vertical-align:top;"| article name
|-
| colspan=4 align="center" | '''Location of the ceremony''' (optional; a wide variety of location information may be specified in any combination).
|-
| style="vertical-align:top;" | Optional || style="vertical-align:top;" align="center" | ''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.) ||align="center" style="vertical-align:top;"| &ndash;
|-
| style="vertical-align:top;" | Optional ||style="vertical-align:top;" align="center" | ''street-address1'' || First street address line. (3 lines supported, named street-address2... and so on.) ||align="center" style="vertical-align:top;"| &ndash;
|-
| style="vertical-align:top;" | Optional ||style="vertical-align:top;";" align="center"| ''city'' ''town'' || (Aliases) Same as locality. ||align="center" style="vertical-align:top;"| &ndash;
|-
| style="vertical-align:top;" | Optional ||align="center" style="vertical-align:top;"| ''region'' || State, province, department, oblast, or other subnational governmental unit. ||align="center" style="vertical-align:top;"| &ndash;
|-
| style="vertical-align:top;" | Optional ||style="vertical-align:top;"" align="center"| ''state'' || (Alias) Same as region. ||align="center" style="vertical-align:top;"| &ndash;
|-
| style="vertical-align:top;" | Optional ||style="vertical-align:top;"" align="center"| ''province'' || (Alias) Same as region. ||align="center" style="vertical-align:top;"| &ndash;
|-
| style="vertical-align:top;" | Optional ||align="center" style="vertical-align:top;"| ''country-name'' || Country. ||align="center" style="vertical-align:top;"| &ndash;
|-
| Optional ||width="100" align="center"| ''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".) ||align="center" style="vertical-align:top;"| &ndash;
|-
| Optional ||width="100" align="center"| ''lat'' || Latitude. Numeric decimal value only, no compass directions. [[World Geodetic System]] values. Used for the purpose of exporting [[Geo (microformat)|geo]] values as part of the [[hCard]]. Users that don't understand why they would want to do that should use {{tl|coord}} instead. ||align="center" style="vertical-align:top;"| &ndash;
|-
| Optional ||width="100" align="center"| ''lon'' || Longitude. Numeric decimal value only, no compass directions. ||align="center" style="vertical-align:top;"| &ndash; END OF QUESTIONABLE PARAMETERS -->
|}
 
Use of {{para|end}} will cause a line break between the name and the start date.
==Example usage==
The typical use of {{tlx|marriage}} is to specify a spouse in an article. See: [[Joseph Needham]], spouse parameter:
 
===In an infobox===
;<code><nowiki>{{marriage|Lu Gwei-Djen|1989|1991}}</nowiki></code>
{{Infobox person|name={{tl|Infobox person}} |spouse = {{Plainlist|
:{{marriage|Lu Gwei-Djen|1989|1991}}
* {{marriage |John Smith |1 January 1895 |December 31, 1905}}
* {{marriage |John Doe |1885 |July 27, 1888 |end=d.}}
* {{marriage |Jane Doe |2002}}
* {{marriage |John Q. Public |2002|2010}}
* {{marriage |John Q. Citizen |2002|2010|end=div}}
* {{marriage |<!--John Q. Citizen-->|2012}}
* {{marriage |John Q. Taxpayer |2002|end=div}}
* {{marriage |Joe Blow|<!--unknown-->|2010|end=div}}
* {{marriage |Joe Bloggs|<!--unknown-->|2010}}
* {{marriage |Joe Sixpack|<!--unknown-->|2010|end=<!--unknown-->}}
* {{marriage |Joe Schmo |end=div}}
* {{marriage |Juan Perez |2010|<!--uncertain-->}} }}
}}
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="html">
{{Infobox person |spouse = {{Plainlist|
* {{marriage |John Smith |1 January 1895 |December 31, 1905}}
* {{marriage |John Doe |1885 |July 27, 1888 |end=d.}}
* {{marriage |Jane Doe |2002}}
* {{marriage |John Q. Public |2002|2010}}
* {{marriage |John Q. Citizen |2002|2010|end=div}}
* {{marriage |<!--John Q. Citizen-->|2012}}
* {{marriage |John Q. Taxpayer |2002|end=div}}
* {{marriage |Joe Blow|<!--unknown-->|2010|end=div}}
* {{marriage |Joe Bloggs|<!--unknown-->|2010}}
* {{marriage |Joe Sixpack|<!--unknown-->|2010|end=<!--unknown-->}}
* {{marriage |Joe Schmo |end=div}}
* {{marriage |Juan Perez |2010|<!--uncertain-->}} }}
}}
</syntaxhighlight>
 
==Syntax and parameters==
'''Full dates are supported in any format with standard output as years only'''
<code>{{((}}marriage&thinsp;{{!}}{{thin space|<{{var|text}}>}}{{!}}{{thin space|<{{var|start date}}>}}{{!}}{{thin space|<{{var|end date}}>}}[{{!}}{{thin space|end{{=}}}}]{{))}}</code>
 
{{Aligned table |class=wikitable |style=line-height:1.35em;
;<code><nowiki>{{marriage|Michelle Obama|October 3, 1992}}</nowiki></code>
| col1style=vertical-align:middle;text-align:center;padding-right:1.0em; |col2style=vertical-align:middle;padding-right:0.5em;
:{{marriage|Michelle Obama|October 3, 1992}}
| row1style=background:whitesmoke;vertical-align:middle;text-align:center;font-weight:bold;
| Parameter | Description
 
| <{{var|text}}>
Example demonstrating multiple options:
| (First unnamed parameter) Some text&mdash;usually a spouse's name&mdash;preceding the parenthesis carrying the marriage date/s, etc. This parameter may be omitted, typically for a remarriage to the same spouse.
<pre style="overflow:scroll;">{{marriage|Michelle Obama|October 3, 1992|show=[[Michelle Obama]] <small>(m. 1992)</small>}}</pre><!-- QUESTIONABLE PARAMETERS|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 {{marriage|Michelle Obama|October 3, 1992|show=[[Michelle Obama]] <small>(m. 1992)</small><!-- QUESTIONABLE PARAMETERS|spouse2=Barack Obama|street-address1=Trinity United Church of Christ|street-address2=400 W. 95th Street|city=Chicago|lat=41.7219|lon=-87.6342-->}}
 
| <{{var|start date}}>
<includeonly>
| (Second unnamed parameter) Year or full date when the marriage began. Only the year will be displayed. If a full date is provided, it is given via a tooltip; i.e., {{tla|Hover title}}. ([[#In an infobox|See first and second examples above.]])
 
| <{{var|end date}}>
<!-- Categories -->
| (Third unnamed parameter) Year or full date when the marriage ended. Only the year will be displayed. If a full date is provided, it is given via a tooltip; i.e., {{tla|Hover title}}. ([[#In an infobox|See first and second examples above.]]) If the marriage ended because of the death of the article's subject, {{insource|"Omission per Template:Marriage instructions"|do {{em|not}} provide a date}}.
 
| {{para|end}} or {{para|reason}}
{{DEFAULTSORT:{{PAGENAME}}}}
| Reason for marriage's end. If the marriage ended because of the death of the article's subject, {{insource|"Omission per Template:Marriage instructions"|do {{em|not}} provide a reason}}; use of <i>{{dc|his death}}</i> or <i>{{dc|her death}}</i> for this purpose has been deprecated ([[Template talk:Marriage/Archive 5#Use "(m. 1900)" and do not fill in an end date|see discussion]]).
 
* {{bxtn|d}}, {{bxtn|d.}}, or {{bxtn|died}} includes {{xtn|died}} within the parentheses if the marriage ended on the spouse's death.
<!--- Interwiki --->
* {{bxtn|div}}, {{bxtn|div.}}, or {{bxtn|divorced}} includes {{abbr|{{xtn|div.}}|divorced}} or {{xtn|divorced}} within the parentheses.
* Otherwise, {{para|end|<var>value</var>}} includes customized text. For example:
: {{code|<nowiki>{{marriage |Miss Doe |January 1, 1882 |December 31, 1905 |end=annulled}}</nowiki>}} which produces:
{{block indent |style=margin-bottom:0.6em;
| {{marriage |Miss Doe |January 1, 1882 |December 31, 1905 |end=annulled}} }}
 
{{qnote|Use of the values {{dcr|w}}, {{dcr|w.}}, {{dcr|wid}}, {{dcr|wid.}}, {{dcr|widow}}, or {{dcr|widowed}} is [[Template talk:Marriage/Archive 4#Who is widowed - topic or topic's spouse?|no longer supported]] and will display an error message.}}
[[zh:Template:Marriage]]
}}
 
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.
</includeonly>
 
==Tracking categories==
*{{clc|Marriage template errors}}: invalid or missing dates; unsupported parameters or values
 
== TemplateData ==
{{TemplateData header}}
<templatedata>{
"params": {
"1": {
"label": "Spouse's name",
"description": "Name of the person to whom the subject is married.",
"type": "string",
"default": "",
"suggested": 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" ]
}
}
}</templatedata>
 
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Text-specific formatting and function templates‎]]
[[Category:Marriage templates]]
}}</includeonly>
"https://te.wikipedia.org/wiki/మూస:Marriage/doc" నుండి వెలికితీశారు