Template:Pokémon Infobox: Difference between revisions

From I-Pixelmon
Jump to navigation Jump to search
No edit summary
No edit summary
 
(52 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="pkmn-infobox" style="float:right; margin:0 0 1em 1em;
<templatestyles src="Template:Pokémon_Infobox/styles.css"/><table class="pkmn-infobox"
  background:#FFF; width:260px; border:4px solid #{{TypeColor|{{{type1|Unknown}}}}};"
      style="
|-
        width:280px;
! colspan="2" style="background:#{{TypeColor|{{{type1|Unknown}}}}};
        /* 5-px twin border: outer dark, inner normal */
  color:#FFF; font-size:140%; text-align:center; padding:4px 0; border-bottom:2px solid #333;" |
        border-width:5px;
  {{{name|}}}
        border-style:solid;
|-
        border-color:#{{#if:{{{primarytype|}}}
| colspan="2" style="text-align:center; padding:6px 0;" |
                          |{{{{lc:{{{primarytype}}}}} color dark}}
  [[File:{{{image|}}}|200px]]
                          |{{{color|4CAF50}}}}};
|-
        box-shadow:0 0 0 3px #{{#if:{{{primarytype|}}}
! colspan="2" style="background:#EFEFEF; text-align:center;" | Basic info
                                  |{{{{lc:{{{primarytype}}}}} color}}
|-
                                  |{{{color|4CAF50}}}}};
! style="width:110px;" | Type
        /* light background shade */
| {{#if:{{{type2|}}}
      ">
  | {{ucfirst:{{{type1}}}}} / {{ucfirst:{{{type2}}}}}
  <!-- ─── title & image ───────────────────────────────────────── -->
  | {{ucfirst:{{{type1}}}}} }}
  <tr>
|-
    <th colspan="3" class="header-main"
! Catch rate
        style="background:#{{#if:{{{primarytype|}}}|{{{{lc:{{{primarytype}}}}} color}}|{{{color|FFFFFF}}}}}; color:#FFF;">{{{name}}} #{{{dex}}}
| {{{catchRate|}}}
    </th>
|-
  </tr>
! Abilities
 
| {{{abilities|}}}
  <tr>
|-
    <td colspan="3" style="text-align:center; padding:6px 0;">{{{image}}}
! Spawn loc.
    </td>
| {{{spawnLocations|}}}
  </tr>
|-
 
! Gender ratio
  <!-- type badges -->
| {{{genderRatio|}}}
  <tr>
|-
    <td colspan="3" style="text-align:center;">
! EV yield
      <div class="type-box">{{{typeBadges}}}</div>
| {{{evYield|}}}
    </td>
|-
  </tr>
! Egg group(s)
 
| {{{eggGroup|}}}
  <!-- ─── abilities ───────────────────────────────────────────── -->
|-
  <tr><th colspan="3" class="subhead">Abilities</th></tr>
! Mountable
  <tr><td colspan="3">
| {{{mount|}}}
    <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>}}
! Behavior
    </div>
| {{{behavior|}}}
  </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>
 
</table>
</includeonly>
</includeonly>
<noinclude>
<noinclude>{{documentation}}</noinclude>
==Usage==
<pre>
{{Pokémon Infobox
|image=Bulbasaur.png
|name=Bulbasaur
|type1=Grass|type2=Poison
|catchRate=45
|abilities=Overgrow, Hidden: Chlorophyll
|spawnLocations=LAND
|genderRatio=87.5% ♂ / 12.5% ♀
|evYield=specialAttack:1
|eggGroup=Monster, Grass
|mount=No
|behavior=Timid 80% / Passive 0% / Aggressive 20%
}}
</pre>
</noinclude>

Latest revision as of 07:32, 1 June 2025