Difference between revisions of "Template:Scout List"
From A3! Wiki
(Created page with "<noinclude> {{#cargo_declare:_table=Event |number=Integer |name_jp=String |name_en=String |start=String |end=String |event=List (/) of String |tiny=List (/) of String }} </noi...") |
(Tag: Undo) |
||
(100 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | {{#cargo_declare:_table= | + | {{#cargo_declare:_table=Scout |
|number=Integer | |number=Integer | ||
|name_jp=String | |name_jp=String | ||
Line 6: | Line 6: | ||
|start=String | |start=String | ||
|end=String | |end=String | ||
+ | |troupe=String | ||
|event=List (/) of String | |event=List (/) of String | ||
|tiny=List (/) of String | |tiny=List (/) of String | ||
+ | |banner2=String | ||
}} | }} | ||
− | </noinclude> | + | |
− | <includeonly> | + | <pre> |
− | {{#cargo_store:_table= | + | {{Scout List |
+ | |number= | ||
+ | |name_jp= | ||
+ | |name_en= | ||
+ | |start=DD/M/YYYY 00:00 | ||
+ | |end=DD/M/YYYY 00:00 | ||
+ | |troupe=ssr_chara_name (eg. sakuya) OR bday_troupe_name (eg. spring) | ||
+ | |event= | ||
+ | |tiny=Event 1 (/) Event 2 | ||
+ | |banner2= 2nd banner file name (eg. APRIL BIRTHDAY SP 2021 Part 2) | ||
+ | |note= | ||
+ | }} | ||
+ | </pre> | ||
+ | [[Category:Templates]] | ||
+ | |||
+ | </noinclude><includeonly>{{#cargo_store:_table=Scout | ||
|number={{{number|}}} | |number={{{number|}}} | ||
|name_jp={{{name_jp|}}} | |name_jp={{{name_jp|}}} | ||
Line 17: | Line 34: | ||
|start={{{start|}}} | |start={{{start|}}} | ||
|end={{{end|}}} | |end={{{end|}}} | ||
+ | |troupe={{{troupe|}}} | ||
|event={{{event|}}} | |event={{{event|}}} | ||
− | |tiny={{{tiny|}}} | + | |banner2={{{banner2|}}} |
− | }} | + | |tiny={{{tiny|}}} }}{{#css: #mw-category-media {margin-top: 1em;} |
− | + | }}===<span id="{{{name_en}}}">{{{name_en}}}</span>=== | |
− | + | <div style="max-width: 80em">{{#if: {{{name_en|}}} | [[File:{{Replace|{{{name_en|}}}}} gacha.png|frameless|right|link=|{{{name_en}}}]] | }}{{#if: {{{banner2|}}} | [[File:{{{banner2}}} gacha.png|frameless|right|link=|{{{name_en}}}]] | }}<p>'''Scouting Period:''' {{#time: F j, Y H:i | {{{start}}}:59}} JST{{#if: {{{end|}}} | to {{#time: F j, Y H:i | {{{end}}}:59}} JST |, end date to be confirmed}}</p> {{#if: {{{countdown|}}} | <p>'''Countdown:''' {{{countdown}}}</p> | }} {{#if: {{{event|}}} | <p>'''Related Event:''' {{#switch: {{{event|}}}|TBA=To Be Confirmed|[[{{{event}}}]]}}</p> | }} {{#if: {{{note|}}} | <p>'''Note:''' {{{note}}}</p> | }} | |
− | {{ | + | <p>'''Featured Cards:'''</p> |
− | + | {{#switch: {{{type|}}} | combined = <ul>{{#cargo_query:tables=Scout,Cards|join on=Scout.name_en = Cards.cardset|fields=Cards.number,Cards.rarity,Cards.cardname,Cards.chara|where=Scout.name_en="{{{scout1|}}}" OR Scout.name_en="{{{scout2|}}}"|order by=Cards.rarity DESC, Cards.number ASC|format=template|template=Scout/Cards|named args=yes}} | |
− | + | </ul> | |
− | + | {{#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, CONCAT('Cards/',Cards.chara,'/',Cards.cardname)=link|where=Scout.name_en="{{{scout1|}}}" OR Scout.name_en="{{{scout2|}}}"|order by=Cards.rarity DESC, Cards.number ASC|format=gallery|mode=nolines|show bytes=0|show dimensions=0|show filename=0|caption field=caption|link field=link|default=' '}} | |
− | + | | scoutextra = <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 Cards.chara="{{{chara1|}}}" AND Cards.cardname="{{{cardname1|}}}" OR Cards.chara="{{{chara2|}}}" AND Cards.cardname="{{{cardname2|}}}"|order by=Cards.rarity DESC, Cards.number ASC|format=template|template=Scout/Cards|named args=yes|default=}} | |
− | + | </ul> | |
− | + | {{#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,CONCAT('Cards/',Cards.chara,'/',Cards.cardname)=link|where=Scout.name_en="{{{scout1|}}}" OR Cards.chara="{{{chara1|}}}" AND Cards.cardname="{{{cardname1|}}}" OR Cards.chara="{{{chara2|}}}" AND Cards.cardname="{{{cardname2|}}}"|order by=Cards.rarity DESC, Cards.number ASC|format=gallery|mode=nolines|show bytes=0|show filename=0|show dimensions=0|caption field=caption|link field=link|default=}} | |
− | + | | #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="{{{name_en|}}}"|order by=Cards.rarity DESC, Cards.number ASC|format=template|template=Scout/Cards|named args=yes|default=}} | |
− | }} | + | </ul> |
− | + | {{#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,CONCAT('Cards/',Cards.chara,'/',Cards.cardname)=link|where=Scout.name_en="{{{name_en|}}}"|order by=Cards.rarity DESC, Cards.number ASC|format=gallery|mode=nolines|show bytes=0|show filename=0|show dimensions=0|caption field=caption|link field=link|default=}} }}</div>{{clear}}</includeonly> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | }} | ||
− | {{ | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | }} | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | }} | ||
− | {{ | ||
− | | | ||
− | | | ||
− | |name_en | ||
− | |||
− | | | ||
− | |||
− | |||
− | }} | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | }} | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |end | ||
− | | | ||
− | |||
− | }} | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | }} | ||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | }} | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | }} | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | }} | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | }} | ||
− | {{ | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | {{Scout | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |number | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | |||
− | |||
− | }} | ||
− | {{Scout | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | {{Scout | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | }} | ||
− | {{ | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | {{ | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | {{ | ||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | }} | ||
− | {{Scout | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | }} | ||
− | {{ | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | }} | ||
− | {{Scout | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |number | ||
− | |||
− | | | ||
− | | | ||
− | |||
− | | | ||
− | | | ||
− | }} | ||
− | {{Scout | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | | | ||
− | |||
− | }} | ||
− | {{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | </ |
Latest revision as of 19:23, 3 April 2021
This template defines the table "Scout". View table.
{{Scout List |number= |name_jp= |name_en= |start=DD/M/YYYY 00:00 |end=DD/M/YYYY 00:00 |troupe=ssr_chara_name (eg. sakuya) OR bday_troupe_name (eg. spring) |event= |tiny=Event 1 (/) Event 2 |banner2= 2nd banner file name (eg. APRIL BIRTHDAY SP 2021 Part 2) |note= }}