Templat:Marriage: Perbedaan antara revisi
Tampilan
Konten dihapus Konten ditambahkan
kTidak ada ringkasan suntingan |
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}} = "( |
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}}}}} |
-->| {{#if:{{{1|}}} |{{trim|{{{1}}}}}}} <!-- (Display first parameter (usually a name)) |
||
-->{{#switch:{{{()|} |
-->{{#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}} <!-- (Insert " |
-->{{abbr|n.|menikah}} <!-- (Insert "m."/"menikah") [make optional if context already supplied?] |
||
-->{{#ifeq:{{{2|}}}|{{ |
-->{{#ifeq:{{{2|}}}|{{get year|{{{2|}}}}} |{{{2|}}}<!-- (If {{{2}}} is a year, display as is... |
||
-->| {{abbr|1={{ |
-->| {{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|}}}}}}| |– |; }}<!-- add {{{end}}} (if supplied)) |
-->| {{#ifeq:{{{end|{{{reason|}}}}}}| |– |; }}<!-- add {{{end}}} (if supplied)) |
||
-->{{#switch:{{{end|{{{reason|}}}}}} |
-->{{#switch:{{{end|{{{reason|}}}}}} |
||
| |
| d | d. | died | meninggal | m. = {{abbr|m.|meninggal}} |
||
| |
| div | div. | divorced | cer | cer. | c | cerai = {{abbr|c.|cerai}} |
||
| w | w. | wid | wid. | widow | widowed | menjanda | menduda | janda | duda = {{main other|[[Category:Marriage template errors]]}}{{abbr|j/d.|janda/duda}} |
|||
| = <!--(reason marriage ended not supplied)--> |
| = <!--(reason marriage ended not supplied)--> |
||
| #default = {{{end|{{{reason|}}}}}}& |
| #default = {{{end|{{{reason|}}}}}} |
||
}} }}<!-- |
}} }}<!-- |
||
-->{{#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 |
| {{#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|}}}|{{ |
| {{#ifeq:{{{3|}}}|{{get year|{{{3|}}}}} |{{{3|}}} |
||
| {{abbr|1={{ |
| {{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 |
| {{#ifeq:{{{3|}}}|{{get year|{{{3|}}}}} |{{{3|}}} |
||
| {{abbr|1={{get |
| {{abbr|1={{get year|{{{3|}}}}} |2={{{3|}}} }} |
||
}} }} |
}} }} |
||
| |
| |