Template:Pokémon Infobox: Difference between revisions

From I-Pixelmon
Jump to navigation Jump to search
No edit summary
No edit summary
 
(51 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="pkmn-infobox"
<templatestyles src="Template:Pokémon_Infobox/styles.css"/><table class="pkmn-infobox"
  style="float:right; margin:0 0 1em 1em;
      style="
          width:260px; background:#FFF;
        width:280px;
          border:4px solid #{{TypeColor|{{{type1|Unknown}}}}};
        /* 5-px twin border: outer dark, inner normal */
          border-radius:10px; overflow:hidden;
        border-width:5px;
          box-shadow:0 0 6px rgba(0,0,0,0.2);"
        border-style:solid;
|-
        border-color:#{{#if:{{{primarytype|}}}
! colspan="2"
                          |{{{{lc:{{{primarytype}}}}} color dark}}
  style="background:#{{TypeColor|{{{type1|Unknown}}}}};
                          |{{{color|4CAF50}}}}};
        color:#FFF; font-size:140%; text-align:center;
        box-shadow:0 0 0 3px #{{#if:{{{primarytype|}}}
        padding:4px 0; border-bottom:2px solid #333;" |
                                  |{{{{lc:{{{primarytype}}}}} color}}
  {{{name|}}}
                                  |{{{color|4CAF50}}}}};
|-
        /* light background shade */
| colspan="2" style="text-align:center; padding:6px 0;" |
      ">
  [[File:{{{image|}}}|200px]]
  <!-- ─── title & image ───────────────────────────────────────── -->
|-
  <tr>
! colspan="2" style="background:#EFEFEF; text-align:center;" | Basic info
    <th colspan="3" class="header-main"
|-
        style="background:#{{#if:{{{primarytype|}}}|{{{{lc:{{{primarytype}}}}} color}}|{{{color|FFFFFF}}}}}; color:#FFF;">{{{name}}} #{{{dex}}}
! scope="row" | Type
    </th>
| {{#if:{{{type2|}}}
  </tr>
  | {{ucfirst:{{{type1}}}}} / {{ucfirst:{{{type2}}}}}
 
  | {{ucfirst:{{{type1}}}}} }}
  <tr>
|-
    <td colspan="3" style="text-align:center; padding:6px 0;">{{{image}}}
! scope="row" | Catch&nbsp;rate
    </td>
| {{{catchRate|}}}
  </tr>
|-
 
! scope="row" | Abilities
  <!-- type badges -->
| {{{abilities|}}}
  <tr>
|-
    <td colspan="3" style="text-align:center;">
! scope="row" | Spawn&nbsp;loc.
      <div class="type-box">{{{typeBadges}}}</div>
| {{{spawnLocations|}}}
    </td>
|-
  </tr>
! scope="row" | Gender&nbsp;ratio
 
| {{{genderRatio|}}}
  <!-- ─── abilities ───────────────────────────────────────────── -->
|-
  <tr><th colspan="3" class="subhead">Abilities</th></tr>
! scope="row" | EV&nbsp;yield
  <tr><td colspan="3">
| {{{evYield|}}}
    <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>}}
! scope="row" | Egg&nbsp;group(s)
    </div>
| {{{eggGroup|}}}
  </td></tr>
|-
 
! scope="row" | Mountable
  <!-- ─── breeding ────────────────────────────────────────────── -->
| {{{mount|}}}
  {{#if:{{{eggGroup|}}}
|-
    | <!-- only show breeding if an egg group was provided -->
! scope="row" | Behavior
      <tr><th colspan="3" class="subhead">Breeding</th></tr>
| {{{behavior|}}}
      <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>
See documentation in previous message.
</noinclude>

Latest revision as of 07:32, 1 June 2025