Difference between revisions of "Template:CardInfo"

From A3! Wiki
Line 15: Line 15:
 
.tabs-plain > .tabs-container {
 
.tabs-plain > .tabs-container {
 
     margin-top: 0.6em;
 
     margin-top: 0.6em;
}
 
 
@media only screen and (max-width: 540px) and (min-width: 280px) and (orientation: portrait) {
 
    table.cardinfobox {width: 100% !important; max-width: inherit; margin-left: 0;}
 
    table.cardinfobox th img {width: max-content !important;}
 
    .cardinfobox img {width: 100% !important;}
 
    .rootpage-Cards div.toc {width: 100% !important;}
 
    table.stattable, table.adlibtable {width: 100% !important;}
 
}
 
 
@media only screen and (max-width: 850px) and (min-width: 541px) {
 
    table.cardinfobox {width: 40vw !important; margin-left: 1rem !important;}
 
    table.cardinfobox th img {width: max-content !important;}
 
    .cardinfobox img {width: 100% !important;}
 
    .rootpage-Cards div.toc {width: 10vw !important;}
 
 
}
 
}
  
Line 67: 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">[[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">[[File:({{{cardname}}}) {{Character to Troupe |characterfirst={{{character}}} }} {{{attribute|}}} {{{rarity}}}.png|350px]]</tab>
 +
<tab name="Bloomed">[[File:({{{cardname}}}) {{Character to Troupe |characterfirst={{{character}}} }} {{{attribute|}}} {{{rarity}}}+.png|350px]]</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|}}}】

Revision as of 10:44, 10 November 2024