Şablon:Start date and age

Vikipediya, azad ensiklopediya
Naviqasiyaya keçin Axtarışa keçin


Sənədləşmə

İstifadə

Sintaksis

Tam sintaksis
{{Start date and age|yyyy|mm|dd|df=yes|br=yes}}
Ümumi istifadə
{{Start date and age|yyyy|mm|dd}} yazılışı ekranda belə göstərir: March 4, 2010; 4 ay əvvəl
{{Start date and age|yyyy|mm|dd|df=yes}} yazılışı ekranda belə göstərir: 4 March 2010; 4 ay əvvəl
Parametrlərinin təsviri
Parametr Təsvir
yyyy İl göstərən 4 rəqəm. İl həmişə 4 rəqəm şəklində görsənməlidir.
mm 1-dən 12-yə kimi olan ədədlərlə aylar təsvir olunur. Aparıcı sıfırlar nömrədə nəzərə alınmır.
dd 1-dən 31-ə kimi olan ədədlərlə ayın günləri təsvir olunur. Aparıcı sıfırlar nömrədə nəzərə alınmır.
df= The optional parameter df can either be set to yes or anything other than yes. When set to yes, date will be displayed in DMY format: 4 March 2010. When set something other than yes or when this parameter is not included, date will be displayed in MD,Y format: March 4, 2010.

As for choosing the right format to use, consult Manual of Style (dates and numbers): Full date formatting.

br= The optional parameter br can either be set to yes or anything other than yes. When set to yes, a line break will be inserted between the date and the age. When set something other than yes or when this parameter is not included, a breaking space will be inserted between the date and the age. In either case, a semicolon separates the date and age, immediately before the line break or space.

Nümunələr

Sintaksis Nəticə
Tam tarix (il, ay, gün)
{{Start date and age|2010|01|02}} 2 yanvar 2010 (14 il əvvəl) (2010-01-02)
{{Start date and age|2008|08|09}} 9 avqust 2008 (15 il əvvəl) (2008-08-09)
{{Start date and age|2003|07|05}} 5 iyul 2003 (20 il əvvəl) (2003-07-05)
{{Start date and age|2010|1|2|df=yes}} 2 yanvar 2010 (14 il əvvəl) (2010-01-02)
{{Start date and age|2008|8|9|df=yes}} 9 avqust 2008 (15 il əvvəl) (2008-08-09)
{{Start date and age|2003|7|5|df=yes}} 5 iyul 2003 (20 il əvvəl) (2003-07-05)
{{Start date and age|2009|9|9|br=yes}} 9 sentyabr 2009 (
14 il əvvəl
) (2009-09-09)
Bugün:
{{Start date and age|2024|3|19}}
19 mart 2024 (0 gün əvvəl) (2024-03-19)
Dünən:
{{Start date and age|2024|3|18}}
18 mart 2024 (1 gün əvvəl) (2024-03-18)
İl və ay
{{Start date and age|2002|03}} mart 2002 (22 il əvvəl) (2002-03)
{{Start date and age|2002|04}} aprel 2002 (21 il əvvəl) (2002-04)
Yalnız il
{{Start date and age|2002}} 2002 (22 il əvvəl) (2002)