Template:User time pro/doc

Safer nicotine wiki Tobacco Harm Reduction
Revision as of 23:42, 31 May 2020 by imported>Andrybak (Look and feel: document parameter "float")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template displays date and time with a plain icon on the left. The date-time format as well as look and feel of the userbox can be customized.

Modes

First parameter controls which mode is used for the displayed date and/or time.

Wikitext Result Mode description
{{User time pro}}

{{User time pro|default}}

Today is Friday, December 5, 2025
Current time is 06:36 UTC refresh
Default with no parameter, or set explicitly.
{{User time pro|iso}}
2025-12-05T06:36Z refresh
ISO 8601, Zulu time
{{User time pro|date}}
5 December 2025 refresh
Uses {{Date}}, supports its second parameter.
{{User time pro|date|YMD}}
2025 December 5 refresh
{{User time pro|date|MDY}}
December 5, 2025 refresh
{{User time pro|today}}
Today is Friday, December 5, 2025 refresh
First half of the default.
{{User time pro|time}}
Current time is 06:36 UTC refresh
Second half of the default.
{{User time pro|justtime}}
06:36 UTC refresh
{{User time pro|currenttime}}
06:36 refresh
Uses magic word {{CURRENTTIME}}
{{User time pro|format|[[Y "(year)"]]}} Arbitrary formatting using parser function {{#time}}.
{{User time pro|format|d F Y}}
05 December 2025 refresh

Look and feel

For look and feel customization, this userbox supports following parameters of Template:Userbox:

border-c
border color
border-s
border size
id
left box content
id-c
left box background color
id-fc
left box text color
info-c
info box background color
info-fc
info box text color
info-s
text size
info-a
horizontal text alignment
info-op
additional info box CSS
float
positioning of the userbox

Other parameters

Purge link can be hidden using |purge=no.