Template

Difference between revisions of "Card"

From Shadow Era Wiki

(Code modified for a better display on phone screens.)
Line 1: Line 1:
<div class="row">
+
<div style="display: flex; flex-wrap: wrap; align-items: flex-start;">
   <div class="small-5 columns">
+
 
<br><br>
+
   <div style="flex: 1; min-width: 250px; margin-right: 20px;">
<img src="http://www.shadowera.com/cards/{{{FileName}}}.jpg">
+
    <img src="http://www.shadowera.com/cards/{{{FileName}}}.jpg" style="max-width: 100%; height: auto;">
</div>
+
  </div>
   <div class="small-7 columns">
+
 
{| border="1" cellpadding="1" cellspacing="1" class="wikitable" style="WIDTH: 500px; float:left; margin-left: 50px;margin-top:50px;"
+
   <div style="flex: 2; min-width: 300px;">
! scope="row"|Card_No:
+
    <table border="1" cellpadding="1" cellspacing="1" class="wikitable" style="width: 100%; margin-top: 10px;">
|{{{Card_No}}}
+
      <tr>
|-
+
        <th scope="row">Card No:</th>
! scope="row"|Rarity:
+
        <td>{{{Card_No}}}</td>
|{{{Rarity}}}
+
      </tr>
|-
+
      <tr>
! scope="row"|Name:
+
        <th scope="row">Rarity:</th>
|{{{Name}}}
+
        <td>{{{Rarity}}}</td>
|-
+
      </tr>
! scope="row"|Type:
+
      <tr>
|{{{Type}}}
+
        <th scope="row">Name:</th>
|-
+
        <td>{{{Name}}}</td>
! scope="row"|Cost:
+
      </tr>
|{{{Cost}}}
+
      <tr>
|-
+
        <th scope="row">Type:</th>
! scope="row"|ATK:
+
        <td>{{{Type}}}</td>
|{{{ATK}}}
+
      </tr>
|-
+
      <tr>
! scope="row"|HP:
+
        <th scope="row">Cost:</th>
|{{{HP}}}
+
        <td>{{{Cost}}}</td>
|-
+
      </tr>
! scope="row"|Ability:
+
      <tr>
|{{{Ability}}}
+
        <th scope="row">ATK:</th>
|-
+
        <td>{{{ATK}}}</td>
! scope="row"|Flavor Text:
+
      </tr>
|{{#if:{{{Flavor Text|}}} | {{{Flavor Text}}} }}
+
      <tr>
|-
+
        <th scope="row">HP:</th>
|}
+
        <td>{{{HP}}}</td>
</div>
+
      </tr>
 +
      <tr>
 +
        <th scope="row">Ability:</th>
 +
        <td>{{{Ability}}}</td>
 +
      </tr>
 +
      <tr>
 +
        <th scope="row">Flavor Text:</th>
 +
        <td>{{#if:{{{Flavor Text|}}} | {{{Flavor Text}}} }}</td>
 +
      </tr>
 +
    </table>
 +
  </div>
 
</div>
 
</div>

Revision as of 02:05, 5 September 2024

   
Card No: {{{Card_No}}}
Rarity: {{{Rarity}}}
Name: {{{Name}}}
Type: {{{Type}}}
Cost: {{{Cost}}}
ATK: {{{ATK}}}
HP: {{{HP}}}
Ability: {{{Ability}}}
Flavor Text: