Lompat ke isi

Templat:Death date and age: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
Arupako (bicara | kontrib)
←Membuat halaman berisi '[[{{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}} {{{3|{{{day|{{{3}}}}}}}}}]] [[{{{1|{{{year|{{{1}}}}}}}}}]] (umur {{age at date | {{{4|{{{year|{{{4}}}}}}}}} | {{{5|{{{mon...'
 
Taylor 49 (bicara | kontrib)
age->Umur
 
(22 revisi perantara oleh 13 pengguna tidak ditampilkan)
Baris 1: Baris 1:
[[{{MONTHNAME|{{{2|{{{month|{{{2}}}}}}}}}}} {{{3|{{{day|{{{3}}}}}}}}}]] [[{{{1|{{{year|{{{1}}}}}}}}}]] (umur&nbsp;{{age at date | {{{4|{{{year|{{{4}}}}}}}}} | {{{5|{{{month|{{{5}}}}}}}}} | {{{6|{{{day|{{{6}}}}}}}}} | {{{1|{{{year|{{{1}}}}}}}}} | {{{2|{{{month|{{{2}}}}}}}}} | {{{3|{{{day|{{{3}}}}}}}}} }})<noinclude>
<includeonly>{{#if:{{{df|}}}|{{#expr:{{{3}}}}} {{NAMABULAN|{{{2}}}}}|{{#expr:{{{3}}}}} {{NAMABULAN|{{{2}}}}} }} {{{1}}}<span style="display:none">({{{1}}}-{{padleft:{{NOMORBULAN|{{{2}}}}}|2|0}}-{{padleft:{{{3}}}|2|0}})</span> (umur&nbsp;{{#if:{{{5|}}}
|{{#if:{{{6|}}}

|<!-- if all birth values are specified -->{{Umur|{{{4}}}|{{{5}}}|{{{6}}}|{{{1}}}|{{{2}}}|{{{3}}}}}
Returns a person's date of death and his/her age at that date.
|{{#ifexpr:{{{2}}}<{{{5}}}

|<!-- if birth month but not day exist and birth month was not reached in death year -->{{Umur|{{{4}}}|12|31|{{{1}}}|{{{2}}}|{{{3}}}}}
; Penggunaan<nowiki>:</nowiki>
|{{#ifexpr:{{{2}}}>{{{5}}}<!-- if birth month but not day exist and birth month was reached in death year -->
: <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki></tt>''tahun meninggal''<tt><nowiki>|</nowiki></tt>''bulan meninggal ''<tt><nowiki>|</nowiki></tt>''hari meninggal ''<tt><nowiki>|</nowiki></tt>''tahun lahir''<tt><nowiki>|</nowiki></tt>''bulan lahir''<tt><nowiki>|</nowiki></tt>''tanggal lahir''<tt><nowiki>}}</nowiki></tt>
|{{Umur|{{{4}}}|1|1|{{{1}}}|{{{2}}}|{{{3}}}}}

|<!-- if birth month but not day exist and birth month is the death month -->{{Umur|{{{4}}}|12|31|{{{1}}}|{{{2}}}|{{{3}}}}}–{{Umur|{{{4}}}|1|1|{{{1}}}|{{{2}}}|{{{3}}}}}
; Contoh<nowiki>:</nowiki>
}}
<nowiki>{{death date and age|1993|2|24|1941|4|12}}</nowiki><br>kembali ke {{death date and age|1993|2|24|1941|4|12}}
}}

}}
<span style="font-weight:bold; color:#CC0000">Catatan</span>: Templat ini akan tampil-rusak jika acuannya tidak diisi (seperti diatas.
|{{Age in years|{{{4}}}|{{{1}}}}}}})<!--

-- Periksa galat --
==Lihat juga==
-->{{#ifexpr: ( {{{1|}}} > {{CURRENTYEAR}} ) OR ( {{{4|}}} > {{CURRENTYEAR}} ) OR ( {{{4|}}} > {{{1|}}} ) OR ( {{{1|}}} - {{{4|}}} > 150 )
[[Templat:Tanggal lahir dan umur]]
| &#32;{{error|invalid year}}{{main other|[[Kategori:Halaman menggunakan templat umur dengan tanggal salah]]}}

}}{{#if:{{{5|}}}|{{#ifexpr: ( {{{2|}}} > 12 ) OR ( {{{2|}}} < 1 ) OR ( {{{5|}}} > 12 ) OR ( {{{5|}}} < 1 )
| &#32;{{error|invalid month}}{{main other|[[Kategori:Halaman menggunakan templat umur dengan tanggal salah]]}}|}}
}}{{#if:{{{6|}}}|{{#ifexpr: ( {{{3|}}} > 31 ) OR ( {{{3|}}} < 1 ) OR ( {{{6|}}} > 31 ) OR ( {{{6|}}} < 1 )
| &#32;{{error|invalid day}}{{main other|[[Kategori:Halaman menggunakan templat umur dengan tanggal salah]]}}|}}
}}</includeonly><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Revisi terkini sejak 19 November 2023 01.39