Template:Event Story: Difference between revisions
From A3! Wiki
mNo edit summary |
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|}}} | ||
|image={{Replace|Event Story {{{event|}}}.png}} | |image={{Replace|Event Story {{{event|}}}.png}} | ||
|title={{{event|}}}{{#cargo_query:tables=Event|fields=IFNULL(CONCAT(' — ', name_jp),'')|where=name_en= | |title={{{event|}}}{{#cargo_query:tables=Event|fields=IFNULL(CONCAT(' — ', 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= | {{#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! |