Difference between revisions of "Template:Event preview infobox"
Jump to navigation
Jump to search
Line 36: | Line 36: | ||
padding: 0px 7px 0px 7px; | padding: 0px 7px 0px 7px; | ||
} | } | ||
}}{{# | }}{{#vardefineecho:event subobj| | ||
{{#ask: | {{#ask: | ||
[[Has game context::Event]] | [[Has game context::Event]] | ||
Line 46: | Line 46: | ||
|searchlabel= | |searchlabel= | ||
}} | }} | ||
}}{{#if:{{#var:event subobj}}| | }}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="infobox"> | ||
<tr> | |||
{{#vardefine:banner image array|{{ | <th colspan="2">{{{en name|{{{jp name|???}}}}}}</th> | ||
[[File:{{#sub:{{#var:banner image array}}|0|{{#pos:{{#var:banner image array}}|;}}}}|400px|link={ | </tr> | ||
<tr> | |||
<td colspan="2">{{#vardefine:banner image array|{{{banner image|}}}}}{{#vardefine:banner image loop|1}}{{#while:|{{#var:banner image loop}}| | |||
[[File:{{#sub:{{#var:banner image array}}|0|{{#pos:{{#var:banner image array}}|;}}}}|400px|link={{{news link|}}}]] | |||
{{#if:{{#pos:{{#var:banner image array}}|;}}||{{#vardefine:banner image loop|}}}} | {{#if:{{#pos:{{#var:banner image array}}|;}}||{{#vardefine:banner image loop|}}}} | ||
{{#vardefine:banner image array|{{#sub:{{#var:banner image array}}|{{#expr:{{#pos:{{#var:banner image array}}|;}}+1}}}}}} | {{#vardefine:banner image array|{{#sub:{{#var:banner image array}}|{{#expr:{{#pos:{{#var:banner image array}}|;}}+1}}}}}} | ||
}} | }} | ||
</td> | |||
</tr> | |||
<tr> | |||
<th colspan="2">Durations</th> | |||
</tr> | |||
{{#vardefine:duration array|{{{duration|}}}}}{{#vardefine:duration loop|1}}{{#vardefine:duration loop|1}}{{#while:|{{#var:duration loop}}| | |||
{{#vardefine:duration array piece|{{#sub:{{#var:duration array}}|0|{{#pos:{{#var:duration array}}|;}}}}}} | |||
<tr> | |||
<td>{{#explode:{{#var:duration array piece}}|!|0}}</td> | |||
<td>From {{#explode:{{#explode:{{#var:duration array piece}}|!|1}}|->|0}} until {{#explode:{{#explode:{{#var:duration array piece}}|!|1}}|->|1}}</td> | |||
</tr> | |||
{{#if:{{#pos:{{#var:duration array}}|;}}||{{#vardefine:duration loop|}}}}{{#vardefine:duration array|{{#sub:{{#var:duration array}}|{{#expr:{{#pos:{{#var:duration array}}|;}}+1}}}}}} | |||
}} | |||
</table> | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Description == | == Description == | ||
This template displays. | This template displays. | ||
== Usage == | == Usage == | ||
<pre>{{ | <pre>{{Event preview infobox | ||
| en name = | |||
| jp name = | |||
}}</pre> | }}</pre> | ||
=== Parameters === | === Parameters === | ||
; en name = English name of event | |||
; jp name = Japanese name of event (optional if en name is provided; required if not). | |||
=== Examples === | === Examples === | ||
<pre> | <pre>{{Event preview infobox | ||
| en name = Honorless Great Summer Festival Struggle | |||
}} | |||
</pre> | </pre> | ||
{{Event preview infobox | {{Event preview infobox | ||
| en name = | | en name = Honorless Great Summer Festival Struggle | ||
}} | }} | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Revision as of 04:41, 13 July 2018
Description
This template displays.
Usage
{{Event preview infobox | en name = | jp name = }}
Parameters
- en name = English name of event
- jp name = Japanese name of event (optional if en name is provided; required if not).
Examples
{{Event preview infobox | en name = Honorless Great Summer Festival Struggle }}
Event Quest:Honorless Great Summer Festival Struggle#event0
Honorless Great Summer Festival Struggle | |
---|---|
[[File:|400px|link=]] | |
Durations | |
From until |