Template:Marriage: Difference between revisions
Content deleted Content added
per edit request on talk page - expand deprecated-value checks for "his/her death" |
m 324 revisions imported from wikipedia:Template:Marriage |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1:
<templatestyles src="Template:Marriage/styles.css"/>
{{#if:{{{1|}}}||{{#if:{{{2|}}}{{{3|}}}{{{end|{{{reason|}}}}}}
|{{#ifeq:{{{1|+}}}|{{{1|-}}}|<div class="marriage-line-margin3px">​</div>|{{main other|[[Category:Marriage template
<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
-->{{#if:{{{end|{{{reason|}}}}}}|{{#if:{{{2|}}}{{{3|}}}|, }}}}}}
}}{{#if:{{{3|}}}
Line 38:
| d | d. | died = died <!-- this used to be {{abbr|d.|died}} but caused confusion with "divorced" -->
| div | div. | divorce | divorced = {{abbr|div.|divorced}}
| sep | sep. | separated = {{abbr|sep.|separated}} <!-- commonly used reason for end -->
| she d. | her d. | she died | her death = {{#ifeq:{{#property:P21}}|male|died |{{main other|[[Category:Marriage template deprecations]]}}{{dc|her death }}}}▼
| ann | ann. | annulled | annulment = {{abbr|ann.|annulled}} <!-- commonly used reason for end -->
| he d. | his d. | he died | his death = {{#ifeq:{{#property:P21}}|female|died |{{main other|[[Category:Marriage template deprecations]]}}{{dc|his death }}}}▼
▲ | she d. | her d. | she died | her death = {{#ifeq:{{#property:P21}}|male|died |{{main other|[[Category:Marriage template
▲ | he d. | his d. | he died | his death = {{#ifeq:{{#property:P21}}|female|died |{{main other|[[Category:Marriage template
| w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}{{error-small|invalid reason}}
| = <!--(reason marriage ended not supplied)-->
Line 50 ⟶ 52:
|{{#if:{{{end|{{{reason|}}}}}}
|{{YEAR|{{{3|}}}}}
|{{main other|[[Category:Marriage template
|{{YEAR|{{{3|}}}}}
}}
|{{main other|[[Category:Marriage template
}}}}
|{{#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
}}}}
}}
Line 67 ⟶ 69:
|{{#if:{{{end|{{{reason|}}}}}}
|{{YEAR|{{{3|}}}}}
|{{main other|[[Category:Marriage template
|{{YEAR|{{{3|}}}}}
}}
|{{main other|[[Category:Marriage template
}}}}
|{{#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
}}}}
}}}}|2={{{3|}}}}}
Line 83 ⟶ 85:
| d | d. | died = died
| div | div. | divorce | divorced = divorced
| sep | sep. | separated = separated
| she d. | her d. | she died | her death = {{#ifeq:{{#property:P21}}|male|died|{{main other|[[Category:Marriage template deprecations]]}}{{dc|her death}}}}▼
| ann | ann. | annulled | annulment = annulled
|
▲ |
| w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}{{error-small|invalid reason }}
| = <!--(reason marriage ended not supplied)-->
| #default = {{{end|{{{reason|}}}}}}
}}
}})<wbr />​</div><!--
-->
{{documentation}}
</noinclude>
|