Difference between revisions of "Template:Event List"

From A3! Wiki
m
m
Line 30: Line 30:
 
===[[{{{name_en}}}]]===
 
===[[{{{name_en}}}]]===
 
<div class="eventbox">
 
<div class="eventbox">
[[File:{{#replace:{{{name_en|}}}|:|-}} event banner.png|frameless|link={{{name_en}}}|{{{name_en}}}]]</div> | }}
+
[[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>
 
<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> | }}
 
{{#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>
 
<li>'''Related Scouting:''' {{#cargo_query:tables= Scout|fields=CONCAT("[[Scouting Events#",Scout.name_en,"|",Scout.name_en,"]]")|where=Scout.event HOLDS "{{{name_en|}}}"}}</li>
<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>
+
<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>
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
 
<noinclude>
 
<noinclude>

Revision as of 04:01, 22 February 2018

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