Template:Pokémon Infobox: Difference between revisions

From I-Pixelmon
Jump to navigation Jump to search
No edit summary
No edit summary
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<table class="pkmn-infobox"
<templatestyles src="Template:Pokémon_Infobox/styles.css"/><table class="pkmn-infobox"
       style="float:right; margin:0 0 1em 1em; width:260px; background:#FFF;
       style="
              border:4px solid #{{{color|444444}}}; border-radius:10px;
        width:280px;
              overflow:hidden; box-shadow:0 0 6px rgba(0,0,0,0.2);">
        /* 5-px twin border: outer dark, inner normal */
        border-width:5px;
        border-style:solid;
        border-color:#{{#if:{{{primarytype|}}}
                          |{{{{lc:{{{primarytype}}}}} color dark}}
                          |{{{color|4CAF50}}}}};
        box-shadow:0 0 0 3px #{{#if:{{{primarytype|}}}
                                  |{{{{lc:{{{primarytype}}}}} color}}
                                  |{{{color|4CAF50}}}}};
        /* light background shade */
      ">
  <!-- ─── title & image ───────────────────────────────────────── -->
   <tr>
   <tr>
     <th colspan="2"
     <th colspan="3" class="header-main"
         style="background:#{{{color|444444}}}; color:#FFF;
         style="background:#{{#if:{{{primarytype|}}}|{{{{lc:{{{primarytype}}}}} color}}|{{{color|FFFFFF}}}}}; color:#FFF;">{{{name}}} #{{{dex}}}
              font-size:140%; text-align:center; padding:4px 0;
    </th>
              border-bottom:2px solid #333;">{{{name}}}</th>
   </tr>
   </tr>
   <tr>
   <tr>
     <td colspan="2" style="text-align:center; padding:6px 0;">
     <td colspan="3" style="text-align:center; padding:6px 0;">{{{image}}}
      [[File:{{{image}}}|200px]]
     </td>
     </td>
   </tr>
   </tr>
  <tr><th colspan="2"
        style="background:#EFEFEF; text-align:center;">Basic info</th></tr>


   <tr><th scope="row">Type</th>
  <!-- type badges -->
       <td>{{#if:{{{type2|}}}
  <tr>
            | {{ucfirst:{{{type1}}}}} / {{ucfirst:{{{type2}}}}}
    <td colspan="3" style="text-align:center;">
            | {{ucfirst:{{{type1}}}}} }}</td></tr>
      <div class="type-box">{{{typeBadges}}}</div>
    </td>
  </tr>
 
  <!-- ─── abilities ───────────────────────────────────────────── -->
   <tr><th colspan="3" class="subhead">Abilities</th></tr>
  <tr><td colspan="3">
    <div class="abil-grid">
       <div class="abil-box">{{{ability1|—}}}</div>{{#if:{{{hiddenAbility|}}}|<div class="abil-box"><span class="abil-name">{{{hiddenAbility}}}</span><br><span class="hidden-small">Hidden&nbsp;Ability</span></div>}}
    </div>
  </td></tr>
 
  <!-- ─── breeding ────────────────────────────────────────────── -->
  {{#if:{{{eggGroup|}}}
    | <!-- only show breeding if an egg group was provided -->
      <tr><th colspan="3" class="subhead">Breeding</th></tr>
      <tr><td colspan="3">
        <div class="breed-grid">
          <div class="breed-box">Egg&nbsp;Groups<br><b>{{{eggGroup|—}}}</b>
          </div>
          <div class="breed-box">Hatch&nbsp;time<br><b>{{{eggCycles|?}}}&nbsp;cycles</b>
          </div>
        </div>
      </td></tr>
 
      <tr><th scope="row">Gender ratio</th><td colspan="2">{{{genderRatio}}}</td></tr>
  }}
 
  <!-- ─── EV yield ────────────────────────────────────────────── -->
  <tr><th colspan="3" class="subhead">EV yield</th></tr>
  <tr><td colspan="3">
    <div class="ev-wrapper">
      <div class="ttl">Total: {{{evTotal}}}</div>
      <div class="ev-row">{{{evBoxes}}}</div>
    </div>
  </td></tr>
 
  <!-- ─── misc ────────────────────────────────────────────────── -->
  <tr><th colspan="3" class="subhead">Misc info</th></tr>
  <tr><th scope="row">Catch rate</th>      <td colspan="2">{{{catchRate}}}</td></tr>
  <tr><th scope="row">Behavior</th>        <td colspan="2">{{{behavior}}}</td></tr>
  <tr><th scope="row">Mountable</th>        <td colspan="2">{{{mount}}}</td></tr>
  <tr><th scope="row">Gigantamax</th>      <td colspan="2">{{{canGigantamax}}}</td></tr>
  <tr><th scope="row">Fly</th>              <td colspan="2">{{{canFly}}}</td></tr>
  <tr><th scope="row">Surf</th>            <td colspan="2">{{{canSurf}}}</td></tr>
  <tr><th scope="row">Shoulder ride</th>    <td colspan="2">{{{canRideShoulder}}}</td></tr>


  <tr><th scope="row">Catch&nbsp;rate</th><td>{{{catchRate}}}</td></tr>
  <tr><th scope="row">Abilities</th><td>{{{abilities}}}</td></tr>
  <tr><th scope="row">Spawn&nbsp;loc.</th><td>{{{spawnLocations}}}</td></tr>
  <tr><th scope="row">Gender&nbsp;ratio</th><td>{{{genderRatio}}}</td></tr>
  <tr><th scope="row">EV&nbsp;yield</th><td>{{{evYield}}}</td></tr>
  <tr><th scope="row">Egg&nbsp;group(s)</th><td>{{{eggGroup}}}</td></tr>
  <tr><th scope="row">Mountable</th><td>{{{mount}}}</td></tr>
  <tr><th scope="row">Behavior</th><td>{{{behavior}}}</td></tr>
</table>
</table>
</includeonly>
</includeonly>
<noinclude>(HTML version for use inside &lt;tab&gt;.)</noinclude>
<noinclude>{{documentation}}</noinclude>

Latest revision as of 07:32, 1 June 2025