Template:StreamTime/doc
Jump to navigation
Jump to search
Template Documentation
This template is used to display the start time of a stream and automatically converts it to times for different cities based on their time zones. It's particularly useful for creating international schedules for livestreams or global events.
The time you input should be in London time, and the times for other cities will be automatically calculated.
Parameters
Below are the parameters and their descriptions:
- `1` (required): The hour of the stream start time (24-hour format). Default value is `19`. Input should be in London time.
- `2` (optional): The minute of the stream start time. Default value is `00`. Input should be in London time.
- `DST` (optional): Specifies whether daylight saving time (for the UK) is in effect. Accepts `yes` or `no`. Default value is `no`.
- `DST_US` (optional): Specifies whether daylight saving time (for the New York, US) is in effect. Accepts `yes` or `no`. Default value is `no`.
- `DST_CA` (optional): Specifies whether daylight saving time (for Vancouver, Canada) is in effect. Accepts `yes` or `no`. Default value is `no`.
- `add` (optional): Determines whether to display an additional city and its time. Accepts `yes` or `no`. Default value is `no`.
- `city` (optional): Custom city name (only effective when `add=yes`). Default city name is `Philadelphia`.
- `UTC` (optional): The UTC offset of the custom city (without daylight saving time). Default value is `-5`.
- `flag` (optional): Custom flag icon filename (only effective when `add=yes`). Default value is `Flag_of_the_US.svg`.
Usage
To use this template, call it in the following format:
{{StreamTime | 1 = Hour of the stream start time (24-hour format) | 2 = Minute of the stream start time | DST = Whether daylight saving time (yes/no) is applied for the UK | DST_US = Whether daylight saving time (yes/no) is applied for the New York, US | DST_CA = Whether daylight saving time (yes/no) is applied for Vancouver, Canada | add = Whether to include an additional city and time (yes/no) | city = Custom city name (if `add=yes`) | UTC = UTC offset of the custom city | flag = Custom flag filename (if `add=yes`) }}
Examples
Example 1: Basic usage
{{StreamTime|19|00}}
Output:
London: 19:00(UTC)
New York: 14:00 (UTC-5)
Vancouver: 11:00 (UTC-8)
Example 2: Custom additional city
{{StreamTime|1=10|2=30|UTC=+8|DST=yes|DST_US=yes|DST_CA=no|add=yes|city=Shanghai|flag=Flag_of_the_PRC.svg}}
Output:
Shanghai: 18:30 (UTC+8)
London: 10:30(UTC+1)
New York: 6:30 (UTC-4)
Vancouver: 2:30 (UTC-8)
Notes
- If the date in London corresponds with daylight saving time, set the `DST` parameter to `yes`.
- For the US and Canada, use `DST_US` and `DST_CA` respectively to account for their daylight saving time rules.
- When `add` is set to `no`, the `city` and `flag` parameters will not take effect.
See Also
- Template:StreamTime
- (Chinese version)