Difference between revisions of "Template:Event preview infobox"
Jump to navigation
Jump to search
Line 39: | Line 39: | ||
padding: 0px 7px 0px 7px; | padding: 0px 7px 0px 7px; | ||
} | } | ||
}}{{#vardefine:event subobj| | |||
{{#ask: | {{#ask: | ||
[[Has game context::Event]] | [[Has game context::Event]] | ||
Line 49: | Line 49: | ||
|searchlabel= | |searchlabel= | ||
}} | }} | ||
}}{{#vardefine:event display name| | |||
{{#show:{{#var:event subobj}}|?Has English name}} | |||
}}{{#ifeq:{{#var:event display name|}}|| | |||
{{#vardefine:event display name| | |||
{{#show:{{#var:event subobj}}|?Has Japanese name}} | |||
}} | |||
}} | |||
{{#vardefine:event display subname| | |||
{{#show:{{#var:event subobj}}|?Has English subtitle}} | |||
}}{{#ifeq:{{#var:event display subname|}}|| | |||
{{#vardefine:event display subname| | |||
{{#show:{{#var:event subobj}}|?Has Japanese subtitle}} | |||
}} | |||
}}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="preview-infobox" style="{{#ifeq:{{{floats|false}}}|true|float: right;}}"> | }}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="preview-infobox" style="{{#ifeq:{{{floats|false}}}|true|float: right;}}"> | ||
<tr> | <tr> | ||
<th colspan="2">[[{{#var:event subobj}}| | <th colspan="2">[[{{#var:event subobj}}|{{#var:event display name|?}}}} | ||
}}]]{{#if:{{#var:event display subtitle|}}|<br>~{{#var:event display subtitle|}}~}}</th> | |||
}}]] | |||
</tr> | </tr> | ||
<tr> | <tr> |
Revision as of 13:20, 31 March 2019
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 |