Template:Pokémon Infobox: Difference between revisions

From I-Pixelmon
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<templatestyles src="Template:Pokémon_Infobox/styles.css"/>
<templatestyles src="Template:Pokémon_Infobox/styles.css"/><table class="pkmn-infobox"
 
<!--
Primary colour source:
  * Preferred: |primarytype=Grass (or Fire, Water, …)
  * Fallback : |color=#A8B820  (legacy parameter)
 
“lc:” lowers the type name, so {{lc:Grass}} → grass → “grass color”.
-->
 
<table class="pkmn-infobox"
       style="
       style="
         width:280px;
         width:280px;
         /* 5-px twin border: outer dark, inner normal */
         /* 5-px twin border: outer dark, inner normal */
         border-width:5px;
         border-width:5px;
Line 23: Line 12:
                                   |{{{{lc:{{{primarytype}}}}} color}}
                                   |{{{{lc:{{{primarytype}}}}} color}}
                                   |{{{color|4CAF50}}}}};
                                   |{{{color|4CAF50}}}}};
         /* light background shade */
         /* light background shade */
       ">
       ">
   <!-- ─── title & image ───────────────────────────────────────── -->
   <!-- ─── title & image ───────────────────────────────────────── -->
<div
   <tr>
   <tr>
     <th colspan="3" class="header-main"
     <th colspan="3" class="header-main"
Line 35: Line 20:
     </th>
     </th>
   </tr>
   </tr>
</div>


   <tr>
   <tr>
Line 58: Line 42:


   <!-- ─── breeding ────────────────────────────────────────────── -->
   <!-- ─── breeding ────────────────────────────────────────────── -->
   <tr><th colspan="3" class="subhead">Breeding</th></tr>
   {{#if:{{{eggGroup|}}}
  <tr><td colspan="3">
    | <!-- only show breeding if an egg group was provided -->
    <div class="breed-grid">
      <tr><th colspan="3" class="subhead">Breeding</th></tr>
      <div class="breed-box">Egg&nbsp;Groups<br><b>{{{eggGroup|—}}}</b>
      <tr><td colspan="3">
      </div>
        <div class="breed-grid">
      <div class="breed-box">Hatch&nbsp;time<br><b>{{{eggCycles|?}}}&nbsp;cycles</b>
          <div class="breed-box">Egg&nbsp;Groups<br><b>{{{eggGroup|—}}}</b>
      </div>
          </div>
    </div>
          <div class="breed-box">Hatch&nbsp;time<br><b>{{{eggCycles|?}}}&nbsp;cycles</b>
  </td></tr>
          </div>
        </div>
      </td></tr>


  <tr><th scope="row">Gender ratio</th><td colspan="2">{{{genderRatio}}}</td></tr>
      <tr><th scope="row">Gender ratio</th><td colspan="2">{{{genderRatio}}}</td></tr>
  }}


   <!-- ─── EV yield ────────────────────────────────────────────── -->
   <!-- ─── EV yield ────────────────────────────────────────────── -->

Latest revision as of 07:32, 1 June 2025