Difference between revisions of "Template:Event List"

From A3! Wiki
m
m
Line 28: Line 28:
 
|theme={{{theme|}}}
 
|theme={{{theme|}}}
 
}}
 
}}
 
+
===[[{{{name_en}}}]]===
{{#switch: {{{type|}}} | Troupe = [[Category: {{{troupe|}}} Events]] | Seasonal = [[Category: Seasonal Events]] | Etude = [[Category: Etude Events]] | Support = [[Category: Support Events]]}}
+
<div class="eventbox">
 
+
[[File:{{#replace:{{{name_en|}}}|:|-}} event banner.png|frameless|link={{{name_en}}}|{{{name_en}}}]]</div> | }}
<!--
+
<div class="eventinfo"><ul><li>'''Event Period:''' {{#if: {{{start|}}} | {{#time: F j, Y H:i | {{{start}}}}} JST |TBA}}{{#if: {{{end|}}} | &nbsp;to {{#time: F j, Y H:i | {{{end}}}}} JST |}}</li>
{| class="wikitable a3table" style="text-align: center; margin: auto;"
+
{{#if: {{{countdown|}}} | <li>'''Countdown:''' {{{countdown}}}</li> | }}
|-
+
<li>'''Related Scouting:''' {{#cargo_query:tables= Scout|fields=CONCAT("[[Scouting Events#",Scout.name_en,"|",Scout.name_en,"]]")|where=Scout.event HOLDS "{{{name_en|}}}"}}</li>
! Previous !! {{{number|}}}<br />{{{name_en|}}}{{#if: {{{name_jp|}}}|・{{{name_jp}}}|}} !! Next
+
<li>'''Featured:''' {{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=Card_Files.icon1, CONCAT(Cards.rarity, ' ', Cards.chara) = Caption, CONCAT('Cards/', Cards.chara, '/', Cards.cardname) = Page Link|where=Cards.cardset="{{{name_en}}}"|format=gallery|mode=nolines|image width=100px|show bytes=0|show filename=0||alt field=Caption|caption field=Caption|link field=Page Link|default=N/A<br>}}</li></ul></div>
|-
+
</div>
| {{#cargo_query:tables=Event|fields=CONCAT("[[",name_en,"|<]]")|where=number={{{number|}}}-1}} || [[File:{{{banner|}}}|500px]] || {{#cargo_query:tables=Event|fields=CONCAT("[[",name_en,"|>]]")|where=number={{{number|}}}+1|format=text|default=}}
 
|-
 
| {{#cargo_query:tables=Event|fields=CONCAT("[[",name_en,"]]")|where=number={{{number|}}}-1}} || '''{{{type|}}} Event'''{{#if: {{{troupe|}}} | <br />{{{troupe|}}} Troupe}} || {{#cargo_query:tables=Event|fields=CONCAT("[[",name_en,"]]")|where=number={{{number|}}}+1|format=text|default=}}
 
|}-->
 
[[File:{{#replace:{{{name_en|}}}|:|-}} event banner.png|right|500px]]
 
=Event Information=
 
'''{{{name_en|}}}'''{{#if: {{{name_alt|}}} | , alt. "{{{name_alt|}}}" }}{{#if: {{{name_lit|}}} | , lit. "{{{name_lit|}}}" }} {{#if: {{{name_jp|}}} |({{{name_jp}}} ''{{{name_ro|}}}'')|}} is event number {{{number}}} in A3! overall. {{#if: {{{extra|}}}|{{{extra|}}}|}}
 
 
 
'''Event Type:''' [[{{{type|}}} Events|{{{type|}}} Event]]<br>
 
'''Event Period:''' {{#time: F j, Y H:i | {{{start}}} }} JST to {{#time: F j, Y H:i | {{{end}}} }} JST<br>{{#if: {{{theme|}}} | '''Theme Song:''' [[{{{theme|}}}]]<br>|}}
 
'''Event Scout:''' {{#cargo_query:tables= Scout|fields=CONCAT("[[Scouting Events#",Scout.name_en,"|",Scout.name_en,"]]")|where=Scout.event HOLDS "{{{name_en|}}}" }}
 
{{#cargo_query:tables=Scout,Cards,Card_Files|join on=Cards.cardset = Scout.name_en, Cards.number = Card_Files.number|fields=Card_Files.icon1, CONCAT(Cards.rarity, ' ', Cards.chara) = Caption, CONCAT('Cards/', Cards.chara, '/', Cards.cardname) = Page Link|where=Scout.event HOLDS "{{{name_en|}}}" |format=gallery|mode=nolines|image width=100px|show bytes=0|show filename=0|alt field=Caption|caption field=Caption|link field=Page Link|default=|order by=Cards.number}}
 
'''Event Cards:''' {{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=Card_Files.icon1, CONCAT(Cards.rarity, ' ', Cards.chara) = Caption, CONCAT('Cards/', Cards.chara, '/', Cards.cardname) = Page Link|where=Cards.cardset="{{{name_en}}}"|format=gallery|mode=nolines|image width=100px|show bytes=0|show filename=0||alt field=Caption|caption field=Caption|link field=Page Link|default=N/A<br>}}
 
'''Previous Event:''' {{#cargo_query:tables=Event|fields=CONCAT("[[",name_en,"]]")|where=number={{{number|}}}-1}}<br>
 
'''Next Event:''' {{#cargo_query:tables=Event|fields=CONCAT("[[",name_en,"]]")|where=number={{{number|}}}+1|default=N/A}}<br>
 
[[Category:Events]] [[Category:{{{type|}}} Events]]
 
{{clear}}
 
 
</includeonly>
 
</includeonly>
 +
<noinclude>
 +
<noinclude>

Revision as of 03:52, 22 February 2018

This template defines the table "Event". View table.