Template:Timeonly
| This template uses Lua: |
Usage
[edit]- Unnamed parameter 1: This parameter is the abbreviation of the time zone name for the template to use
|format=: This parameter is the format of the time (12 or 24 or ISO)|hide-tz=: This parameter hides time-zone as default, set ashide-tz=noto show the time-zone.|hide-refresh=: This parameter hides the [refresh] button.
Examples
[edit]{{Timeonly}}shows: 18:20 [refresh]{{Timeonly|CET}}shows: 20:20 [refresh]{{Timeonly|CET|format=12}}shows: 8:20 pm [refresh]{{Timeonly|CET|format=24}}shows: 20:20 [refresh]{{Timeonly|CET|format=ISO}}shows: 20:20 [refresh]{{Timeonly|CET|hide-tz=no}}shows: 20:20 CEST [refresh]{{Timeonly|CET|hide-tz=no|hide-refresh=yes}}shows: 20:20 CEST{{Timeonly|CET|hide-refresh=yes}}shows: 20:20
Parameters
[edit]Multiple units of time
[edit]| Type | Adjustable | Current | Last | Next |
|---|---|---|---|---|
| Date and time |
|
|
||
| Date only | ||||
| Month and year only |
|
| ||
| Time only |
|
|
||
| Banners |
|
|||
| Timestamp |
|
Single units of time
[edit]| Unit of time | Adjustable | Current | Last | Next |
|---|---|---|---|---|
| Second |
|
|||
| Minute |
|
|||
| Hour |
|
|||
| Week |
|
|||
| Day of Week |
|
|
||
| Month |
|
|
|
|
| Day of Month |
|
|||
| Year |
|
|
| |
| Day of Year |
|
|||
| Decade |
|
|
||
| Century |
|
|
||
| Millenium |
|
Date and time templates made for substitution
[edit]Parser functions
[edit]- mw:Special:MyLanguage/time permits a custom time specifier string, similar to the C date and time functions
Individual templates
[edit]- {{Calendar}}
- {{Calendar clock with Wikipedia stats}}
- {{Clock}}
- {{Digital clock}}
- {{Digital clock and date}}
- {{Infobox calendar date today}}