Jump to content

User:Pratyya Ghosh/Userboxes/Time/doc

From Wikipedia, the free encyclopedia

This userbox displays the time of a user's timezone in both 12-hour and 24-hour given user's preference.

Parameters

[edit]

{{User:Pratyya Ghosh/Userboxes/Time}} supports various number of parameters giving the user full independence to customize the box.

Basic Parameters

[edit]
  • 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 for hour format. Possible entries are 12 and 24 By default it is set to 24
  • country for country/region. Detailed Possible inputs are given below. By default it is set to this user's timezone
Country Parameters
Code (for Country) Code to display
<blank> this user's timezone
<default> this user's timezone
AF Afghanistan
AX Åland Islands
AL Albania
DZ Algeria
AS American Samoa
AD Andorra
AO Angola
AI Anguilla
AQ Antarctica
AG Antigua and Barbuda
AR Argentina
AM Armenia
AW Aruba
AU Australia
AT Austria
AZ Azerbaijan
BS Bahamas
BH Bahrain
BD Bangladesh
BB Barbados
BY Belarus
BE Belgium
BZ Belize
BJ Benin
BM Bermuda
BT Bhutan
BO Bolivia
BQ Caribbean Netherlands
BA Bosnia and Herzegovina
BW Botswana
BV Bouvet Island
BR Brazil
IO British Indian Ocean Territory
BN Brunei Darussalam
BG Bulgaria
BF Burkina Faso
BI Burundi
CV Cabo Verde
KH Cambodia
CM Cameroon
CA Canada
KY Cayman Islands
CF Central African Republic
TD Chad
CL Chile
CN China
CX Christmas Island
CC Cocos (Keeling) Islands
CO Colombia
KM Comoros
CG Congo
CD Congo, Democratic Republic of the
CK Cook Islands
CR Costa Rica
CI Côte d'Ivoire
CI Ivory Coast
HR Croatia
CU Cuba
CW Curaçao
CY Cyprus
CZ Czech Republic
DK Denmark
DJ Djibouti
DM Dominica
DO Dominican Republic
EC Ecuador
EG Egypt
SV El Salvador
GQ Equatorial Guinea
ER Eritrea
EE Estonia
SZ Eswatini
ET Ethiopia
FK Falkland Islands
FO Faroe Islands
FJ Fiji
FI Finland
FR France
GF French Guiana
PF French Polynesia
TF French Southern and Antarctic Lands
GA Gabon
GM Gambia
GE Georgia
DE Germany
GH Ghana
GI Gibraltar
GR Greece
GL Greenland
GD Grenada
GP Guadeloupe
GU Guam
GT Guatemala
GG Guernsey
GN Guinea
GW Guinea-Bissau
GY Guyana
HT Haiti
HM Heard Island and McDonald Islands
VA Holy See
HN Honduras
HK Hong Kong
HU Hungary
IS Iceland
IN India
ID Indonesia
IR Iran
IQ Iraq
IE Ireland
IM Isle of Man
IL Israel
IT Italy
JM Jamaica
JP Japan
JE Jersey
JO Jordan
KZ Kazakhstan
KE Kenya
KI Kiribati
KP North Korea
KR South Korea
KW Kuwait
KG Kyrgyzstan
LA Laos
LV Latvia
LB Lebanon
LS Lesotho
LR Liberia
LY Libya
LI Liechtenstein
LT Lithuania
LU Luxembourg
MO Macau
MG Madagascar
MW Malawi
MY Malaysia
MV Maldives
ML Mali
MT Malta
MH Marshall Islands
MQ Martinique
MR Mauritania
MU Mauritius
YT Mayotte
MX Mexico
FM Micronesia
MD Moldova
MC Monaco
MN Mongolia
ME Montenegro
MS Montserrat
MA Morocco
MZ Mozambique
MM Myanmar
NA Namibia
NR Nauru
NP Nepal
NL Netherlands
NC New Caledonia
NZ New Zealand
NI Nicaragua
NE Niger
NG Nigeria
NU Niue
NF Norfolk Island
MK North Macedonia
MP Northern Mariana Islands
NO Norway
OM Oman
PK Pakistan
PW Palau
PS Palestine
PA Panama
PG Papua New Guinea
PY Paraguay
PE Peru
PH Philippines
PN Pitcairn
PL Poland
PT Portugal
PR Puerto Rico
QA Qatar
RE Réunion
RO Romania
RU Russia
RW Rwanda
BL Saint Barthélemy
SH Saint Helena
KN Saint Kitts and Nevis
LC Saint Lucia
MF Saint Martin (French part)
PM Saint Pierre and Miquelon
VC Saint Vincent and the Grenadines
WS Samoa
SM San Marino
ST Sao Tome and Principe
SA Saudi Arabia
SN Senegal
RS Serbia
SC Seychelles
SL Sierra Leone
SG Singapore
SX Sint Maarten (Dutch part)
SK Slovakia
SI Slovenia
SB Solomon Islands
SO Somalia
ZA South Africa
GS South Georgia and the South Sandwich Islands
SS South Sudan
ES Spain
LK Sri Lanka
SD Sudan
SR Suriname
SJ Svalbard and Jan Mayen
SE Sweden
CH Switzerland
SY Syria
TW Taiwan, Province of China
TJ Tajikistan
TZ Tanzania
TH Thailand
TL Timor-Leste
TG Togo
TK Tokelau
TO Tonga
TT Trinidad and Tobago
TN Tunisia
TR Turkey
TM Turkmenistan
TC Turks and Caicos Islands
TV Tuvalu
UG Uganda
UA Ukraine
AE United Arab Emirates
AE UAE
GB United Kingdom
GB UK
US United States of America
US USA
UM United States Minor Outlying Islands
UY Uruguay
UZ Uzbekistan
VU Vanuatu
VE Venezuela
VN Vietnam
VG British Virgin Islands
VI United States Virgin Islands
WF Wallis and Futuna
EH Western Sahara
YE Yemen
ZM Zambia
ZW Zimbabwe
  • second (Optional) for adding or not adding seconds parameter to end. If input is set as n or N then the seconds parameter won't be shown. Otherwise for any input or blank it is to show seconds by default.
  • region (Optional) for city/sub-region. This is completely a user-defined input. What user inputs will be the output.

