This template displays the weekday name of a user's timezone in both short and long format given user's preference. This template only shows day name. It doesn't show date. To use date please see User:Pratyya Ghosh/Date. If you want to use both then use these two templates accordingly.
{{User:Pratyya Ghosh/Day}}
supports 4 parameters.
tz
for timezone. It is the parameter for TimeZone (tz). Detailed possible inputs are given below. By default it is set to UTC.
format
for hour format. Possible entry is dn
for abbreviation for the day name. By default it is set to full weekday name.
tz-display
for display of bracketed users timezone. If used y
or Y
then another parameter will be added. For example {{User:Pratyya Ghosh/Day|tz=+6|tz-display=y}}
will show as Thursday (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/Day|tz=+6|purge-display=y}}
will show as Thursday (purge)
. By default it is not used.
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.
Code (Basic Parameters) |
Display
|
{{User:Pratyya Ghosh/Day|tz=+6|format=dn}} |
Thu
|
{{User:Pratyya Ghosh/Day|tz=+6}} |
Thu
|
{{User:Pratyya Ghosh/Day|tz=+6|tz-display=y}} |
Thursday (UTC+06:00)
|
{{User:Pratyya Ghosh/Day|tz=+5.30|purge-display=y}} |
Thursday (purge)
|
{{User:Pratyya Ghosh/Day|tz=+6|tz-display=y|purge-display =y}} |
Thursday (UTC+06:00) (purge)
|
{{User:Pratyya Ghosh/Day}} |
Wednesday
|