Lompat ke isi

Templat:Marriage: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
Kenrick95 (bicara | kontrib)
kTidak ada ringkasan suntingan
Farras (bicara | kontrib)
kTidak ada ringkasan suntingan
Baris 2: Baris 2:


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


--><span itemscope itemtype="https://en.wiki-indonesia.club/wiki/{{BASEPAGENAME}}"><!--
--><span itemscope itemtype="https://en.wiki-indonesia.club/wiki/{{BASEPAGENAME}}"><!--
-->{{#if:{{{show|}}} |{{{show|}}} <!-- (?)
-->{{#if:{{{show|}}} |{{{show|}}} <!-- (?) - I think this is to accommodate alternate formats from to do list above
-->| {{#if:{{{1|}}} |{{trim|{{{1}}}}}&nbsp;}}<!-- (Display first parameter (usually a name))
-->| {{#if:{{{1|}}} |{{trim|{{{1}}}}}}}&#32;<!-- (Display first parameter (usually a name))
-->{{#switch:{{{()|}}} |small|smaller=<span style="font-size:85%;">}}<!-- (Start smaller size if |()=small[er])
-->{{#switch:{{{()|}}}<!-- (Add options on font size - default to small size (95%)
-->|small|smaller=<span style="font-size:90%;"><!-- (Smaller size if |()=small[er]) keep for backwards compatibility
-->|norm|normal=<!-- (no change to font size if normal)
-->|mini|tiny=<span style="font-size:85%;"><!-- (Even smaller size if mini/tiny, but never less than 85% per MOS:FONTSIZE)
-->|=}}<!-- (Default to normal size)
-->(<!-- (Start parenthesis carrying marriage data)
-->(<!-- (Start parenthesis carrying marriage data)
-->{{abbr|n.|menikah}}&nbsp;<!-- (Insert "menikah"/"menikah tahun") [make optional if context already supplied?]
-->{{abbr|n.|menikah}}&nbsp;<!-- (Insert "m."/"menikah") [make optional if context already supplied?]
-->{{#ifeq:{{{2|}}}|{{getyear|{{{2|}}}}} |{{{2|}}}<!-- (If {{{2}}} is a year, display as is...
-->{{#ifeq:{{{2|}}}|{{get year|{{{2|}}}}} |{{{2|}}}<!-- (If {{{2}}} is a year, display as is...
-->| {{abbr|1={{getyear|{{{2|}}}}} |2={{{2|{{#time:j F Y}}}}}}}<!-- ...otherwise extract and display year
-->| {{abbr|1={{get year|{{{2|}}}}} |2={{{2|{{#time:F j, Y}}}}}}}<!-- ...otherwise extract and display year
-->}}<!-- and present remainder in tooltip)
-->}}<!-- and present remainder in tooltip)
-->{{#if:{{{3|}}} <!-- (If {{{3}}} supplied...
-->{{#if:{{{3|}}} <!-- (If {{{3}}} supplied...
-->| {{#ifeq:{{{3|}}}| |<!-- ...then if {{{3}}} isn't nothing,
-->| {{#ifeq:{{{3|}}}| |<!-- ...then if {{{3}}} isn't nothing,
-->| {{#ifeq:{{{end|{{{reason|}}}}}}| |– |&#59;&#32;}}<!-- add {{{end}}} (if supplied))
-->| {{#ifeq:{{{end|{{{reason|}}}}}}| |– |&#59;&#32;}}<!-- add {{{end}}} (if supplied))
-->{{#switch:{{{end|{{{reason|}}}}}}
-->{{#switch:{{{end|{{{reason|}}}}}}
| div | div. | divorced = {{abbr|cerai|bercerai}}&#32;
| d | d. | died | meninggal | m. = {{abbr|m.|meninggal}}&nbsp;
| w | w. | wid | wid. | widowed = {{abbr|wid.|menjanda;menduda}}&#32;
| div | div. | divorced | cer | cer. | c | cerai = {{abbr|c.|cerai}}&nbsp;
| w | w. | wid | wid. | widow | widowed | menjanda | menduda | janda | duda = {{main other|[[Category:Marriage template errors]]}}{{abbr|j/d.|janda/duda}}&nbsp;
| = <!--(reason marriage ended not supplied)-->
| = <!--(reason marriage ended not supplied)-->
| #default = {{{end|{{{reason|}}}}}}&#32;
| #default = {{{end|{{{reason|}}}}}}&nbsp;
}} }}<!--
}} }}<!--
-->{{#ifeq:{{{end|{{{reason|}}}}}}|
-->{{#ifeq:{{{end|{{{reason|}}}}}}|
<!----------Adding third parameter (end date) if {{{end}}} not supplied:--------->
<!----------Adding third parameter (end date) if {{{end}}} not supplied:--------->
| {{#ifexpr:(floor({{#time:Y|{{{3|}}}}}/100))-(floor({{#time:Y|{{{2|}}}}}/100))=0
| {{#ifexpr:(floor({{#time:Y|{{{3|}}}}}/100))-(floor({{#time:Y|{{{2|}}}}}/100))=0
| {{#ifeq:{{{3|}}}|{{get-year|{{{3|}}}}}
| {{#ifeq:{{{3|}}}|{{get year|{{{3|}}}}}
| {{padleft: {{#expr:{{#time:Y|{{{3|}}}}}-(floor({{#time:Y|{{{2|}}}}}/100))*100}} |2 |0 }}
| {{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|}}} }}
| {{abbr|1={{padleft: {{#expr: {{#time:Y|{{{3|}}}}}-(floor({{#time:Y|{{{2|}}}}}/100))*100 }} |2 |0 }} |2={{{3|}}} }}
}}
}}
| {{#ifeq:{{{3|}}}|{{getyear|{{{3|}}}}} |{{{3|}}}
| {{#ifeq:{{{3|}}}|{{get year|{{{3|}}}}} |{{{3|}}}
| {{abbr|1={{getyear|{{{3|}}}}} |2={{{3|}}} }}
| {{abbr|1={{get year|{{{3|}}}}} |2={{{3|}}} }}
}} }}
}} }}
<!----------Adding third parameter (end date) if {{{end}}} supplied:--------->
<!----------Adding third parameter (end date) if {{{end}}} supplied:--------->
| {{#ifeq:{{{3|}}}|{{get-year|{{{3|}}}}} |{{{3|}}}
| {{#ifeq:{{{3|}}}|{{get year|{{{3|}}}}} |{{{3|}}}
| {{abbr|1={{get-year|{{{3|}}}}} |2={{{3|}}} }}
| {{abbr|1={{get year|{{{3|}}}}} |2={{{3|}}} }}
}} }}
}} }}
|
|

Revisi per 21 Januari 2017 11.57