https://grlucas.net/index.php?title=Template:Marriage/doc&feed=atom&action=historyTemplate:Marriage/doc - Revision history2024-03-29T14:25:43ZRevision history for this page on the wikiMediaWiki 1.39.0https://grlucas.net/index.php?title=Template:Marriage/doc&diff=7251&oldid=prevGrlucas: 1 revision imported2020-02-08T15:39:31Z<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:39, 8 February 2020</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Grlucashttps://grlucas.net/index.php?title=Template:Marriage/doc&diff=7235&oldid=prevGrlucas: Created page with "{{Documentation subpage}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{high-use| 32957 }} ==..."2020-02-08T15:37:05Z<p>Created page with "{{Documentation subpage}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see <a href="https://en.wikipedia.org/wiki/Wikidata" class="extiw" title="wikipedia:Wikidata">Wikipedia:Wikidata</a>) --> {{high-use| 32957 }} ==..."</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:37, 8 February 2020</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Grlucashttps://grlucas.net/index.php?title=Template:Marriage/doc&diff=7250&oldid=preven>Anomalocaris: {{xt}} can't wrap {{marriage}} because it causes div-span-flip, and it's not needed anyway, so get rid of it.2019-12-26T18:40:32Z<p>{{xt}} can't wrap {{marriage}} because it causes div-span-flip, and it's not needed anyway, so get rid of it.</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --><br />
{{high-use| 32957 }}<br />
<br />
==Usage==<br />
This template is intended for use in infoboxes; specifically {{tl|Infobox person}} and [[:Category:Templates calling Infobox person|templates calling Infobox person]].<br />
<br />
{{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:<br />
<br />
: {{marriage |John Smith |1 January 1895 |December 31, 1905}}<br />
: {{marriage |John Doe |1885 |July 27, 1888 |end=d.}}<br />
: {{marriage |Jane Doe |2002}}<br />
: {{marriage |John Q. Public |2002|2010}}<br />
: {{marriage |John Q. Citizen |2002|2010|end=div}}<br />
: {{marriage |John Q. Taxpayer |2002|end=div}}<br />
: {{marriage |Joe Blow| |2010|end=div}}<br />
: {{marriage |Joe the Plumber| |2010}}<br />
<br />
The above were produced by:<br />
: <code><nowiki>{{marriage |John Smith |1 January 1895 |December 31, 1905}}</nowiki></code><br />
: <code><nowiki>{{marriage |John Doe |1885 |July 27, 1888 |end=d.}}</nowiki></code><br />
: <code><nowiki>{{marriage |Jane Doe |2002}}</nowiki></code><br />
: <code><nowiki>{{marriage |John Q. Public |2002|2010}}</nowiki></code><br />
: <code><nowiki>{{marriage |John Q. Citizen |2002|2010|end=div}}</nowiki></code><br />
: <code><nowiki>{{marriage |John Q. Taxpayer |2002|end=div}}</nowiki></code><br />
: <code><nowiki>{{marriage |Joe Blow| |2010|end=div}}</nowiki></code><br />
: <code><nowiki>{{marriage |Joe the Plumber| |2010}}</nowiki></code><br />
<br />
Use of {{para|end}} will cause a line break between the name and the dates. <br />
<br />
=== In an infobox ===<br />
{{Infobox person|name={{tl|Infobox person}} |spouse = {{Plainlist|<br />
* {{marriage |John Smith |1 January 1895 |December 31, 1905}}<br />
* {{marriage |John Doe |1885 |July 27, 1888 |end=d.}}<br />
* {{marriage |Jane Doe |2002}}<br />
* {{marriage |John Q. Public |2002|2010}}<br />
* {{marriage |John Q. Citizen |2002|2010|end=div}}<br />
* {{marriage |John Q. Taxpayer |2002|end=div}}<br />
* {{marriage |Joe Blow| |2010|end=div}}<br />
* {{marriage |Joe the Plumber| |2010}}}}<br />
}}<br />
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:<br />
<pre style="line-height:1.2em;"><br />
{{Infobox person |spouse = {{Plainlist|<br />
* {{marriage |John Smith |1 January 1895 |December 31, 1905}}<br />
* {{marriage |John Doe |1885 |July 27, 1888 |end=d.}}<br />
* {{marriage |Jane Doe |2002}}<br />
* {{marriage |John Q. Public |2002|2010}}<br />
* {{marriage |John Q. Citizen |2002|2010|end=div}}<br />
* {{marriage |John Q. Taxpayer |2002|end=div}}<br />
* {{marriage |Joe Blow| |2010|end=div}}<br />
* {{marriage |Joe the Plumber| |2010}}}}<br />
}}<br />
</pre><br />
<br />
==Syntax and parameters==<br />
<code>{{((}}marriage&thinsp;{{!}}{{thin space|<{{var|text}}>}}{{!}}{{thin space|<{{var|start date}}>}}{{!}}{{thin space|<{{var|end date}}>}}[{{!}}{{thin space|end{{=}}}}]{{))}}</code><br />
<br />
{{Aligned table |class=wikitable |style=line-height:1.35em;<br />
| col1style=vertical-align:middle;text-align:center;padding-right:1.0em; |col2style=vertical-align:middle;padding-right:0.5em;<br />
| row1style=background:whitesmoke;vertical-align:middle;text-align:center;font-weight:bold;<br />
| Parameter | Description<br />
<br />
| <{{var|text}}><br />
| Some text&mdash;usually a spouse's name&mdash;preceding the parenthesis carrying the marriage date/s, etc.<br />
<br />
| {{plainlist|<br />
*<{{var|start date}}><br />
*<{{var|end date}}><br />
}}<br />
| Only the year within each of these will be displayed. If either has more information (e.g., month, day), it is given via a tooltip; i.e., {{tla|Hover title}}. (See first and third examples above.)<br />
<br />
| end<br />
| Reason for marriage's end.<br />
<br />
<code>d</code>, <code>d.</code>, or <code>died</code> includes {{xt|died}} within the parentheses if the marriage ended on the death of the spouse.<br />
<br />
<code>div</code>, <code>div.</code>, or <code>divorced</code> includes {{abbr|{{xt|div.}}|divorced}} or {{xt|divorced}} within the parentheses.<br />
<br />
Otherwise, {{para|end|<var>item</var>}} includes customised text. For example:<br />
: <code><nowiki>{{marriage |Miss Doe |January 1, 1882 |December 31, 1905 |end=annulled}}</nowiki></code> which produces:<br />
::{{marriage |Miss Doe |January 1, 1882 |December 31, 1905 |end=annulled}}<br />
<br />
Use of the values <code>w</code>, <code>w.</code>, <code>wid</code>, <code>wid.</code>, <code>widow</code>, or <code>widowed</code> is [[Template talk:Marriage/Archive 4#Who is widowed - topic or topic's spouse?|deprecated]]. See [[:Category:Marriage template errors]].<br />
}}<br />
<br />
== TemplateData ==<br />
{{TemplateData header}}<br />
<templatedata>{<br />
"description": "insert description here",<br />
"params": {<br />
"1": {<br />
"label": "Spouse's name",<br />
"description": "Name of the person to whom the subject is married.",<br />
"type": "string",<br />
"default": "",<br />
"required": true<br />
},<br />
"2": {<br />
"label": "Date married",<br />
"description": "Date the marriage began.",<br />
"type": "string",<br />
"default": "",<br />
"suggested": true<br />
},<br />
"3": {<br />
"label": "Date ended",<br />
"description": "Date the marriage was dissolved or the spouse of the article's subject died.",<br />
"type": "string",<br />
"default": "",<br />
"required": false<br />
},<br />
"end": {<br />
"label": "Reason ended",<br />
"description": "Reason for marriage's end.",<br />
"type": "string",<br />
"default": "",<br />
"required": false,<br />
"aliases": [ "reason" ]<br />
}<br />
}<br />
}</templatedata><br />
<br />
<includeonly>{{sandbox other||<br />
<!-- Categories below this line, please; interwikis at Wikidata --><br />
[[Category:Text-specific formatting and function templates]]<br />
[[Category:Marriage|τ]]<br />
}}</includeonly></div>en>Anomalocaris