Difference between revisions of "Template:Scout"

From A3! Wiki
Line 2: Line 2:
 
<div class="gachabox"><div class="gachainfo"><p>'''Scouting Period:''' {{#time: F j, Y H:i | {{{start}}}}} JST{{#if: {{{end|}}} | &nbsp;to {{#time: F j, Y H:i | {{{end}}}}} JST |, end date to be confirmed}}</p> {{#if: {{{countdown|}}} | <p>'''Countdown:''' {{{countdown}}}</p> | }} {{#if: {{{relatedevent|}}} | <p>'''Related Event:''' {{#switch: {{{relatedevent|}}}|TBA=To Be Confirmed|{{{relatedevent}}}}}</p> | }} {{#if: {{{note|}}} | <p>'''Note:''' {{{note}}}</p> | }}
 
<div class="gachabox"><div class="gachainfo"><p>'''Scouting Period:''' {{#time: F j, Y H:i | {{{start}}}}} JST{{#if: {{{end|}}} | &nbsp;to {{#time: F j, Y H:i | {{{end}}}}} JST |, end date to be confirmed}}</p> {{#if: {{{countdown|}}} | <p>'''Countdown:''' {{{countdown}}}</p> | }} {{#if: {{{relatedevent|}}} | <p>'''Related Event:''' {{#switch: {{{relatedevent|}}}|TBA=To Be Confirmed|{{{relatedevent}}}}}</p> | }} {{#if: {{{note|}}} | <p>'''Note:''' {{{note}}}</p> | }}
 
<p>'''Featured Cards:'''</p>
 
<p>'''Featured Cards:'''</p>
{{#ifeq: {{{type|}}} | combined | <ul>{{#cargo_query:tables=Scout,Cards|join on=Scout.name_en = Cards.cardset|fields=Cards.rarity,Cards.cardname,Cards.character|where=Scout.name_en="{{{scout1|}}}" OR Scout.name_en="{{{scout2|}}}"|order by=rarity DESC|format=template|template=Scout/Cards|named args=yes}}
+
{{#ifeq: {{{type|}}} | combined | <ul>{{#cargo_query:tables=Scout,Cards|join on=Scout.name_en = Cards.cardset|fields=Cards.rarity,Cards.cardname,Cards.chara|where=Scout.name_en="{{{scout1|}}}" OR Scout.name_en="{{{scout2|}}}"|order by=rarity DESC|format=template|template=Scout/Cards|named args=yes}}
 
</ul></div>
 
</ul></div>
 
{{#if: {{{banner|}}} | [[File:{{{banner}}}|frameless|link=|{{{scoutname}}}]] | }}</div>  
 
{{#if: {{{banner|}}} | [[File:{{{banner}}}|frameless|link=|{{{scoutname}}}]] | }}</div>  
{{#cargo_query:tables=Scout,Cards,CardFiles|join on=Scout.name_en = Cards.cardset, Cards.number = CardFiles.number|fields=Cards.rarity,Cards.character,CardFiles.image1,CONCAT(Cards.rarity,' [[',Cards.character,']]')=caption|where=Scout.name_en="{{{scout1|}}}" OR Scout.name_en="{{{scout2|}}}"|order by=rarity DESC|format=gallery|mode=nolines|show bytes=0|show filename=0|caption field=caption|default=' '}} | <ul>{{#cargo_query:tables=Scout,Cards|join on=Scout.name_en = Cards.cardset|fields=Cards.rarity,Cards.cardname,Cards.character|where=Scout.name_en="{{{scoutname|}}}"|order by=rarity DESC|format=template|template=Scout/Cards|named args=yes}}
+
{{#cargo_query:tables=Scout,Cards,CardFiles|join on=Scout.name_en = Cards.cardset, Cards.number = CardFiles.number|fields=Cards.rarity,Cards.chara,CardFiles.image1,CONCAT(Cards.rarity,' [[',Cards.chara,']]')=caption|where=Scout.name_en="{{{scout1|}}}" OR Scout.name_en="{{{scout2|}}}"|order by=rarity DESC|format=gallery|mode=nolines|show bytes=0|show filename=0|caption field=caption|default=' '}} | <ul>{{#cargo_query:tables=Scout,Cards|join on=Scout.name_en = Cards.cardset|fields=Cards.rarity,Cards.cardname,Cards.chara|where=Scout.name_en="{{{scoutname|}}}"|order by=rarity DESC|format=template|template=Scout/Cards|named args=yes}}
 
</ul></div>
 
</ul></div>
 
{{#if: {{{banner|}}} | [[File:{{{banner}}}|frameless|link=|{{{scoutname}}}]] | }}</div>
 
{{#if: {{{banner|}}} | [[File:{{{banner}}}|frameless|link=|{{{scoutname}}}]] | }}</div>
{{#cargo_query:tables=Scout,Cards,CardFiles|join on=Scout.name_en = Cards.cardset, Cards.number = CardFiles.number|fields=Cards.rarity,Cards.character,CardFiles.image1,CONCAT(Cards.rarity,' [[',Cards.character,']]')=caption|where=Scout.name_en="{{{scoutname|}}}"|order by=rarity DESC|format=gallery|mode=nolines|show bytes=0|show filename=0|caption field=caption|default=' '}}
+
{{#cargo_query:tables=Scout,Cards,CardFiles|join on=Scout.name_en = Cards.cardset, Cards.number = CardFiles.number|fields=Cards.rarity,Cards.chara,CardFiles.image1,CONCAT(Cards.rarity,' [[',Cards.chara,']]')=caption|where=Scout.name_en="{{{scoutname|}}}"|order by=rarity DESC|format=gallery|mode=nolines|show bytes=0|show filename=0|caption field=caption|default=' '}}
 
}}
 
}}
 
</includeonly>
 
</includeonly>
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Revision as of 13:45, 6 February 2018