Difference between revisions of "Template:Event preview infobox"

From Tokyo Afterschool Summoners
Jump to: navigation, search
(centered the banner image)
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
     position: relative;
 
     position: relative;
 
     display: inline-block;
 
     display: inline-block;
}
 
 
td > .banner-image > a > img {
 
    padding: 0px;
 
    width: 425px;
 
    height: auto;
 
 
}
 
}
  
Line 68: Line 62:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
   <td colspan="2">{{#arraydefine:banner image array|{{#show:{{#var:event subobj}}|?Has banner image}}|;}}<div class="banner-image">{{#arrayprint:banner image array|<br>|@@@@@|[[File:@@@@@|link={{#var:event subobj}}]]}}</div>
+
   <td colspan="2">{{#arraydefine:banner image array|{{#show:{{#var:event subobj}}|?Has banner image}}|;}}<div class="banner-image">{{#arrayprint:banner image array|<br>|@@@@@|[[File:@@@@@|link={{#var:event subobj}}|425px|center]]}}</div>
 
   </td>{{#arraydefine:banner image array|}}
 
   </td>{{#arraydefine:banner image array|}}
 
</tr>
 
</tr>
Line 150: Line 144:
 
=== Examples ===
 
=== Examples ===
 
<pre>{{Event preview infobox
 
<pre>{{Event preview infobox
| en name = Honorless Great Summer Festival Struggle
+
| en name = Advance! Onsen Jamboree
 
| banners = 2
 
| banners = 2
 
}}
 
}}
 
</pre>
 
</pre>
 
{{Event preview infobox
 
{{Event preview infobox
| en name = Honorless Great Summer Festival Struggle
+
| en name = Advance! Onsen Jamboree
 
| banners = 2
 
| banners = 2
 
}}
 
}}
 
[[Category:Formatting templates]]</noinclude>
 
[[Category:Formatting templates]]</noinclude>

Latest revision as of 23:44, 27 July 2020

Description

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

Usage

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

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.
use jp 
For the title: uses the JP name if en name is provided if true; uses the EN name if jp name is provided if false.

Examples

{{Event preview infobox
| en name = Advance! Onsen Jamboree
| banners = 2
}}
Advance! Onsen Jamboree
Durations
Gacha From June 30, 2020 at 20:00 until August 11, 2020 at 23:59
Free Quests From July 03, 2020 at 18:00 until July 31, 2020 at 13:59
Main and Special Quests From July 03, 2020 at 18:00 until August 11, 2020 at 23:59
High Difficulty Quests From July 31, 2020 at 18:00 until August 07, 2020 at 23:59
Item Exchange From July 03, 2020 at 18:00 until August 15, 2020 at 23:59
Stam Campaign From July 31, 2020 at 18:00 until August 07, 2020 at 13:59