Changes

Jump to navigation Jump to search
3,603 bytes added ,  06:48, 13 December 2014
m
1 revision imported
<includeonly><!--

To do: Alternate format/s such as "Mildred Harris (1918–20; div.)" rather than "Mildred Harris (m. 1918; div. 1920)".
Producing e.g. {{marriage|1234|1256}} = "(m. 1234–56)" or just "(1234–56)"...?

--><span itemscope itemtype="https://en.wikipedia.org/wiki/{{BASEPAGENAME}}"><!--
-->{{#if:{{{show|}}} |{{{show|}}} <!-- (?)
-->| {{#if:{{{1|}}} |{{trim|{{{1}}}}}&nbsp;}}<!-- (Display first parameter (usually a name))
-->{{#switch:{{{()|}}} |small|smaller=<span style="font-size:85%;">}}<!-- (Start smaller size if |()=small[er])
-->(<!-- (Start parenthesis carrying marriage data)
-->{{abbr|m.|married}}&nbsp;<!-- (Insert "m."/"married") [make optional if context already supplied?]
-->{{#ifeq:{{{2|}}}|{{getyear|{{{2|}}}}} |{{{2|}}}<!-- (If {{{2}}} is a year, display as is...
-->| {{abbr|1={{getyear|{{{2|}}}}} |2={{{2|{{#time:F j, Y}}}}}}}<!-- ...otherwise extract and display year
-->}}<!-- and present remainder in tooltip)
-->{{#if:{{{3|}}} <!-- (If {{{3}}} supplied...
-->| {{#ifeq:{{{3|}}}| |<!-- ...then if {{{3}}} isn't nothing,
-->| {{#ifeq:{{{end|{{{reason|}}}}}}| |– |&#59;&#32;}}<!-- add {{{end}}} (if supplied))
-->{{#switch:{{{end|{{{reason|}}}}}}
| div | div. | divorced = {{abbr|div.|divorced}}&#32;
| w | w. | wid | wid. | widowed = {{abbr|wid.|widowed}}&#32;
| = <!--(reason marriage ended not supplied)-->
| #default = {{{end|{{{reason|}}}}}}&#32;
}} }}<!--
-->{{#ifeq:{{{end|{{{reason|}}}}}}|
<!----------Adding third parameter (end date) if {{{end}}} not supplied:--------->
| {{#ifexpr:(floor({{#time:Y|{{{3|}}}}}/100))-(floor({{#time:Y|{{{2|}}}}}/100))=0
| {{#ifeq:{{{3|}}}|{{get-year|{{{3|}}}}}
| {{padleft: {{#expr:{{#time:Y|{{{3|}}}}}-(floor({{#time:Y|{{{2|}}}}}/100))*100}} |2 |0 }}
| {{abbr|1={{padleft: {{#expr: {{#time:Y|{{{3|}}}}}-(floor({{#time:Y|{{{2|}}}}}/100))*100 }} |2 |0 }} |2={{{3|}}} }}
}}
| {{#ifeq:{{{3|}}}|{{getyear|{{{3|}}}}} |{{{3|}}}
| {{abbr|1={{getyear|{{{3|}}}}} |2={{{3|}}} }}
}} }}
<!----------Adding third parameter (end date) if {{{end}}} supplied:--------->
| {{#ifeq:{{{3|}}}|{{get-year|{{{3|}}}}} |{{{3|}}}
| {{abbr|1={{get-year|{{{3|}}}}} |2={{{3|}}} }}
}} }}
|
}}<!--
-->)<!-- (Close parenthesis carrying marriage data)
-->{{#switch:{{{()|}}} |small|smaller=</span>}} <!-- (End smaller size (if |()=small[er]))
-->}}<!--
--></span><!--
--></includeonly><noinclude>{{Documentation}}</noinclude>

Navigation menu