Template:Event Story: Difference between revisions

From A3! Wiki
mNo edit summary
Tree (talk | contribs)
m cargo_query: Add field alias and update string literal quotes, in preparation for Cargo extension upgrade
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{Story
<includeonly>{{Story
|troupe={{{troupe|}}}
|troupe={{{troupe|}}}
|text={{#switch: {{{troupe|}}} | masumi | itaru | banri | juza | taichi | omi | azami | tsumugi | tasuku | hisoka | homare | azuma | guy = w | }}
|image={{Replace|Event Story {{{event|}}}.png}}
|image={{Replace|Event Story {{{event|}}}.png}}
|title={{{event|}}}{{#cargo_query:tables=Event|fields=IFNULL(CONCAT(' &mdash; ', name_jp),'')|where=name_en="{{{event|}}}"}}
|title={{{event|}}}{{#cargo_query:tables=Event|fields=IFNULL(CONCAT(' &mdash; ', name_jp),'')=Name|where=name_en='{{{event|}}}'}}
|chapters=<div>[[{{{event|}}}/Episode 1|Episode 1]]</div>
|chapters=<div>[[{{{event|}}}/Episode 1|Episode 1]]</div>
<div>[[{{{event|}}}/Episode 2|Episode 2]]</div>
<div>[[{{{event|}}}/Episode 2|Episode 2]]</div>
Line 15: Line 14:
<div>[[{{{event|}}}/Episode 10|Episode 10]]</div>
<div>[[{{{event|}}}/Episode 10|Episode 10]]</div>
<div>[[{{{event|}}}/Epilogue|Epilogue]]</div>
<div>[[{{{event|}}}/Epilogue|Epilogue]]</div>
{{#ifeq: {{#cargo_query:tables=Event|fields=type|where=name_en="{{{event|}}}"}} | Troupe | <div>'''SSR Backstage'''<br />{{#cargo_query:tables=Cards|fields=CONCAT('[[',Cards.chara,'/',Cards.cardname,'|',Cards.cardname,']]')|where=Cards.cardset='{{{event|}}}' AND Cards.rarity="SSR"}}</div> | }}
{{#ifeq: {{#cargo_query:tables=Event|fields=type|where=name_en='{{{event|}}}'}} | Troupe | <div>'''SSR Backstage'''<br />{{#cargo_query:tables=Cards|fields=CONCAT('[[',Cards.chara,'/',Cards.cardname,'|',Cards.cardname,']]')=Name|where=Cards.cardset='{{{event|}}}' AND Cards.rarity='SSR'}}</div> | }}
}}
}}
{{clear}}</includeonly><noinclude>
{{clear}}</includeonly><noinclude>
==Sample==
{{Event Story
{{Event Story
|event=mAnkai ApArtment!
|event=mAnkai ApArtment!

Latest revision as of 02:25, 31 December 2024