Template:Marriage: Difference between revisions

Content deleted Content added
per edit request on talk page - remove the redundant invoking of "Check for unknown parameters"
per edit request on talk page - update tracking
Line 1:
<templatestyles src="Template:Marriage/styles.css"/>
{{#if:{{{1|}}}||{{#if:{{{2|}}}{{{3|}}}{{{end|{{{reason|}}}}}}
|{{#ifeq:{{{1|+}}}|{{{1|-}}}|<div class="marriage-line-margin3px">&#8203;</div>|{{main other|[[Category:Marriage template anomalieserrors|NZ{{PAGENAME}}]]}}}}}}}}
<div class="marriage-display-ws">{{#if:{{{1|}}}
|{{trim|{{#if:{{{end|{{{reason|}}}}}}
Line 26:
}}
|{{#if:{{{3|}}}{{{end|{{{reason|}}}}}}||{{#if:{{#property:P570}}||{{main other|[[Category:Marriage template errors|N{{PAGENAME}}]]}}}}<!--
-->{{#if:{{{end|{{{reason|}}}}}}||{{#if:{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=y}} | {{main other|[[Category:Marriage template anomalieserrors|B{{PAGENAME}}]]}}before&nbsp;{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=y}} |{{error-small|date missing}}}}}}<!--
-->{{#if:{{{end|{{{reason|}}}}}}|{{#if:{{{2|}}}{{{3|}}}|&#44;&#32;}}}}}}
}}{{#if:{{{3|}}}
Line 38:
| d | d. | died = died&nbsp;<!-- this used to be {{abbr|d.|died}} but caused confusion with "divorced" -->
| div | div. | divorce | divorced = {{abbr|div.|divorced}}&nbsp;
| she d. | her d. | she died | her death = {{#ifeq:{{#property:P21}}|male|died&nbsp;|{{main other|[[Category:Marriage template deprecationserrors|X{{PAGENAME}}]]}}{{dcerror-small|her"{{lc:{{{end|{{{reason|}}}}}}}}" death&nbspis deprecated; use "died" instead.}}&nbsp;}}
| he d. | his d. | he died | his death = {{#ifeq:{{#property:P21}}|female|died&nbsp;|{{main other|[[Category:Marriage template deprecationserrors|X{{PAGENAME}}]]}}{{dcerror-small|his"{{lc:{{{end|{{{reason|}}}}}}}}" death&nbspis deprecated; use "died" instead.}}&nbsp;}}
| w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}{{error-small|invalid reason}}&nbsp;
| = <!--(reason marriage ended not supplied)-->
Line 50:
|{{#if:{{{end|{{{reason|}}}}}}
|{{YEAR|{{{3|}}}}}
|{{main other|[[Category:Marriage template anomalieserrors|D{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalieserrors|{{First word|{{PAGENAMEBASE}}|sep=,}}'s date of death}}</var>|{{YEAR|{{{3|}}}}} }}}}
|{{YEAR|{{{3|}}}}}
}}
|{{main other|[[Category:Marriage template anomalieserrors|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalieserrors|{{#ifexpr:{{#time:Ymd}} >= {{#time:Ymd|{{{3|}}}}}|posthumous|future}} date}}</var>|{{YEAR|{{{3|}}}}}
}}}}
|{{#ifexpr:{{#iferror:{{YEAR|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=y}} }}|{{#time:Y}} }} >= {{YEAR|{{{3|}}}}}
|{{YEAR|{{{3|}}}}}
|{{main other|[[Category:Marriage template anomalieserrors|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalieserrors|{{#ifexpr:{{#time:Y}} >= {{{3|}}}|posthumous|future}} year}}</var>|{{YEAR|{{{3|}}}}}
}}}}
}}
Line 67:
|{{#if:{{{end|{{{reason|}}}}}}
|{{YEAR|{{{3|}}}}}
|{{main other|[[Category:Marriage template anomalieserrors|D{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalieserrors|{{First word|{{PAGENAMEBASE}}|sep=,}}'s date of death}}</var>|{{YEAR|{{{3|}}}}} }}}}
|{{YEAR|{{{3|}}}}}
}}
|{{main other|[[Category:Marriage template anomalieserrors|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalieserrors|{{#ifexpr:{{#time:Ymd}} >= {{#time:Ymd|{{{3|}}}}}|posthumous|future}} date}}</var>|{{YEAR|{{{3|}}}}}
}}}}
|{{#ifexpr:{{#iferror:{{YEAR|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=y}} }}|{{#time:Y}} }} >= {{YEAR|{{{3|}}}}}
|{{YEAR|{{{3|}}}}}
|{{main other|[[Category:Marriage template anomalieserrors|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalieserrors|{{#ifexpr:{{#time:Y}} >= {{{3|}}}|posthumous|future}} year}}</var>|{{YEAR|{{{3|}}}}}
}}}}
}}}}|2={{{3|}}}}}
Line 83:
| d | d. | died = died
| div | div. | divorce | divorced = divorced
| she d. | her d. | she died | her death = {{#ifeq:{{#property:P21}}|male|died|{{main other|[[Category:Marriage template deprecationserrors|X{{PAGENAME}}]]}}{{dcerror-small|her"{{lc:{{{end|{{{reason|}}}}}}}}" is deprecated; use "died" deathinstead}}}}
| he d. | his d. | he died | his death = {{#ifeq:{{#property:P21}}|female|died|{{main other|[[Category:Marriage template deprecationserrors|X{{PAGENAME}}]]}}{{dcerror-small|his"{{lc:{{{end|{{{reason|}}}}}}}}" is deprecated; use "died" deathinstead}}}}
| w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}{{error-small|invalid reason&nbsp}}
| = <!--(reason marriage ended not supplied)-->
| #default = {{{end|{{{reason|}}}}}}