Difference between revisions of "Template:Daylight saving offset/doc"
Jump to navigation
Jump to search
imported>BrandonXLF m (BrandonXLF moved page Template:Current daylight saving offset/doc to Template:Daylight saving offset/doc) |
imported>WOSlinker m (add {{documentation subpage}}) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{documentation subpage}} | |
| + | ==Usage== | ||
{{box|padding=0px|margin=0px|align=right|{{box|type=white|{{shortcut|DST|dst}}}}{{box|type=white|{{Lua|Module:Time}}}}}} | {{box|padding=0px|margin=0px|align=right|{{box|type=white|{{shortcut|DST|dst}}}}{{box|type=white|{{Lua|Module:Time}}}}}} | ||
This template uses [[Module:time]] to calculate the output. So most timezones should work. If a timezone doesn't work it needs to be added at [[Module:time]]. | This template uses [[Module:time]] to calculate the output. So most timezones should work. If a timezone doesn't work it needs to be added at [[Module:time]]. | ||
| Line 5: | Line 6: | ||
==Parameters== | ==Parameters== | ||
This template takes one unnamed parameter (or {{para|1}}) This parameter is the timezone abbrev. of the standard time of the timezone (eg. EST and not EDT) | This template takes one unnamed parameter (or {{para|1}}) This parameter is the timezone abbrev. of the standard time of the timezone (eg. EST and not EDT) | ||
| − | + | ==Notes== | |
When DST is active it produces 0 | When DST is active it produces 0 | ||
When DST isn't active it produces 1 | When DST isn't active it produces 1 | ||
| − | + | ==Examples== | |
*{{Current_daylight_saving_offset|MST}} (MST) | *{{Current_daylight_saving_offset|MST}} (MST) | ||
*{{Current_daylight_saving_offset|NZST}} (NZST) | *{{Current_daylight_saving_offset|NZST}} (NZST) | ||
*{{Current_daylight_saving_offset|IST}} (IST) | *{{Current_daylight_saving_offset|IST}} (IST) | ||
*{{Current_daylight_saving_offset|CET}} (CET) | *{{Current_daylight_saving_offset|CET}} (CET) | ||
| + | |||
| + | {{Time related templates}} | ||
Latest revision as of 16:10, 29 October 2018
| This is a documentation subpage for Template:Daylight saving offset. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
| This template uses Lua: |
This template uses Module:time to calculate the output. So most timezones should work. If a timezone doesn't work it needs to be added at Module:time.
Parameters
This template takes one unnamed parameter (or |1=) This parameter is the timezone abbrev. of the standard time of the timezone (eg. EST and not EDT)
Notes
When DST is active it produces 0
When DST isn't active it produces 1
Examples
- 0 (MST)
- 1 (NZST)
- 0 (IST)
- 0 (CET)