Difference between revisions of "Template:Event preview infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 87: Line 87:
   }}{{#vardefine:duration array piece end|
   }}{{#vardefine:duration array piece end|
     {{#explode:{{#var:duration array piece}}|->|1}}
     {{#explode:{{#var:duration array piece}}|->|1}}
   }}{{#if:{{#var:duration array piece start|}}||{{#vardefine:duration array piece start|{{#time:c|December 2nd, 2018}}}}
   }}{{#if:{{#var:duration array piece start|}}||{{#vardefine:duration array piece start|{{#time:c|December 2nd, 2016}}}}
   }}{{#if:{{#var:duration array piece end|}}||{{#vardefine:duration array piece end|{{#time:c|December 31st, 3000}}}}
   }}{{#if:{{#var:duration array piece end|}}||{{#vardefine:duration array piece end|{{#time:c|December 31st, 3000}}}}
   }}
   }}

Revision as of 03:21, 15 July 2018

Description

This template displays an event's information through an infobox.

Usage

{{Event preview infobox
| en name = 
| jp name =
| banners = 
| floats =
}}

Parameters

en name
English name of event
jp name
Japanese name of event (optional if en name is provided; required if not).
banners
Number of banners to show; defaults to 1. Provide 0 to show all.
floats
Determines if it should float to the right; only "true" enables it.

Examples

{{Event preview infobox
| en name = Honorless Great Summer Festival Struggle
| banners = 2
}}
Honorless Great Summer Festival Struggle
Durations
Gacha From July 05, 2018 at 09:00 until August 06, 2018 at 14:59
Event Main Quest From July 08, 2018 at 15:00 until August 06, 2018 at 14:59
Event Free Quest From July 08, 2018 at 15:00 until July 30, 2018 at 14:59
Bonus Quests From August 01, 2018 at 15:00 until August 06, 2018 at 14:59