Template:EventCountdown
Test
{{
- if:
| {{
#vardefine: utc_timestamp_start | {{#time: U | }} }}{{ #vardefine: utc_timestamp_end | {{#time: U | }} }}
| {{
#vardefine: utc_timestamp_start | {{#time: U | 2018-07-20 17:00 JST }} }}{{ #vardefine: utc_timestamp_end | {{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_timestamp_start | {{ #expr: {{ #var: utc_timestamp_start }} + (9 * 60 * 60) }}
}}{{
- vardefine: jst_timestamp_end | {{ #expr: {{ #var: utc_timestamp_end }} + (9 * 60 * 60) }}
}}{{
- vardefine: utc_display_start | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_display_start | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_start }} }}
}}{{
- vardefine: utc_display_end | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_end }} }}
}}{{
- vardefine: jst_display_end | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_end }} }}
}}{{
- widget:EventCountdown
|text=Ends in |expired=Event has ended. |utc={{ #var: utc_timestamp_start }} |jst={{ #var: jst_timestamp_start }} |utc_time={{ #var: utc_display_start }} |jst_time={{ #var: jst_display_start }} |text_start=Starts in |text_end =Ends in |text_after=Event has ended. |utc_start={{ #var: utc_timestamp_start }} |utc_end ={{ #var: utc_timestamp_end }} |jst_start={{ #var: utc_timestamp_start }} |jst_end ={{ #var: utc_timestamp_end }} |utc_display_start={{ #var: utc_display_start }} |utc_display_end ={{ #var: utc_display_end }} |jst_display_start={{ #var: jst_display_start }} |jst_display_end ={{ #var: jst_display_end }} }}{{
- if: {{ #var: TemplateLocalTimeHelperCalled | }}
| |{{#widget:LocalTimeHelper}} }}{{
- vardefine: TemplateLocalTimeHelperCalled | true
}}
{{
- if:
| {{
#vardefine: utc_timestamp_start | {{#time: U | }} }}{{ #vardefine: utc_timestamp_end | {{#time: U | }} }}
| {{
#vardefine: utc_timestamp_start | {{#time: U | 2019-08-31 03:00 JST }} }}{{ #vardefine: utc_timestamp_end | {{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_timestamp_start | {{ #expr: {{ #var: utc_timestamp_start }} + (9 * 60 * 60) }}
}}{{
- vardefine: jst_timestamp_end | {{ #expr: {{ #var: utc_timestamp_end }} + (9 * 60 * 60) }}
}}{{
- vardefine: utc_display_start | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_display_start | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_start }} }}
}}{{
- vardefine: utc_display_end | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_end }} }}
}}{{
- vardefine: jst_display_end | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_end }} }}
}}{{
- widget:EventCountdown
|text=Party in |expired=Event has ended. |utc={{ #var: utc_timestamp_start }} |jst={{ #var: jst_timestamp_start }} |utc_time={{ #var: utc_display_start }} |jst_time={{ #var: jst_display_start }} |text_start=Starts in |text_end =Party in |text_after=Event has ended. |utc_start={{ #var: utc_timestamp_start }} |utc_end ={{ #var: utc_timestamp_end }} |jst_start={{ #var: utc_timestamp_start }} |jst_end ={{ #var: utc_timestamp_end }} |utc_display_start={{ #var: utc_display_start }} |utc_display_end ={{ #var: utc_display_end }} |jst_display_start={{ #var: jst_display_start }} |jst_display_end ={{ #var: jst_display_end }} }}{{
- if: {{ #var: TemplateLocalTimeHelperCalled | }}
| |{{#widget:LocalTimeHelper}} }}{{
- vardefine: TemplateLocalTimeHelperCalled | true
}}
{{
- if:
| {{
#vardefine: utc_timestamp_start | {{#time: U | }} }}{{ #vardefine: utc_timestamp_end | {{#time: U | }} }}
| {{
#vardefine: utc_timestamp_start | {{#time: U | 2018-03-31 20:59 JST }} }}{{ #vardefine: utc_timestamp_end | {{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_timestamp_start | {{ #expr: {{ #var: utc_timestamp_start }} + (9 * 60 * 60) }}
}}{{
- vardefine: jst_timestamp_end | {{ #expr: {{ #var: utc_timestamp_end }} + (9 * 60 * 60) }}
}}{{
- vardefine: utc_display_start | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_display_start | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_start }} }}
}}{{
- vardefine: utc_display_end | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_end }} }}
}}{{
- vardefine: jst_display_end | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_end }} }}
}}{{
- widget:EventCountdown
|text=Ends in |expired=Event has ended. |utc={{ #var: utc_timestamp_start }} |jst={{ #var: jst_timestamp_start }} |utc_time={{ #var: utc_display_start }} |jst_time={{ #var: jst_display_start }} |text_start=Starts in |text_end =Ends in |text_after=Event has ended. |utc_start={{ #var: utc_timestamp_start }} |utc_end ={{ #var: utc_timestamp_end }} |jst_start={{ #var: utc_timestamp_start }} |jst_end ={{ #var: utc_timestamp_end }} |utc_display_start={{ #var: utc_display_start }} |utc_display_end ={{ #var: utc_display_end }} |jst_display_start={{ #var: jst_display_start }} |jst_display_end ={{ #var: jst_display_end }} }}{{
- if: {{ #var: TemplateLocalTimeHelperCalled | }}
| |{{#widget:LocalTimeHelper}} }}{{
- vardefine: TemplateLocalTimeHelperCalled | true
}}
{{
- if:
| {{
#vardefine: utc_timestamp_start | {{#time: U | }} }}{{ #vardefine: utc_timestamp_end | {{#time: U | }} }}
| {{
#vardefine: utc_timestamp_start | {{#time: U | 2018-03-31 20:59 JST }} }}{{ #vardefine: utc_timestamp_end | {{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_timestamp_start | {{ #expr: {{ #var: utc_timestamp_start }} + (9 * 60 * 60) }}
}}{{
- vardefine: jst_timestamp_end | {{ #expr: {{ #var: utc_timestamp_end }} + (9 * 60 * 60) }}
}}{{
- vardefine: utc_display_start | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_display_start | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_start }} }}
}}{{
- vardefine: utc_display_end | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_end }} }}
}}{{
- vardefine: jst_display_end | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_end }} }}
}}{{
- widget:EventCountdown
|text=Ends in |expired=Magnafest has ended. |utc={{ #var: utc_timestamp_start }} |jst={{ #var: jst_timestamp_start }} |utc_time={{ #var: utc_display_start }} |jst_time={{ #var: jst_display_start }} |text_start=Starts in |text_end =Ends in |text_after=Magnafest has ended. |utc_start={{ #var: utc_timestamp_start }} |utc_end ={{ #var: utc_timestamp_end }} |jst_start={{ #var: utc_timestamp_start }} |jst_end ={{ #var: utc_timestamp_end }} |utc_display_start={{ #var: utc_display_start }} |utc_display_end ={{ #var: utc_display_end }} |jst_display_start={{ #var: jst_display_start }} |jst_display_end ={{ #var: jst_display_end }} }}{{
- if: {{ #var: TemplateLocalTimeHelperCalled | }}
| |{{#widget:LocalTimeHelper}} }}{{
- vardefine: TemplateLocalTimeHelperCalled | true
}}
{{
- if: 2018-12-18 01:30 JST
| {{
#vardefine: utc_timestamp_start | {{#time: U | 2018-12-18 01:30 JST }} }}{{ #vardefine: utc_timestamp_end | {{#time: U | 2017-12-18 19:30 JST }} }}
| {{
#vardefine: utc_timestamp_start | {{#time: U | }} }}{{ #vardefine: utc_timestamp_end | {{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_timestamp_start | {{ #expr: {{ #var: utc_timestamp_start }} + (9 * 60 * 60) }}
}}{{
- vardefine: jst_timestamp_end | {{ #expr: {{ #var: utc_timestamp_end }} + (9 * 60 * 60) }}
}}{{
- vardefine: utc_display_start | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_display_start | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_start }} }}
}}{{
- vardefine: utc_display_end | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_end }} }}
}}{{
- vardefine: jst_display_end | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_end }} }}
}}{{
- widget:EventCountdown
|text=Ends in |expired=Event has ended. |utc={{ #var: utc_timestamp_start }} |jst={{ #var: jst_timestamp_start }} |utc_time={{ #var: utc_display_start }} |jst_time={{ #var: jst_display_start }} |text_start=Starts in |text_end =Ends in |text_after=Event has ended. |utc_start={{ #var: utc_timestamp_start }} |utc_end ={{ #var: utc_timestamp_end }} |jst_start={{ #var: utc_timestamp_start }} |jst_end ={{ #var: utc_timestamp_end }} |utc_display_start={{ #var: utc_display_start }} |utc_display_end ={{ #var: utc_display_end }} |jst_display_start={{ #var: jst_display_start }} |jst_display_end ={{ #var: jst_display_end }} }}{{
- if: {{ #var: TemplateLocalTimeHelperCalled | }}
| |{{#widget:LocalTimeHelper}} }}{{
- vardefine: TemplateLocalTimeHelperCalled | true
}}
{{
- if: 2018-12-18 02:30 JST
| {{
#vardefine: utc_timestamp_start | {{#time: U | 2018-12-18 02:30 JST }} }}{{ #vardefine: utc_timestamp_end | {{#time: U | 2017-12-18 20:30 JST }} }}
| {{
#vardefine: utc_timestamp_start | {{#time: U | }} }}{{ #vardefine: utc_timestamp_end | {{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_timestamp_start | {{ #expr: {{ #var: utc_timestamp_start }} + (9 * 60 * 60) }}
}}{{
- vardefine: jst_timestamp_end | {{ #expr: {{ #var: utc_timestamp_end }} + (9 * 60 * 60) }}
}}{{
- vardefine: utc_display_start | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_display_start | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_start }} }}
}}{{
- vardefine: utc_display_end | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_end }} }}
}}{{
- vardefine: jst_display_end | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_end }} }}
}}{{
- widget:EventCountdown
|text=Ends in |expired=Event has ended. |utc={{ #var: utc_timestamp_start }} |jst={{ #var: jst_timestamp_start }} |utc_time={{ #var: utc_display_start }} |jst_time={{ #var: jst_display_start }} |text_start=Starts in |text_end =Ends in |text_after=Event has ended. |utc_start={{ #var: utc_timestamp_start }} |utc_end ={{ #var: utc_timestamp_end }} |jst_start={{ #var: utc_timestamp_start }} |jst_end ={{ #var: utc_timestamp_end }} |utc_display_start={{ #var: utc_display_start }} |utc_display_end ={{ #var: utc_display_end }} |jst_display_start={{ #var: jst_display_start }} |jst_display_end ={{ #var: jst_display_end }} }}{{
- if: {{ #var: TemplateLocalTimeHelperCalled | }}
| |{{#widget:LocalTimeHelper}} }}{{
- vardefine: TemplateLocalTimeHelperCalled | true
}}
{{
- if: 2018-12-18 03:30 JST
| {{
#vardefine: utc_timestamp_start | {{#time: U | 2018-12-18 03:30 JST }} }}{{ #vardefine: utc_timestamp_end | {{#time: U | 2017-12-18 21:30 JST }} }}
| {{
#vardefine: utc_timestamp_start | {{#time: U | }} }}{{ #vardefine: utc_timestamp_end | {{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_timestamp_start | {{ #expr: {{ #var: utc_timestamp_start }} + (9 * 60 * 60) }}
}}{{
- vardefine: jst_timestamp_end | {{ #expr: {{ #var: utc_timestamp_end }} + (9 * 60 * 60) }}
}}{{
- vardefine: utc_display_start | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_start }} }}
}}{{
- vardefine: jst_display_start | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_start }} }}
}}{{
- vardefine: utc_display_end | {{#time: H:i "UTC", F j, Y | @{{ #var: utc_timestamp_end }} }}
}}{{
- vardefine: jst_display_end | {{#time: H:i "JST", F j, Y | @{{ #var: jst_timestamp_end }} }}
}}{{
- widget:EventCountdown
|text=Ends in |expired=Event has ended. |utc={{ #var: utc_timestamp_start }} |jst={{ #var: jst_timestamp_start }} |utc_time={{ #var: utc_display_start }} |jst_time={{ #var: jst_display_start }} |text_start=Starts in |text_end =Ends in |text_after=Event has ended. |utc_start={{ #var: utc_timestamp_start }} |utc_end ={{ #var: utc_timestamp_end }} |jst_start={{ #var: utc_timestamp_start }} |jst_end ={{ #var: utc_timestamp_end }} |utc_display_start={{ #var: utc_display_start }} |utc_display_end ={{ #var: utc_display_end }} |jst_display_start={{ #var: jst_display_start }} |jst_display_end ={{ #var: jst_display_end }} }}{{
- if: {{ #var: TemplateLocalTimeHelperCalled | }}
| |{{#widget:LocalTimeHelper}} }}{{
- vardefine: TemplateLocalTimeHelperCalled | true
}}