Difference between revisions of "Template:Event List"

From A3! Wiki
({{{name_en}}})
Line 14: Line 14:
 
|extra=Wikitext
 
|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 29: Line 27:
 
|theme={{{theme|}}}
 
|theme={{{theme|}}}
 
|extra={{{extra|}}}
 
|extra={{{extra|}}}
}}
+
}}===[[{{{name_en}}}]]===
===[[{{{name_en}}}]]===
 
 
<div class="eventbox">
 
<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>
 
<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>
Line 36: Line 33:
 
<li>'''Related Scouting:''' {{#cargo_query:tables= Scout|fields=CONCAT("[[Scouting Events",CASE WHEN Scout.number < 44 THEN "/2017" WHEN Scout.number < 92 THEN "/2018" WHEN Scout.number < 140 THEN "/2019" ELSE "" END,"#",Scout.name_en,"|",Scout.name_en,"]]")|where=Scout.event HOLDS "{{{name_en|}}}"}}</li>
 
<li>'''Related Scouting:''' {{#cargo_query:tables= Scout|fields=CONCAT("[[Scouting Events",CASE WHEN Scout.number < 44 THEN "/2017" WHEN Scout.number < 92 THEN "/2018" WHEN Scout.number < 140 THEN "/2019" ELSE "" END,"#",Scout.name_en,"|",Scout.name_en,"]]")|where=Scout.event HOLDS "{{{name_en|}}}"}}</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}} }}
 
<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}} }}
</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>
+
</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>
</includeonly>
 

Revision as of 14:33, 27 February 2020

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