Difference between revisions of "Template:Scout"

From A3! Wiki
(Undo revision 38483 by Yukari25mbcms (talk))
(Tag: Undo)
 
(39 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>==={{{scoutname}}}===
==={{{scoutname}}}===
+
<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> | }}
{{#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>
 
<p>'''Featured Cards:'''</p>
<ul>
+
{{#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}}
<li>SSR {{{ssr}}}</li>
+
</ul></div>
{{#if: {{{ssr2|}}} | <li>SSR {{{ssr2}}}</li> | }}
+
{{#if: {{{banner|}}} | [[File:{{{banner}}}|frameless|{{{scoutname}}}]] | }}</div>  
<li>SR {{{sr}}}</li>
+
{{#cargo_query:tables=Scout,Cards,Card_Files|join on=Scout.name_en = Cards.cardset, Cards.number = Card_Files.number|fields=Cards.rarity,Cards.chara,Card_Files.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}}
{{#if: {{{sr2|}}} | <li>SR {{{sr2}}}</li> | }}
+
</ul></div>
<li>R {{{r}}}</li>
+
{{#if: {{{banner|}}} | [[File:{{{banner}}}|frameless|{{{scoutname}}}]] | }}</div>
{{#if: {{{r2|}}} | <li>R {{{r2}}}</li> | }}
+
{{#cargo_query:tables=Scout,Cards,Card_Files|join on=Scout.name_en = Cards.cardset, Cards.number = Card_Files.number|fields=Cards.rarity,Cards.chara,Card_Files.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=' '}}
</ul>{{clear}}</includeonly>
 
 
 
<noinclude>
 
==Example==
 
{{Scout
 
|banner=February_of_Magic_bitter_gacha.png
 
|scoutname=Event Name!
 
|relatedevent=
 
|start= 4/20/2017 16:00
 
|end= April 20 2017 9pm
 
|ssr="Handsome Squidward" [[Muku Sakisaka]]
 
|sr="Card Name" [[Character Name]]
 
|r="Card Name" [[Character Name]]
 
 
}}
 
}}
 
+
</includeonly>
==Documentation==
+
<noinclude>[[Category:Templates]]</noinclude>
 
 
<pre>==={{{scoutname}}}===
 
{{#if: {{{banner|}}} | [[File:{{{banner}}}|frameless|right|link=|{{{scoutname}}}]] | }}
 
<p>'''Scouting Period:''' {{#time: F j, Y H:i | {{{start}}}}} JST to {{#time: F j, Y H:i | {{{end}}}}} JST</p>
 
<p>'''Featured Cards:'''</p>
 
<ul>
 
<li>SSR {{{ssr}}}</li>
 
{{#if: {{{ssr2|}}} | <li>SSR {{{ssr2}}}</li> | }}
 
<li>SR {{{sr}}}</li>
 
{{#if: {{{sr2|}}} | <li>SR {{{sr2}}}</li> | }}
 
<li>R {{{r}}}</li>
 
{{#if: {{{r2|}}} | <li>R {{{r2}}}</li> | }}
 
</ul>
 
{{clear}}</pre>
 
 
 
Blank template:
 
<pre>{{Scout
 
|banner=
 
|scoutname=
 
|start=
 
|end=
 
|ssr=
 
|sr=
 
|r=
 
|ssr2=
 
|sr2=
 
|r2=
 
}}</pre>
 
 
 
How to use (with notes):
 
<pre>{{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
 
}}</pre>
 
</noinclude>
 

Latest revision as of 16:03, 28 February 2020