Difference between revisions of "Template:CardInfo"

From A3! Wiki
(added full card illustration. They will only be shown if they exists since I couldn't figure out the cargo tables, I was unable to recreate the data.)
 
(One intermediate revision by the same user 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" style="border-radius: 15px;border-style: solid;border-width: 1px;width:25em;border-spacing:0px;"
+
{| {{#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|}}}
Line 52: Line 52:
 
| 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">
 
{{#switch: {{{prebloomed|}}} | yes | Yes= <tabs plain style="margin:0 auto">
<tab name="Bloomed">[[File:({{{cardname}}}) {{Character to Troupe |characterfirst={{{character}}} }} {{{attribute|}}} {{{rarity}}}+.png|350px]]</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> }}
+
<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|}}}】

Latest revision as of 16:46, 18 November 2024