Templat:Orddate2YMD: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Kenrick95 (bicara | kontrib)
kTidak ada ringkasan suntingan
Kenrick95 (bicara | kontrib)
Tidak ada ringkasan suntingan
 
(3 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 1:
{{{1|{{{{{|safesubst:}}}#time:Y}}}}}-{{{{{|safesubst:}}}MJD2M|{{{{{|safesubst:}}}#expr:{{MJD|{{{1|{{{{{|safesubst:}}}#time:Y}} }}} }}+{{{2|{{orddate|{{{1|{{{{{|safesubst:}}}#time:Y}}}}} }} }}}-1}}}}-{{{{{|safesubst:}}}MJD2D|{{{{{|safesubst:}}}#expr:{{MJD|{{{1|{{{{{|safesubst:}}}#time:Y}} }}} }}+{{{2|{{{{{|safesubst:}}}orddate|{{{1|{{{{{|safesubst:}}}#time:Y}}}}} }} }}}-1}}}}<noinclude>{{cquote|you can use MJD of New Year, add orddate-1, and apply MJD2D and MJD2Mdoc}}
MJD of New year: {{MJD|2010}}<br />
add orddate-1 : {{#expr:{{MJD|2010}}+{{orddate}}-1}}<br />
and apply MJD2D and MJD2M: {{MJD2D|{{#expr:{{MJD|2010}}+{{orddate}}-1}}}} {{MJD2M|{{#expr:{{MJD|2010}}+{{orddate}}-1}}}}
-----
Contoh:
* <nowiki>{{Orddate2YMD|2011|5}}</nowiki> -> {{Orddate2YMD|2011|5}} -> {{#time:j F Y|{{Orddate2YMD|2011|5}}}}
* <nowiki>{{Orddate2YMD|2012|60}}</nowiki> -> {{Orddate2YMD|2012|60}} -> {{#time:j F Y|{{Orddate2YMD|2012|60}}}}
* <nowiki>{{Orddate2YMD|2011|60}}</nowiki> -> {{Orddate2YMD|2011|60}} -> {{#time:j F Y|{{Orddate2YMD|2011|60}}}}
</noinclude>