Template:Marriage: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(Prevent template errors due to extraneous apostrophes in data returned from Template:Wdib, per report at Special:Permalink/1042666755#Expression_error_unexpected_<_operator) |
(avoid "no value" for deceased subjects, instead display "before <year died>") |
||
Line 23: | Line 23: | ||
|{{hover title|dotted=no|2={{#iferror: {{#time:Y|{{{2|}}}}} | {{main other|[[Category:Marriage template errors|I{{PAGENAME}}]]}}<span style="color:red;">invalid year</span>|{{#time:Y|{{{2|}}}}}}}|1={{{2|}}}}} |
|{{hover title|dotted=no|2={{#iferror: {{#time:Y|{{{2|}}}}} | {{main other|[[Category:Marriage template errors|I{{PAGENAME}}]]}}<span style="color:red;">invalid year</span>|{{#time:Y|{{{2|}}}}}}}|1={{{2|}}}}} |
||
}} |
}} |
||
|{{#if:{{{3|}}}{{{end|{{{reason|}}}}}}||{{main other|[[Category:Marriage template errors|N{{PAGENAME}}]]}}<!-- |
|{{#if:{{{3|}}}{{{end|{{{reason|}}}}}}||{{#if:{{#property:P570}}||{{main other|[[Category:Marriage template errors|N{{PAGENAME}}]]}}}}<!-- |
||
-->{{#if:{{{end|{{{reason|}}}}}}||<span style="color:red;">no value</span>}}<!-- |
-->{{#if:{{{end|{{{reason|}}}}}}||{{#if:{{#property:P570}}|before {{Wdib |P570|fwd=ALL|maxvals=1|noicon=false|pd=yes|df=ymd}}|<span style="color:red;">no value</span>}}}}<!-- |
||
-->{{#if:{{{end|{{{reason|}}}}}}|{{#if:{{{2|}}}{{{3|}}}|, }}}}}} |
-->{{#if:{{{end|{{{reason|}}}}}}|{{#if:{{{2|}}}{{{3|}}}|, }}}}}} |
||
}}{{#if:{{{3|}}} |
}}{{#if:{{{3|}}} |