Template:Marriage: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
({{subst:wbr}} to minimize risk of disruption) |
(Prevent template errors due to extraneous apostrophes in data returned from Template:Wdib, per report at Special:Permalink/1042666755#Expression_error_unexpected_<_operator) |
||
Line 44: | Line 44: | ||
}}{{#ifeq:{{{3|}}} |
}}{{#ifeq:{{{3|}}} |
||
|{{Str ≠ len|{{{3}}}|4 |
|{{Str ≠ len|{{{3}}}|4 |
||
|{{#ifexpr:{{#time:Ymd|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes}} }} >= {{#time:Ymd|{{{3|}}}}} |
|{{#ifexpr:{{#time:Ymd|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=ymd}} }} >= {{#time:Ymd|{{{3|}}}}} |
||
|{{#ifexpr:{{#time:Ymd|{{if empty|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes}}|{{tomorrow}} }}}} = {{#time:Ymd|{{{3|}}}}} |
|{{#ifexpr:{{#time:Ymd|{{if empty|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=ymd}}|{{tomorrow}} }}}} = {{#time:Ymd|{{{3|}}}}} |
||
|{{#if:{{{end|{{{reason|}}}}}} |
|{{#if:{{{end|{{{reason|}}}}}} |
||
|{{#time:Y|{{{3|}}}}} |
|{{#time:Y|{{{3|}}}}} |
||
Line 53: | Line 53: | ||
|{{main other|[[Category:Marriage template anomalies|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalies|{{#ifexpr:{{#time:Ymd}} >= {{#time:Ymd|{{{3|}}}}}|posthumous|future}} date}}</var>|{{#time:Y|{{{3|}}}}} |
|{{main other|[[Category:Marriage template anomalies|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalies|{{#ifexpr:{{#time:Ymd}} >= {{#time:Ymd|{{{3|}}}}}|posthumous|future}} date}}</var>|{{#time:Y|{{{3|}}}}} |
||
}}}} |
}}}} |
||
|{{#ifexpr:{{#time:Y|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes}} }} >= {{#time:Y|{{{3|}}}}} |
|{{#ifexpr:{{#time:Y|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=y}} }} >= {{#time:Y|{{{3|}}}}} |
||
|{{#time:Y|{{{3|}}}}} |
|{{#time:Y|{{{3|}}}}} |
||
|{{main other|[[Category:Marriage template anomalies|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalies|{{#ifexpr:{{#time:Y}} >= {{{3|}}}|posthumous|future}} year}}</var>|{{#time:Y|{{{3|}}}}} |
|{{main other|[[Category:Marriage template anomalies|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalies|{{#ifexpr:{{#time:Y}} >= {{{3|}}}|posthumous|future}} year}}</var>|{{#time:Y|{{{3|}}}}} |
||
Line 61: | Line 61: | ||
|{{hover title|dotted=no|2={{#iferror: {{#time:Y|{{{3|}}}}} | {{main other|[[Category:Marriage template errors|I{{PAGENAME}}]]}}<span style="color:red;">invalid year</span> |
|{{hover title|dotted=no|2={{#iferror: {{#time:Y|{{{3|}}}}} | {{main other|[[Category:Marriage template errors|I{{PAGENAME}}]]}}<span style="color:red;">invalid year</span> |
||
|{{Str ≠ len|{{{3}}}|4 |
|{{Str ≠ len|{{{3}}}|4 |
||
|{{#ifexpr:{{#time:Ymd|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes}} }} >= {{#time:Ymd|{{{3|}}}}} |
|{{#ifexpr:{{#time:Ymd|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=ymd}} }} >= {{#time:Ymd|{{{3|}}}}} |
||
|{{#ifexpr:{{#time:Ymd|{{if empty|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes}}|{{tomorrow}} }}}} = {{#time:Ymd|{{{3|}}}}} |
|{{#ifexpr:{{#time:Ymd|{{if empty|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=ymd}}|{{tomorrow}} }}}} = {{#time:Ymd|{{{3|}}}}} |
||
|{{#if:{{{end|{{{reason|}}}}}} |
|{{#if:{{{end|{{{reason|}}}}}} |
||
|{{#time:Y|{{{3|}}}}} |
|{{#time:Y|{{{3|}}}}} |
||
Line 70: | Line 70: | ||
|{{main other|[[Category:Marriage template anomalies|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalies|{{#ifexpr:{{#time:Ymd}} >= {{#time:Ymd|{{{3|}}}}}|posthumous|future}} date}}</var>|{{#time:Y|{{{3|}}}}} |
|{{main other|[[Category:Marriage template anomalies|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalies|{{#ifexpr:{{#time:Ymd}} >= {{#time:Ymd|{{{3|}}}}}|posthumous|future}} date}}</var>|{{#time:Y|{{{3|}}}}} |
||
}}}} |
}}}} |
||
|{{#ifexpr:{{#time:Y|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes}} }} >= {{#time:Y|{{{3|}}}}} |
|{{#ifexpr:{{#time:Y|{{Wdib |P570|fwd=ALL|maxvals=1|noicon=true|pd=yes|df=y}} }} >= {{#time:Y|{{{3|}}}}} |
||
|{{#time:Y|{{{3|}}}}} |
|{{#time:Y|{{{3|}}}}} |
||
|{{main other|[[Category:Marriage template anomalies|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalies|{{#ifexpr:{{#time:Y}} >= {{{3|}}}|posthumous|future}} year}}</var>|{{#time:Y|{{{3|}}}}} |
|{{main other|[[Category:Marriage template anomalies|P{{PAGENAME}}]]}}{{if preview|<var>{{colored link|red|Category:Marriage template anomalies|{{#ifexpr:{{#time:Y}} >= {{{3|}}}|posthumous|future}} year}}</var>|{{#time:Y|{{{3|}}}}} |