Difference between revisions of "Template:Card List/Row"

From A3! Wiki
m
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
| style="text-align: center" | '''{{{number|?}}}'''
+
| style="text-align: center" | '''{{{1|?}}}'''
|| {{#if: {{{prebloomed|?}}} | [[File:({{{cardname}}}) {{{character}}} {{{attribute}}} {{{rarity}}} Icon Bloomed.png|33px]] | [[File:({{{cardname}}}) {{{character}}} {{{attribute}}} {{{rarity}}} Icon Unbloomed.png|33px]] [[File:({{{cardname}}}) {{{character}}} {{{attribute}}} {{{rarity}}} Icon Bloomed.png|33px]] }}
+
|| {{#if: {{{2|?}}} | [[File:({{{3}}}) {{{4}}} {{{5}}} {{{6}}} Icon Bloomed.png|33px]] | [[File:({{{3}}}) {{{4}}} {{{5}}} {{{6}}} Icon Unbloomed.png|33px]] [[File:({{{3}}}) {{{4}}} {{{5}}} {{{6}}} Icon Bloomed.png|33px]] }}
| style="text-transform: capitalize" |[[{{{character|?}}}]]
+
| style="text-transform: capitalize" |[[{{{4|?}}}]]
| style="text-transform: uppercase" | {{{rarity|?}}}
+
| style="text-transform: uppercase" | {{{6|?}}}
|| {{#if: {{{attribute|?}}} | [[File:{{{attribute}}}.png|20px|link=|{{{attribute}}}]] {{{attribute}}}}}
+
|| {{#if: {{{5|?}}} | [[File:{{{5}}}.png|20px|link=|{{{5}}}]] {{{5}}}}}
|| [[Card/{{{character}}}/{{{cardname|?}}}|{{{cardname|?}}}]]
+
|| [[Card/{{{4}}}/{{{3|?}}}|{{{3|?}}}]]
|| {{#switch: {{{troupe}}} | spring | Spring=[[File:Spring troupe.png|20px|link=|]] <span style="color:#ff91b2">Spring</span>
+
|| {{#switch: {{{7}}} | spring | Spring=[[File:Spring troupe.png|20px|link=|]] <span style="color:#ff91b2">Spring</span>
 
     | summer | Summer=[[File:Summer troupe.png|20px|link=]] <span style="color:#ffc800">Summer</span>
 
     | summer | Summer=[[File:Summer troupe.png|20px|link=]] <span style="color:#ffc800">Summer</span>
 
     | autumn | Autumn=[[File:Autumn troupe.png|20px|link=]] <span style="color:#ff9b63">Autumn</span>
 
     | autumn | Autumn=[[File:Autumn troupe.png|20px|link=]] <span style="color:#ff9b63">Autumn</span>
 
     | winter | Winter=[[File:Winter troupe.png|20px|link=]] <span style="color:#6ac1ff">Winter</span>
 
     | winter | Winter=[[File:Winter troupe.png|20px|link=]] <span style="color:#6ac1ff">Winter</span>
 
     || N/A | Other=[[File:Supporting Cast.png|20px|link=]] Other}}
 
     || N/A | Other=[[File:Supporting Cast.png|20px|link=]] Other}}
|| {{{cardset|?}}}
+
|| {{{8|?}}}
 
|- style="height: 3em;"
 
|- style="height: 3em;"
 
</includeonly>
 
</includeonly>
  
 
<noinclude>
 
<noinclude>
==Code==
+
==Code (Current)==
 +
| style="text-align: center" | '''{{{1|?}}}'''
 +
|| {{#if: {{{2|?}}} | [[File:({{{3}}}) {{{4}}} {{{5}}} {{{6}}} Icon Bloomed.png|33px]] | [[File:({{{3}}}) {{{4}}} {{{5}}} {{{6}}} Icon Unbloomed.png|33px]] [[File:({{{3}}}) {{{4}}} {{{5}}} {{{6}}} Icon Bloomed.png|33px]] }}
 +
| style="text-transform: capitalize" |[[{{{4|?}}}]]
 +
| style="text-transform: uppercase" | {{{6|?}}}
 +
|| {{#if: {{{5|?}}} | [[File:{{{5}}}.png|20px|link=|{{{5}}}]] {{{5}}}}}
 +
|| [[Card/{{{4}}}/{{{3|?}}}|{{{3|?}}}]]
 +
|| {{#switch: {{{7}}} | spring | Spring=[[File:Spring troupe.png|20px|link=|]] <span style="color:#ff91b2">Spring</span>
 +
    | summer | Summer=[[File:Summer troupe.png|20px|link=]] <span style="color:#ffc800">Summer</span>
 +
    | autumn | Autumn=[[File:Autumn troupe.png|20px|link=]] <span style="color:#ff9b63">Autumn</span>
 +
    | winter | Winter=[[File:Winter troupe.png|20px|link=]] <span style="color:#6ac1ff">Winter</span>
 +
    || N/A | Other=[[File:Supporting Cast.png|20px|link=]] Other}}
 +
|| {{{8|?}}}
 +
|- style="height: 3em;"
 +
 
 +
==Code (Before)==
 
<pre>
 
<pre>
 
| style="text-align: center" | '''{{{number|?}}}'''
 
| style="text-align: center" | '''{{{number|?}}}'''
Line 34: Line 49:
  
 
==How to use==
 
==How to use==
In the case of prebloomed promo cards, please put "yes" as the "prebloomed" value. Leave blank or remove otherwise. Everything else should be self-explanatory.
+
In the case of prebloomed promo cards, please put "yes" or "1" as the "prebloomed" value. Leave blank or remove otherwise. Everything else should be self-explanatory.
  
Note that this template MUST be used within the [[Card List]] table as it is just a table row.
+
To add a card, modify [[Template:Card List]] with the following attributes:
  
<pre>{{Card List/Row
+
<pre>{{Card List
 
|number=
 
|number=
 
|prebloomed=
 
|prebloomed=
Line 48: Line 63:
 
|cardset=
 
|cardset=
 
}}</pre>
 
}}</pre>
 
==Example in use==
 
{| class="wikitable a3table sortable"
 
|-
 
! #
 
! Icon
 
! Character
 
! Rarity
 
! Attribute
 
! Card Name
 
! Troupe
 
! Card Set
 
|- style="height: 3em;"
 
{{Card List/Row
 
|number=1
 
|prebloomed=
 
|character=Sakuya Sakuma
 
|rarity=SSR
 
|attribute=Action
 
|cardname=Secret Special Training on the Riverside
 
|troupe=
 
|cardset=Non-Existent
 
}}
 
{{Template:Card List/Row
 
|number=167
 
|prebloomed=yes
 
|character=Sakuya Sakuma
 
|rarity=SSR++
 
|attribute=Serious
 
|cardname=MANKAI☆Kaika Sengen
 
|troupe=Spring
 
|cardset=Non-Existent
 
}}
 
|}
 
 
</noinclude>
 
</noinclude>

Revision as of 11:02, 7 October 2017


Code (Current)

| style="text-align: center" | ? || [[File:({{{3}}}) {{{4}}} {{{5}}} {{{6}}} Icon Bloomed.png|33px]] | style="text-transform: capitalize" |? | style="text-transform: uppercase" | ? || [[File:{{{5}}}.png|20px|link=|{{{5}}}]] {{{5}}} || [[Card/{{{4}}}/?|?]] || || ? |- style="height: 3em;"

Code (Before)

| style="text-align: center" | '''{{{number|?}}}'''
|| {{#if: {{{prebloomed|?}}} | [[File:({{{cardname}}}) {{{character}}} {{{attribute}}} {{{rarity}}} Icon Bloomed.png|center|33px]] | [[File:({{{cardname}}}) {{{character}}} {{{attribute}}} {{{rarity}}} Icon Unbloomed.png|33px]] [[File:({{{cardname}}}) {{{character}}} {{{attribute}}} {{{rarity}}} Icon Bloomed.png|33px]] }}
| style="text-transform: capitalize" |[[{{{character|?}}}]]
| style="text-transform: uppercase" | {{{rarity|?}}}
|| {{#if: {{{attribute|?}}} | [[File:{{{attribute}}}.png|20px|link=|{{{attribute}}}]] {{{attribute}}}}}
|| {{{cardname|?}}}
|| {{#switch: {{{troupe}}} | spring | Spring=[[File:Spring troupe.png|20px|link=|]] <span style="color:#ff91b2">Spring</span>
    | summer | Summer=[[File:Summer troupe.png|20px|link=]] <span style="color:#ffc800">Summer</span>
    | autumn | Autumn=[[File:Autumn troupe.png|20px|link=]] <span style="color:#ff9b63">Autumn</span>
    | winter | Winter=[[File:Winter troupe.png|20px|link=]] <span style="color:#6ac1ff">Winter</span>
    || N/A | Other=[[File:Supporting Cast.png|20px|link=]] Other}}
|| {{{cardset|?}}}
|- style="height: 3em;"

How to use

In the case of prebloomed promo cards, please put "yes" or "1" as the "prebloomed" value. Leave blank or remove otherwise. Everything else should be self-explanatory.

To add a card, modify Template:Card List with the following attributes:

{{Card List
|number=
|prebloomed=
|character=
|rarity=
|attribute=
|cardname=
|troupe=
|cardset=
}}