Difference between revisions of "Template:Event List"

From A3! Wiki
m (added theme2 field for mixed troupe plays)
 
(57 intermediate revisions by 4 users not shown)
Line 12: Line 12:
 
|troupe=String
 
|troupe=String
 
|theme=String
 
|theme=String
|banner=File
+
|theme2=String
 +
|extra=Wikitext
 
}}
 
}}
</noinclude>
+
</noinclude><includeonly>{{#cargo_store:_table=Event
<includeonly>
 
{{#cargo_store:_table=Event
 
 
|number={{{number|}}}
 
|number={{{number|}}}
 
|name_jp={{{name_jp|}}}
 
|name_jp={{{name_jp|}}}
Line 28: Line 27:
 
|troupe={{{troupe|}}}
 
|troupe={{{troupe|}}}
 
|theme={{{theme|}}}
 
|theme={{{theme|}}}
|banner={{{banner|}}}
+
|theme2={{{theme2|}}}
}}
+
|extra={{{extra|}}}
 
+
}}===[[{{{name_en}}}]]===
{{#switch: {{{type|}}} | Troupe = [[Category: {{{troupe|}}} Events]] | Seasonal = [[Category: Seasonal Events]] | Etude = [[Category: Etude Events]] | Support = [[Category: Support Events]]}}
+
<div class="eventbox">
 
+
<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>
<!--
+
{{#if: {{{countdown|}}} | <li>'''Countdown:''' {{{countdown}}}</li> | }}
{| class="wikitable a3table" style="text-align: center; margin: auto;"
+
<li>'''Related Scouting:''' {{#cargo_query:tables=Scout|fields=CONCAT("[[Scouting Events","#",Scout.name_en,"|",Scout.name_en,"]]")|where=Scout.event HOLDS "{{{name_en|}}}"|order by=Scout.number ASC}}</li>
|-
+
<li>'''Featured:''' {{#ifeq: {{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=Card_Files.icon1|where=Cards.cardset="{{{name_en|}}}"|default=N/A}} | N/A | N/A | {{#tag:gallery|{{Featured Cards|{{{name_en}}}}}|mode=nolines|widths=100px}} }}
! Previous !! {{{number|}}}<br />{{{name_en|}}}{{#if: {{{name_jp|}}}|・{{{name_jp}}}|}} !! Next
+
</li></ul></div><div class="eventbanner">{{#ifeq: {{{type|}}} | Rerelease | [[File:2018-12 event banner.png|frameless|link={{{name_en}}}|{{{name_en}}}]] |[[File:{{Replace|{{{name_en|}}}}} event banner.png|frameless|link={{{name_en}}}|{{{name_en}}}]]}}</div></div></includeonly>
|-
 
| {{#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:{{{banner|}}}|right|500px]]
 
'''{{{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:''' [[Music/{{{theme|}}}|{{{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,CardFiles|join on=Cards.cardset = Scout.name_en, Cards.number = CardFiles.number|fields=CONCAT("[[File:",CardFiles.icon1,"|33px]]"),Cards.rarity = Rarity,Cards.character = Character,Cards.cardname = Card Name|where=Scout.event HOLDS "{{{name_en|}}}" |format=ul|default=}}<br>
 
'''Event Cards:''' {{#cargo_query:tables=Cards,CardFiles|join on=Cards.number = CardFiles.number|fields=CONCAT("[[File:",CardFiles.icon1,"|33px]]"),Cards.rarity = Rarity, Cards.character = Character,Cards.cardname = Card Name|where=Cards.cardset="{{{name_en}}}"|order by=Cards.number|format=ul|default=}}
 
{{clear}}
 
</includeonly>
 

Latest revision as of 07:53, 31 March 2021

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