Templat:Start date and years ago
Templat ini menunjukkan tanggal pembentukan lembaga, perusahaan dll dan umur tahun.
Templat ini tidak boleh digunakan untuk tanggal lahir atau kematian orang, gunakan {{Tanggal lahir dan umur}} atau {{Tanggal kematian dan umur}} sebagai gantinya.
Templat memerlukan "YYYY|MM|DD" parameter. Tidak digunakan untuk "YYYY" atau "YYYY|MM"tanggal.
Daftar isi |
Penggunaan [sunting]
{{Start date and years ago|YYYY|MM|DD}} akan memberikan Bulan D, YYYY; XX tahun yang lalu
Contoh [sunting]
Menggunakan format tanggal standar Amerika [sunting]
| Sintaks | Tampilan |
|---|---|
| {{Start date and years ago|2009|4|11}} | 11 April 2009 |
| {{Start date and years ago|2007|4|11}} | 11 April 2007 |
| {{Start date and years ago|1812|10|21}} | 21 Oktober 1812 |
| 1 Oktober 1812 |
Month First (mf) and Day First (df) options [sunting]
The df (day first) and mf (month first) parameters indicate the intended date format to display. The appropriate parameter should be set to "y" or "yes" e.g. df=yes or mf=y.
The default output of this template is to display the month before the day (American format). This default may not be appropriate articles about people from parts of the world where the day precedes the month in a date (British/International format). In such articles the parameter, "df", should be set to display the day before the month.
The parameter "mf", while not actually used by the template, will indicate that month first format is intended. Using these parameters can assist bots or other automated processing to detect which date format is intended; leaving the format as default may lead an editor or bot to change the format to an unintended value.
Do not specify both "df" and "mf" parameters in the same use of the template, as these formats are mutually exclusive.
| Syntax | Display |
|---|---|
| {{Start date and years ago|1993|2|24|df=yes}} | 24 Februari 1993 |
| {{Start date and years ago|1993|2|24|df=y}} | 24 Februari 1993 |
| {{Start date and years ago|1993|2|24|mf=yes}} | 24 Februari 1993 |
| {{Start date and years ago|1993|2|24|mf=y}} | 24 Februari 1993 |
Hard return [sunting]
When you want the "(# years ago)" to start at the next line rather than letting it soft-returns, use the "br=1" parameter to hard-return it.
| Syntax | Display |
|---|---|
| {{Start date and years ago|1993|2|24|br=1}} | 24 Februari 1993 |
Use in microformats [sunting]
See the microformats project for further details.
| Dokumentasi di atas ditransklusikan dari Templat:Start date and years ago/doc. (sunting | versi terdahulu) Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) templat ini. Kategori dan pranala antarbahasa harap ditambahkan pada subhalaman /doc. Subhalaman templat ini. |