Extra Parameters

[edit]
  • punc for punctuation between time parameters. This is default between both. Currently the default is :
  • punc1 (Optional) for for punctuation between hours and minutes parameter. By default not used.
  • punc2 (Optional) for for punctuation between minutes and seconds parameter. By default not used.
  • font font of the userbox text. Currently set to Wikipedia default.
  • bg-color for background color. See list of colors for possible inputs. By default it is set to #00563F.
  • text-color for font color. See list of colors for possible inputs. By default it is set to white.
  • text-size For the text size of the image. By default it is set to 9.
  • text-align for the text align of userbox. By default it is set to center.
  • region-color for color of user's given region. See list of colors for possible inputs. By default it is set to white.
  • country-color for color of user's given country. See list of colors for possible inputs. By default it is set to white.
  • border-color for color of userbox border. See list of colors for possible inputs. By default it is set to white.
  • image for the image. User can use any image according to users liking. The image should be used according to the ratio which are as like wiki-markup. By default it is set to a number of 720 images which changes in every minutes. So the suggestion will be not messing up with it.
  • image-bg-color for color of userbox image background color. See list of colors for possible inputs. By default it is set to white.
  • image-text-color for color of userbox image text (if text is used rather image) color. See list of colors for possible inputs. By default it is set to black.

Usage

[edit]
Code (Basic Parameters) Display
{{User:Pratyya Ghosh/Userboxes/Time|tz=+6|format=24|country=BD|region=Dhaka}}
7:47 PM. Click here to purge. The time is 19:47:15 in Dhaka, Bangladesh.
{{User:Pratyya Ghosh/Userboxes/Time|tz=+5.30|format=12|country= IN}}
7:17 PM. Click here to purge. The time is 7:17:15 PM in India.
{{User:Pratyya Ghosh/Userboxes/Time|tz=+6|format=24|country=BD|region=Dhaka|second=n}}
7:47 PM. Click here to purge. The time is 19:47 in Dhaka, Bangladesh.
Code (Extra Parameters) Display
{{User:Pratyya Ghosh/Userboxes/Time|tz=+6|format=24|country=BD|bg-color = black|text-color = red}}
7:47 PM. Click here to purge. The time is 19:47:15 in Bangladesh.
{{User:Pratyya Ghosh/Userboxes/Time|tz=+6|format=24|country=BD|bg-color = black|text-color = cyan|country-color = red}}
7:47 PM. Click here to purge. The time is 19:47:15 in Bangladesh.
{{User:Pratyya Ghosh/Userboxes/Time|tz=+6|format=24|country=BD|region=Dhaka|bg-color = black|text-color = cyan|country-color = red|region-color = yellow}}
7:47 PM. Click here to purge. The time is 19:47:15 in Dhaka, Bangladesh.
{{User:Pratyya Ghosh/Userboxes/Time|tz=+6|format=24|country=BD|region=Dhaka|image = TIME}}
TIME The time is 19:47:15 in Dhaka, Bangladesh.
{{User:Pratyya Ghosh/Userboxes/Time|tz=+6|format=24|country=BD|region=Dhaka|image = TIME|image-bg-color=black|image-text-color=white}}
TIME The time is 19:47:15 in Dhaka, Bangladesh.
Code (Default) Display
{{User:Pratyya Ghosh/Userboxes/Time}}

See Also

[edit]