User:Pratyya Ghosh/Date/doc

From Simple English Wikipedia, the free encyclopedia

This template displays date in various number of formats given user's preference. This template only shows date name. It doesn't show weekday name. To use day please see User:Pratyya Ghosh/Day. If you want to use both then use these two templates accordingly.

Parameters[change | change source]

{{User:Pratyya Ghosh/Date}} supports various number of parameters.

  • tz for timezone. It is the parameter for TimeZone (tz). Detailed possible inputs are given below. By default it is set to UTC.
Timezone parameters
UTC Zone Code (for Timezone)
UTC-12:00
-12:00
-12.00
-1200
-12
UTC-11:00
-11:00
-11.00
-1100
-11
UTC-10:00
-10:00
-10.00
-1000
-10
UTC-09:30
-09:30
-9:30
-09.30
-9.30
-0930
-930
UTC-09:00
-09:00
-9:00
-09.00
-9.00
-0900
-900
-09
-9
UTC-08:00
-08:00
-8:00
-08.00
-8.00
-0800
-800
-08
-8
UTC-07:00
-07:00
-7:00
-07.00
-7.00
-0700
-700
-07
-7
UTC-06:00
-06:00
-6:00
-06.00
-6.00
-0600
-600
-06
-6
UTC-05:00
-05:00
-5:00
-05.00
-5.00
-0500
-500
-05
-5
UTC-04:00
-04:00
-4:00
-04.00
-4.00
-0400
-400
-04
-4
UTC-03:30
-03:30
-3:30
-03.30
-3.30
-0330
-330
UTC-03:00
-03:00
-3:00
-03.00
-3.00
-0300
-300
-03
-3
UTC-02:30
-02:30
-2:30
-02.30
-2.30
-0230
-230
UTC-02:00
-02:00
-2:00
-02.00
-2.00
-0200
-200
-02
-2
UTC-01:00
-01:00
-1:00
-01.00
-1.00
-0100
-100
-01
-1
UTC 00:00
00:00
0:00
00.00
0.00
0000
00
0
<blank>
<default>
UTC+01:00
+01:00
+1:00
+01.00
+1.00
+0100
+100
+01
+1
UTC+02:00
+02:00
+2:00
+02.00
+2.00
+0200
+200
+02
+2
UTC+03:00
+03:00
+3:00
+03.00
+3.00
+0300
+300
+03
+3
UTC+03:30
+03:30
+3:30
+03.30
+3.30
+0330
+330
UTC+04:00
+04:00
+4:00
+04.00
+4.00
+0400
+400
+04
+4
UTC+04:30
+04:30
+4:30
+04.30
+4.30
+0430
+430
UTC+05:00
+05:00
+5:00
+05.00
+5.00
+0500
+500
+05
+5
UTC+05:30
+05:30
+5:30
+05.30
+5.30
+0530
+530
UTC+05:45
+05:45
+5:45
+05.45
+5.45
+0545
+545
UTC+06:00
+06:00
+6:00
+06.00
+6.00
+0600
+600
+06
+6
UTC+06:30
+06:30
+6:30
+06.30
+6.30
+0630
+630
UTC+07:00
+07:00
+7:00
+07.00
+7.00
+0700
+700
+07
+7
UTC+08:00
+08:00
+8:00
+08.00
+8.00
+0800
+800
+08
+8
UTC+09:00
+09:00
+9:00
+09.00
+9.00
+0900
+900
+09
+9
UTC+09:30
+09:30
+9:30
+09.30
+9.30
+0930
+930
UTC+10:00
+10:00
+10.00
+1000
+10
UTC+10:30
+10:30
+10.30
+1030
UTC+11:00
+11:00
+11.00
+1100
+11
UTC+12:00
+12:00
+12.00
+1200
+12
UTC+12:45
+12:45
+12.45
+1245
UTC+13:00
+13:00
+13.00
+1300
+13
UTC+13:45
+13:45
+13.45
+1345
UTC+14:00
+14:00
+14.00
+1400
+14
UTC-10:30 H-10:30
UTC-08:30 H-08:30
UTC-04:30 H-04:30
UTC-00:44 H-00:44
UTC-00:25:21 H-00:25:21
UTC+00:20 H+00:20
UTC+00:30 H+00:30
UTC+01:24 H+01:24
UTC+01:30 H+01:30
UTC+02:30 H+02:30
UTC+04:51 H+04:51
UTC+05:21:14 H+05:21:14
UTC+05:40 H+05:40
UTC+05:53:20 H+05:53:20
UTC+06:10:37 H+06:10:37
UTC+07:20 H+07:20
UTC+07:30 H+07:30
UTC+08:30 H+08:30
UTC+08:45 H+08:45
UTC+09:45 H+09:45
UTC+11:30 H+11:30
  • format (Optional) for hour format. Detailed possible inputs are given below. By default it is set to full Day Month Year format.
Format parameters
Code (for format) Code to display
<blank> 05 April 2024
<default> 05 April 2024
d
D
05
m
M
April
y
Y
2024
dm
Dm
mD
DM
md
Md
mD
MD
05 April
my
My
mY
MY
ym
Ym
yM
YM
April 2024
  • df for date formats. d, D for non zero-padded date (1). By default it is set to zero-padded date (01).
  • mf for month formats. Mm for abbreviation of the month name (Jan), mm for zero-padded month index (01), m for non zero-padded month index (1). By default it is set to full month name (January).
  • yf for year formats. yy, Yy, yY, YY for 2-digit year format (14). By default it is set to 4-year digit (2014)
  • tz-display for display of bracketed users timezone. If used y or Y then another parameter will be added. For example {{User:Pratyya Ghosh/Date|tz=+6|tz-display=y}} will show as 06 April 2024 (UTC+06:00). By default it is not used.
  • purge-display for display of a subscripted purge link. If used y or Y then another parameter will be added. For example {{User:Pratyya Ghosh/Date|tz=+6|purge-display=y}} will show as 06 April 2024 (purge). By default it is not used.

All the stated parameters stated are above. If none of them applied then it will be shown as 05 April 2024 format

Notes[change | change source]

The current purge button in the template is not included by default in any place. It's just for this page. If you need to use the purge button then you need to use the purge-display parameter.

See Also[change | change source]