Template

Difference between revisions of "Main"

From Shadow Era Wiki

Line 5: Line 5:
 
         <table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
 
         <table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
 
             <tr>
 
             <tr>
                 <th style="text-align:left;">{{{title1}}}</th>
+
                 <th style="text-align:center; text-transform: uppercase;">{{{title1}}}</th>
 
             </tr>
 
             </tr>
 
             <tr>
 
             <tr>
Line 20: Line 20:
 
         <table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
 
         <table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
 
             <tr>
 
             <tr>
                 <th style="text-align:left;">{{{title2}}}</th>
+
                 <th style="text-align:center; text-transform: uppercase;">{{{title2}}}</th>
 
             </tr>
 
             </tr>
 
             <tr>
 
             <tr>
Line 28: Line 28:
 
     </div>
 
     </div>
  
<div style="flex: 0 0 45%; min-width: 200px; margin-left: auto;">
+
    <!-- Tableau 4 : Random Card -->
<table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
+
    <div style="flex: 0 0 45%; min-width: 200px; margin-left: auto;">
<tr>
+
        <table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
<th style="text-align:left;">Random Card</th>
+
            <tr>
</tr>
+
                <th style="text-align:center; text-transform: uppercase;">Random Card</th>
<tr>
+
            </tr>
<td>
+
            <tr>
    <img src="" id="randomCard" alt="Random Card" style="max-width: 80%; height: auto;" />
+
                <td style="text-align: center;">
    <noinclude>
+
                    <img src="" id="randomCard" alt="Random Card" style="max-width: 80%; height: auto;" />
    <script>
+
                </td>
         document.addEventListener('DOMContentLoaded', function() {
+
            </tr>
            var cardCount = 100; // Remplacez par le nombre total de cartes disponibles.
+
         </table>
            var randomIndex = Math.floor(Math.random() * cardCount) + 1; // Générez un nombre aléatoire.
+
     </div>
            document.getElementById('randomCard').src = 'https://www.shadowera.com/cards/card' + randomIndex + '.jpg'; // Modifiez ce chemin selon la structure des URLs des cartes.
+
        });
+
    </script>
+
     </noinclude>
+
</td>
+
</tr>
+
</table>
+
 
</div>
 
</div>
  
Line 56: Line 49:
 
         <table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
 
         <table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
 
             <tr>
 
             <tr>
                 <th style="text-align:left;">{{{title3}}}</th>
+
                 <th style="text-align:center; text-transform: uppercase;">{{{title3}}}</th>
 
             </tr>
 
             </tr>
 
             <tr>
 
             <tr>

Revision as of 21:50, 6 October 2024

{{{title1}}}
{{{content1}}}
{{{title2}}}
{{{content2}}}
Random Card
                   Random Card
{{{title3}}}
{{{content3}}}