Difference between revisions of "Template:Scout"
From A3! Wiki
m |
m |
||
Line 2: | Line 2: | ||
<div class="gachabox"><div class="gachainfo"><p>'''Scouting Period:''' {{#time: F j, Y H:i | {{{start}}}}} JST{{#if: {{{end|}}} | 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|}}} | 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> | ||
− | <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}} | + | {{#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}} |
+ | </ul></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}} | ||
</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.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=' '}} | ||
+ | }} | ||
</includeonly> | </includeonly> | ||
Line 15: | Line 19: | ||
|start=May 31 2017 00:00 | |start=May 31 2017 00:00 | ||
|end=June 4 2017 23:59 | |end=June 4 2017 23:59 | ||
− | | | + | }} |
− | | | + | {{Scout |
− | | | + | |banner=February Magic bitter & sweet gacha.png |
+ | |scoutname=February Magic bitter & sweet | ||
+ | |start=February 20 2017 16:00 | ||
+ | |end=February 24 2017 13:59 | ||
+ | |type=combined | ||
+ | |scout1=February Magic bitter | ||
+ | |scout2=February Magic sweet | ||
+ | }} | ||
+ | |||
{{clear}} | {{clear}} | ||
Revision as of 12:14, 9 January 2018
Example
MAGICAL DOG CIRCUS
Scouting Period: May 31, 2017 00:00 JST to June 4, 2017 23:59 JST
Featured Cards:
Error: No field named "character" found for the database table "Cards".
Error: Table CardFiles not found.
February Magic bitter & sweet
Scouting Period: February 20, 2017 16:00 JST to February 24, 2017 13:59 JST
Featured Cards:
Error: No field named "character" found for the database table "Cards".
Error: Table CardFiles not found.
Documentation
==={{{scoutname}}}=== {{#if: {{{banner|}}} | [[File:{{{banner}}}|frameless|right|link=|{{{scoutname}}}]] | }} <p>'''Scouting Period:''' {{#time: F j, Y H:i | {{{start}}}}} JST{{#if: {{{end|}}} | to {{#time: F j, Y H:i | {{{end}}}}} JST |, end date to be confirmed}}</p> {{#if: {{{relatedevent|}}} | <p>'''Related Event:''' {{#switch: {{{relatedevent|}}}|TBA=To Be Confirmed|{{{relatedevent}}}}}</p> | }} <p>'''Featured Cards:'''</p> <ul>{{#if: {{{ssr|}}} | <li>{{Rarity|rarity=SSR}} {{{ssr}}}</li> | }} {{#if: {{{ssr2|}}} | <li>{{Rarity|rarity=SSR}} {{{ssr2}}}</li> | }} {{#if: {{{sr|}}} | <li>{{Rarity|rarity=SR}} {{{sr}}}</li> | }} {{#if: {{{sr2|}}} | <li>{{Rarity|rarity=SR}} {{{sr2}}}</li> | }} {{#if: {{{r|}}} | <li>{{Rarity|rarity=R}} {{{r}}}</li> | }} {{#if: {{{r2|}}} | <li>{{Rarity|rarity=R}} {{{r2}}}</li> | }}</ul>
Blank template:
{{Scout |banner= |scoutname= |start= |end= |ssr= |sr= |r= |ssr2= |sr2= |r2= }}
Using the template (with notes):
{{Scout |banner=banner.png (include file extension) |scoutname=Jun Sleeps Event |start=4/20/2017 16:00 |end=April 20 2017 9pm |ssr="Handsome Squidward" [[Character Name]] |sr="Card Name" [[Character Name]] |r="Also a Card Name" [[Character Name]] |ssr2= you only need these if it's a double gacha |sr2= so delete these if there are only 1 set of cards |r2= bye}} {{clear}}