Difference between revisions of "Template:Event infobox"

1,205 bytes removed ,  04:54, 13 July 2018
no edit summary
Line 46: Line 46:
}}
}}
}}<!-- end subobject
}}<!-- end subobject
--><table id="event{{#eventnumber}}" class="infobox">
-->{{Event preview infobox
<tr>
| en name = {{{en name|}}}
  <th colspan="2">{{{en name|{{{jp name|???}}}}}}</th>
| jp name = {{{jp name|}}}
</tr>
| floats = true
<tr>
}}</includeonly><noinclude>
  <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|}}}}
{{#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>
== Description ==
== Description ==