Difference between revisions of "Template:Event preview infobox"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) |
|||
Line 67: | Line 67: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="2">{{#vardefine:banner image | <td colspan="2">{{#vardefine:banner image|{{#show:{{#var:event subobj}}|?Has banner image}}}}<div class="banner-image">[[File:{{#var:banner image}}|link={{#var:event subobj}}]]</div> | ||
<div class="banner-image"> | |||
</td> | </td> | ||
</tr> | </tr> | ||
{{#if:{{{show news link|}}}|<tr> | |||
<td>[{{#show:{{#var:event subobj}}|?Has news link}} News link]</td> | |||
</tr>}} | |||
{{#vardefine:duration array|{{#show:{{#var:event subobj}}|?Has duration date}}}}{{#if:{{#var:duration array|}}| | {{#vardefine:duration array|{{#show:{{#var:event subobj}}|?Has duration date}}}}{{#if:{{#var:duration array|}}| | ||
<tr> | <tr> |
Revision as of 07:49, 25 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 = Honorless Great Summer Festival Struggle | banners = 2 }}
Honorless Great Summer Festival Struggle | |
---|---|
Durations | |
From July 05, 2018 at 18:00 until August 06, 2018 at 23:59 | |
From July 09, 2018 at 00:00 until August 06, 2018 at 23:59 | |
From July 09, 2018 at 00:00 until July 30, 2018 at 23:59 | |
From August 02, 2018 at 00:00 until August 06, 2018 at 23:59 |