Difference between revisions of "Template:CardInfo"
From A3! Wiki
m |
|||
(31 intermediate revisions by 5 users not shown) | |||
Line 46: | Line 46: | ||
}} | }} | ||
[[Category:Cards]][[Category:{{{attribute}}} Cards]][[Category:{{{rarity}}} Cards]][[Category:{{{character}}}]] | [[Category:Cards]][[Category:{{{attribute}}} Cards]][[Category:{{{rarity}}} Cards]][[Category:{{{character}}}]] | ||
− | {| {{#if: {{{character|}}} |class="cardinfobox infobox {{Character to Troupe |characterfirst={{{character}}} }} }}table | + | {| {{#if: {{{character|}}} |class="cardinfobox infobox {{Character to Troupe |characterfirst={{{character}}} }} }}table" |
|- | |- | ||
! colspan="2" align="center" style="font-size:1.1rem; padding:0.5em" | [[File:{{{attribute|}}}.png|30px|link=]] [[File:{{Template:Character to Troupe|character={{{character}}} }} troupe.png|30px|link=]] {{Rarity|rarity={{{rarity|}}}|size=30}}<br>{{{cardname|}}} | ! colspan="2" align="center" style="font-size:1.1rem; padding:0.5em" | [[File:{{{attribute|}}}.png|30px|link=]] [[File:{{Template:Character to Troupe|character={{{character}}} }} troupe.png|30px|link=]] {{Rarity|rarity={{{rarity|}}}|size=30}}<br>{{{cardname|}}} | ||
|- | |- | ||
| colspan="2" style="padding:0.5em; text-align:center" | | | colspan="2" style="padding:0.5em; text-align:center" | | ||
− | {{#switch: {{{prebloomed|}}} | yes | Yes= <tabs plain style="margin:0 auto"><tab name="Bloomed">{{#cargo_query:table=Card_Files,Cards|join on=Card_Files.number = Cards.number|fields=CONCAT('[[File:', image2, '|350px]]') = display|where=Cards.cardname = {{{ | + | {{#switch: {{{prebloomed|}}} | yes | Yes= <tabs plain style="margin:0 auto"> |
+ | <tab name="Bloomed">{{#cargo_query:table=Card_Files,Cards|join on=Card_Files.number = Cards.number|fields=CONCAT('[[File:', image2, '|350px]]') = display|where=Cards.cardname="{{#titleparts: {{PAGENAME}} | 2 | 3 }}" AND Cards.chara LIKE "{{#titleparts: {{FULLPAGENAME}} | 1 | 2 }}"}}</tab></tabs> | no | No | #default = <tabs plain style="margin:0 auto"><tab name="Unbloomed">{{#cargo_query:table=Card_Files,Cards|join on=Card_Files.number = Cards.number|fields=CONCAT('[[File:', image1, '|350px]]') = display|where=Cards.cardname="{{#titleparts: {{PAGENAME}} | 2 | 3 }}" AND Cards.chara LIKE "{{#titleparts: {{FULLPAGENAME}} | 1 | 2 }}" }}</tab><tab name="Bloomed">{{#cargo_query:table=Card_Files,Cards|join on=Card_Files.number = Cards.number|fields=CONCAT('[[File:', image2, '|350px]]') = display|where=Cards.cardname="{{#titleparts: {{PAGENAME}} | 2 | 3 }}" AND Cards.chara LIKE "{{#titleparts: {{FULLPAGENAME}} | 1 | 2 }}"}}</tab></tabs> }} | ||
|- | |- | ||
| colspan="2" align="center" style="font-size:1.1rem; padding:0.5em;" | 【{{{cardnamejp|}}}】 | | colspan="2" align="center" style="font-size:1.1rem; padding:0.5em;" | 【{{{cardnamejp|}}}】 | ||
Line 73: | Line 74: | ||
=Card Stats= | =Card Stats= | ||
− | {{#cargo_query:table=Stat_Patterns,Cards,Card_Stats|join on=Card_Stats.number = Cards.number,Card_Stats.initial = Stat_Patterns.ID|fields=Stat_Patterns.att1,Stat_Patterns.att2,Stat_Patterns.att3,Stat_Patterns.inc1,Stat_Patterns.inc2,Stat_Patterns.inc3,Cards.attribute,Card_Stats.secondaryatt,Cards.rarity|where=Cards.cardname | + | {{#cargo_query:table=Stat_Patterns,Cards,Card_Stats|join on=Card_Stats.number = Cards.number,Card_Stats.initial = Stat_Patterns.ID|fields=Stat_Patterns.att1,Stat_Patterns.att2,Stat_Patterns.att3,Stat_Patterns.inc1,Stat_Patterns.inc2,Stat_Patterns.inc3,Cards.attribute,Card_Stats.secondaryatt,Cards.rarity|where=Cards.cardname = "{{#titleparts: {{PAGENAME}} | 2 | 3 }}" AND Cards.chara LIKE "{{#titleparts: {{FULLPAGENAME}} | 1 | 2 }}" |format=template|template=StatTable|named args=yes}} |
=Adlib Skill Stats= | =Adlib Skill Stats= | ||
Line 81: | Line 82: | ||
!% Stat Increase | !% Stat Increase | ||
|- | |- | ||
− | {{#cargo_query:table=Adlib,Cards,Card_Stats|join on=Card_Stats.number = Cards.number,Card_Stats.adlib = Adlib.ID|fields=Adlib.L1rate,Adlib.L1inc,Adlib.L2rate,Adlib.L2inc,Adlib.L3rate,Adlib.L3inc,Adlib.L4rate,Adlib.L4inc|where=Cards.cardname | + | {{#cargo_query:table=Adlib,Cards,Card_Stats|join on=Card_Stats.number = Cards.number,Card_Stats.adlib = Adlib.ID|fields=Adlib.L1rate,Adlib.L1inc,Adlib.L2rate,Adlib.L2inc,Adlib.L3rate,Adlib.L3inc,Adlib.L4rate,Adlib.L4inc|where=Cards.cardname = "{{#titleparts: {{PAGENAME}} | 2 | 3 }}" AND Cards.chara LIKE "{{#titleparts: {{FULLPAGENAME}} | 1 | 2 }}" |format=template|template=AdlibTable|named args=yes}} |
|} | |} | ||
Line 97: | Line 98: | ||
|heights=300px | |heights=300px | ||
}} | }} | ||
− | + | {{#tag: gallery| | |
+ | {{#ifexist:File:({{{cardname}}}) {{Character to Troupe |characterfirst2={{{character}}} }} {{{attribute}}} SSR Full Raw.png|File:({{{cardname}}}) {{Character to Troupe |characterfirst2={{{character}}} }} {{{attribute}}} SSR Full Raw.png}} | ||
+ | {{#ifexist:File:({{{cardname}}}) {{Character to Troupe |characterfirst2={{{character}}} }} {{{attribute}}} SSR Full Raw.png|File:({{{cardname}}}) {{Character to Troupe |characterfirst2={{{character}}} }} {{{attribute}}} SSR+ Full Raw.png}} | ||
+ | |mode=nolines | ||
+ | |widths=300px | ||
+ | |heights=300px | ||
+ | }} | ||
=Chibis= | =Chibis= | ||
{{#cargo_query:tables=Cards,Card_Chibis | {{#cargo_query:tables=Cards,Card_Chibis | ||
Line 113: | Line 120: | ||
|template=File Exists | |template=File Exists | ||
}} | }} | ||
− |