Difference between revisions of "Template:Event preview infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 65: Line 65:
   </td>{{#arraydefine:banner image array|}}
   </td>{{#arraydefine:banner image array|}}
</tr>
</tr>
{{#if:{{{show news link|}}}|<tr>
{{#if:{{{show news link|}}}|<!--<tr>
   <td>[{{#show:{{#var:event subobj}}|?Has news link}} News link]</td>
   <td>[{{#show:{{#var:event subobj}}|?Has news link}} News link]</td>
</tr>--><tr>
  <th colspan="2">[{{#show:{{#var:event subobj}}|?Has news link}} News Link]</th>
</tr>}}
</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|}}|

Revision as of 17:27, 25 April 2021

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
}}