Template:Marriage: Difference between revisions

From IxWiki
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;">&#8203;</div>
     |<div style="line-height:0;margin-bottom:-2px;">&#8203;</div>
     |{{str ≥ len|1={{{1}}}|2=30|3=<div style="line-height:0;margin-bottom:-2px;">&#8203;</div>}}
     |{{str ≥ len|1={{{1}}}|2=30|3=<div style="line-height:0;margin-bottom:-2px;">&#8203;</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;">&#8203;</div>
     |<div style="line-height:0;margin-bottom:-2px;">&#8203;</div>
     |{{str ≥ len|1={{{1}}}|2=30|3=<div style="line-height:0;margin-bottom:-2px;">&#8203;</div>}}}}
     |{{str ≥ len|1={{{1}}}|2=30|3=<div style="line-height:0;margin-bottom:-2px;">&#8203;</div>}}}}
}}}}}}&#32;<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;}}}}}}}}">&#40;</div>{{#if:{{{2|}}}
  }}}}}}&#32;<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;}}}}}}}}">&#40;</div>{{#if:{{{2|}}}
   |{{abbr|m.|married}}&nbsp;{{#ifeq:{{{2|}}}|{{get year|{{{2|}}}}}
   |{{abbr|m.|married}}&nbsp;{{#ifeq:{{{3|+}}}|{{{3|-}}}
  |{{#switch:{{{3|}}} | = after&nbsp;}}}}{{#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|}}}|&#44;&#32;}}}}}}
-->{{#if:{{{end|{{{reason|}}}}}}|{{#if:{{{2|}}}{{{3|}}}|&#44;&#32;}}}}}}
}}{{#if:{{{3|}}}
  }}{{#if:{{{3|}}}
   |{{#ifeq:{{{end|{{{reason|}}}}}}|  
   |{{#ifeq:{{{end|{{{reason|}}}}}}|  
   |{{#if:{{{2|}}}|&#x2060;&#8211;&#x2060;|{{abbr|m.|married}}&nbsp;{{#ifeq:{{{end|+}}}|{{{end|-}}}
   |{{#if:{{{2|}}}|&#x2060;&#8211;&#x2060;|{{abbr|m.|married}}&nbsp;{{#ifeq:{{{end|+}}}|{{{end|-}}}
Line 30: Line 31:
     | d | d. | died = died&nbsp;<!-- this used to be {{abbr|d.|died}} but caused confusion with "divorced" -->
     | 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;
     | div | div. | divorce | divorced = {{abbr|div.|divorced}}&nbsp;
    | her death = {{#ifeq:{{wikidata|property|P21}}|male|died&nbsp;|{{main other|[[Category:Marriage template errors|H{{PAGENAME}}]]}}{{dc|her death&nbsp;}}}}
    | his death = {{#ifeq:{{wikidata|property|P21}}|female|died&nbsp;|{{main other|[[Category:Marriage template errors|H{{PAGENAME}}]]}}{{dc|his death&nbsp;}}}}
     | w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}<span style="color:red;">invalid reason</span>&nbsp;
     | w | w. | wid | wid. | widow | widowed = {{main other|[[Category:Marriage template errors|W{{PAGENAME}}]]}}<span style="color:red;">invalid reason</span>&nbsp;
     | = <!--(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;">{{#if:{{{2|}}}
     | #default= <div style="display:inline;white-space:normal;">{{{end|{{{reason|}}}}}}</div>
    |{{{end|{{{reason|}}}}}}|{{MultiReplace |plain=yes |{{{end|{{{reason|}}}}}} |m. |{{abbr|m.|married}}&nbsp;|married |{{abbr|m.|married}}&nbsp;}}}}</div>
   }}
   }}
  }}&#41;</div><!--
  }}&#41;</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>

Latest revision as of 13:22, 13 August 2020

(
no value)