Template:Marriage: Difference between revisions
Jump to navigation
Jump to search
>Neveselbert m ws cr. |
>Neveselbert Tracking his/her death input via Wikidata |
||
Line 7: | Line 7: | ||
|<div style="line-height:0;margin-bottom:-2px;">​</div> | |<div style="line-height:0;margin-bottom:-2px;">​</div> | ||
|{{str ≥ len|1={{{1}}}|2=30|3=<div style="line-height:0;margin-bottom:-2px;">​</div>}} | |{{str ≥ len|1={{{1}}}|2=30|3=<div style="line-height:0;margin-bottom:-2px;">​</div>}} | ||
}}}} | |||
|<div style="display:inline-block;line-height:normal;{{#if:{{in string|source={{{1}}}|target=<br|plain=true|nomatch=}}|margin-top:1px;white-space:normal;|{{str ≥ len|1={{{1}}}|2=30|3=margin-top:1px;white-space:normal;}}}}">{{{1|}}}</div> | |<div style="display:inline-block;line-height:normal;{{#if:{{in string|source={{{1}}}|target=<br|plain=true|nomatch=}}|margin-top:1px;white-space:normal;|{{str ≥ len|1={{{1}}}|2=30|3=margin-top:1px;white-space:normal;}}}}">{{{1|}}}</div> | ||
{{#if:{{in string|source={{{1}}}|target=<br|plain=true|nomatch=}} | {{#if:{{in string|source={{{1}}}|target=<br|plain=true|nomatch=}} | ||
|<div style="line-height:0;margin-bottom:-2px;">​</div> | |<div style="line-height:0;margin-bottom:-2px;">​</div> | ||
|{{str ≥ len|1={{{1}}}|2=30|3=<div style="line-height:0;margin-bottom:-2px;">​</div>}}}} | |{{str ≥ len|1={{{1}}}|2=30|3=<div style="line-height:0;margin-bottom:-2px;">​</div>}}}} | ||
}}}}}} <div style="display:inline-block;{{#if:{{in string|source={{{1}}}|target=<br|plain=true|nomatch=}}|margin-bottom:1px;|{{str ≥ len|1={{{1}}}|2=30|3=margin-bottom:1px;|4={{#if:{{{end|{{{reason|}}}}}}|{{#if:{{{2|}}}|margin-bottom:1px;}}}}}}}}">(</div>{{#if:{{{2|}}} | |||
|{{abbr|m.|married}} {{#ifeq:{{{2|}}}|{{get year|{{{2|}}}}} | |{{abbr|m.|married}} {{#ifeq:{{{3|+}}}|{{{3|-}}} | ||
|{{#switch:{{{3|}}} | = after }}}}{{#ifeq:{{{2|}}}|{{get year|{{{2|}}}}} | |||
|{{{2|}}} | |{{{2|}}} | ||
|{{hover title|dotted=no|2={{#iferror: {{get year|{{{2|}}}}} | {{main other|[[Category:Marriage template errors|I{{PAGENAME}}]]}}<span style="color:red;">invalid year</span>|{{get year|{{{2|}}}}}}}|1={{{2|{{#time:F j, Y}}}}}}} | |{{hover title|dotted=no|2={{#iferror: {{get year|{{{2|}}}}} | {{main other|[[Category:Marriage template errors|I{{PAGENAME}}]]}}<span style="color:red;">invalid year</span>|{{get year|{{{2|}}}}}}}|1={{{2|{{#time:F j, Y}}}}}}} | ||
Line 20: | Line 21: | ||
-->{{#if:{{{end|{{{reason|}}}}}}||<span style="color:red;">no value</span>}}<!-- | -->{{#if:{{{end|{{{reason|}}}}}}||<span style="color:red;">no value</span>}}<!-- | ||
-->{{#if:{{{end|{{{reason|}}}}}}|{{#if:{{{2|}}}{{{3|}}}|, }}}}}} | -->{{#if:{{{end|{{{reason|}}}}}}|{{#if:{{{2|}}}{{{3|}}}|, }}}}}} | ||
}}{{#if:{{{3|}}} | |||
|{{#ifeq:{{{end|{{{reason|}}}}}}| | |{{#ifeq:{{{end|{{{reason|}}}}}}| | ||
|{{#if:{{{2|}}}|⁠–⁠|{{abbr|m.|married}} {{#ifeq:{{{end|+}}}|{{{end|-}}} | |{{#if:{{{2|}}}|⁠–⁠|{{abbr|m.|married}} {{#ifeq:{{{end|+}}}|{{{end|-}}} | ||
Line 30: | Line 31: | ||
| d | d. | died = died <!-- this used to be {{abbr|d.|died}} but caused confusion with "divorced" --> | | d | d. | died = died <!-- this used to be {{abbr|d.|died}} but caused confusion with "divorced" --> | ||
| div | div. | divorce | divorced = {{abbr|div.|divorced}} | | div | div. | divorce | divorced = {{abbr|div.|divorced}} | ||
| her death = {{#ifeq:{{wikidata|property|P21}}|male|died |{{main other|[[Category:Marriage template errors|H{{PAGENAME}}]]}}{{dc|her death }}}} | |||
| his death = {{#ifeq:{{wikidata|property|P21}}|female|died |{{main other|[[Category:Marriage template errors|H{{PAGENAME}}]]}}{{dc|his death }}}} | |||
| w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}<span style="color:red;">invalid reason</span> | | w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}<span style="color:red;">invalid reason</span> | ||
| = <!--(reason marriage ended not supplied)--> | | = <!--(reason marriage ended not supplied)--> | ||
Line 43: | Line 46: | ||
| d | d. | died = died | | d | d. | died = died | ||
| div | div. | divorce | divorced = divorced | | div | div. | divorce | divorced = divorced | ||
| her death = {{#ifeq:{{wikidata|property|P21}}|male|died|{{main other|[[Category:Marriage template errors|H{{PAGENAME}}]]}}{{dc|her death}}}} | |||
| his death = {{#ifeq:{{wikidata|property|P21}}|female|died|{{main other|[[Category:Marriage template errors|H{{PAGENAME}}]]}}{{dc|his death}}}} | |||
| w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}<span style="color:red;">invalid reason</span> | | w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}<span style="color:red;">invalid reason</span> | ||
| = <!--(reason marriage ended not supplied)--> | | = <!--(reason marriage ended not supplied)--> | ||
| #default= <div style="display:inline;white-space:normal;"> | | #default= <div style="display:inline;white-space:normal;">{{{end|{{{reason|}}}}}}</div> | ||
}} | }} | ||
}})</div><!-- | }})</div><!-- | ||
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Marriage template errors|P{{PAGENAME}}]]}}|preview=Page using [[Template:Marriage]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | 4 | end | reason }}<noinclude>{{Documentation}}</noinclude> | -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Marriage template errors|P{{PAGENAME}}]]}}|preview=Page using [[Template:Marriage]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | 4 | end | reason }}<noinclude>{{Documentation}}</noinclude> |