Template:Event: Difference between revisions
From A3! Wiki
m cargo_query: Add field alias and update string literal quotes, in preparation for Cargo extension upgrade |
m More quote fixes: Use {{#replace}} when possible; it doesn't work in some cases, and the reason why couldn't be determined, so we use double quotes for those cases only |
||
Line 7: | Line 7: | ||
'''Event Type:''' [[{{{type|}}} Events|{{{type|}}} Event]]<br> | '''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: {{{theme2|}}} | '''Theme Songs:''' [[{{{theme|}}}]], [[{{{theme2|}}}]]<br> | {{#if: {{{theme|}}} | '''Theme Song:''' [[{{{theme|}}}]]<br>|}} }} | '''Event Period:''' {{#time: F j, Y H:i | {{{start}}} }} JST to {{#time: F j, Y H:i | {{{end}}} }} JST<br> {{#if: {{{theme2|}}} | '''Theme Songs:''' [[{{{theme|}}}]], [[{{{theme2|}}}]]<br> | {{#if: {{{theme|}}} | '''Theme Song:''' [[{{{theme|}}}]]<br>|}} }} | ||
'''Event Scout:''' {{#cargo_query:tables= Scout|fields=CONCAT('[[Scouting Events','#',Scout.name_en,'|',Scout.name_en,']]')=Name|where=Scout.event HOLDS | '''Event Scout:''' {{#cargo_query:tables= Scout|fields=CONCAT('[[Scouting Events','#',Scout.name_en,'|',Scout.name_en,']]')=Name|where=Scout.event HOLDS "{{{name_en|}}}"|order by=Scout.number }} | ||
{{#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 | {{#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 dimensions=0|show filename=0|alt field=Caption|caption field=Caption|link field=Page Link|default=|order by=Cards.number}} | ||
'''Event Cards:''' {{#ifeq: {{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=IFNULL(Card_Files.icon1,Card_Files.icon2)|where=Cards.cardset='{{{name_en|}}}'|default=N/A}} | N/A | N/A | {{#tag:gallery|{{Featured Cards|{{{name_en}}}}}|mode=nolines|widths=100px}} }}<br> | '''Event Cards:''' {{#ifeq: {{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=IFNULL(Card_Files.icon1,Card_Files.icon2)|where=Cards.cardset='{{#replace:{{{name_en|}}}|'|\'}}'|default=N/A}} | N/A | N/A | {{#tag:gallery|{{Featured Cards|{{{name_en}}}}}|mode=nolines|widths=100px}} }}<br> | ||
'''Title Achievements:''' {{#ifeq: {{#cargo_query:tables=Event,Titles|join on=Event.name_en = Titles.event|fields=CONCAT('[[',title,'.png]]')=TitleImage|where=Titles.event = | '''Title Achievements:''' {{#ifeq: {{#cargo_query:tables=Event,Titles|join on=Event.name_en = Titles.event|fields=CONCAT('[[',title,'.png]]')=TitleImage|where=Titles.event ="{{{name_en|}}}"|default=N/A}} | N/A | N/A | {{#cargo_query:tables=Event,Titles|join on=Event.name_en = Titles.event|fields=CONCAT('[[File:',title,'.png|180px]] ',title)=TitleImage|where=Titles.event ="{{{name_en|}}}"|order by=Titles.number ASC|default=N/A}} }}<br> | ||
'''Previous Event:''' {{#cargo_query:tables=Event|fields=CONCAT('[[',name_en,']]')=Name|where=number={{{number|}}}-1}}<br> | '''Previous Event:''' {{#cargo_query:tables=Event|fields=CONCAT('[[',name_en,']]')=Name|where=number={{{number|}}}-1}}<br> | ||
'''Next Event:''' {{#cargo_query:tables=Event|fields=CONCAT('[[',name_en,']]')=Name|where=number={{{number|}}}+1|default=N/A}}<br> | '''Next Event:''' {{#cargo_query:tables=Event|fields=CONCAT('[[',name_en,']]')=Name|where=number={{{number|}}}+1|default=N/A}}<br> | ||
[[Category:Events]] [[Category:{{{type|}}} Events]] {{#switch: {{{type|}}} | Troupe = [[Category: {{{troupe|}}} Events]] | }} | [[Category:Events]] [[Category:{{{type|}}} Events]] {{#switch: {{{type|}}} | Troupe = [[Category: {{{troupe|}}} Events]] | }} | ||
{{clear}} | {{clear}} | ||
</includeonly> | </includeonly><noinclude> | ||
==Sample== | |||
{{Event | |||
|name_en=Wizard's Tea Party | |||
|name_jp=特集:魔法使いのお茶会 | |||
|number=159 | |||
|type=Seasonal | |||
|troupe=itaru | |||
|start=02/08/2023 16:00 | |||
|end=02/17/2023 13:59}} | |||
</noinclude> |
Revision as of 21:56, 7 January 2025
Sample

Event Information
Wizard's Tea Party (特集:魔法使いのお茶会 ) is event number 159 in A3! overall.
Event Type: Seasonal Event
Event Period: February 8, 2023 16:00 JST to February 17, 2023 13:59 JST
Event Scout: Magical Toys
Event Cards:
-
SSR Itaru Chigasaki
-
SR Guy
-
R Muku Sakisaka
Title Achievements: N/A
Previous Event: Invitation from 0
Next Event: Spotlight: Hanasaki Academy & Ouka High