Template:Pokémon Infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary |
||
| (21 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" | ||
<table class="pkmn-infobox" | |||
style=" | style=" | ||
border-width: | width:280px; | ||
border-style: solid; | /* 5-px twin border: outer dark, inner normal */ | ||
border-color: #{{{color|4CAF50}}}; | 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 --> | <!-- ─── title & image ───────────────────────────────────────── --> | ||
<tr> | <tr> | ||
<th colspan="3" class="header-main" | <th colspan="3" class="header-main" | ||
style="background | style="background:#{{#if:{{{primarytype|}}}|{{{{lc:{{{primarytype}}}}} color}}|{{{color|FFFFFF}}}}}; color:#FFF;">{{{name}}} #{{{dex}}} | ||
</th> | </th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="3" style="text-align:center; padding:6px 0;"> | <td colspan="3" style="text-align:center; padding:6px 0;">{{{image}}} | ||
</td> | </td> | ||
</tr> | </tr> | ||
<!-- type --> | <!-- type badges --> | ||
<tr> | <tr> | ||
<td colspan="3" style="text-align:center;"> | <td colspan="3" style="text-align:center;"> | ||
| Line 28: | Line 33: | ||
</tr> | </tr> | ||
<!-- abilities --> | <!-- ─── abilities ───────────────────────────────────────────── --> | ||
<tr><th colspan="3" class="subhead">Abilities</th></tr> | <tr><th colspan="3" class="subhead">Abilities</th></tr> | ||
<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 Ability</span></div>}} | |||
</div> | |||
</td></tr> | |||
<!-- breeding --> | <!-- ─── breeding ────────────────────────────────────────────── --> | ||
<tr><th colspan="3" class="subhead">Breeding</th></tr> | {{#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 Groups<br><b>{{{eggGroup|—}}}</b> | |||
</div> | |||
<div class="breed-box">Hatch time<br><b>{{{eggCycles|?}}} cycles</b> | |||
</div> | |||
</div> | </div> | ||
</td></tr> | |||
<tr><th scope="row">Gender ratio</th><td colspan="2">{{{genderRatio}}}</td></tr> | |||
}} | |||
<!-- EV yield --> | <!-- ─── EV yield ────────────────────────────────────────────── --> | ||
<tr><th colspan="3" class="subhead">EV yield</th></tr> | <tr><th colspan="3" class="subhead">EV yield</th></tr> | ||
<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 --> | <!-- ─── misc ────────────────────────────────────────────────── --> | ||
<tr><th colspan="3" class="subhead">Misc info</th></tr> | <tr><th colspan="3" class="subhead">Misc info</th></tr> | ||
<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> | <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> | |||
</tr> | |||
<tr> | |||
</tr> | |||
</table> | </table> | ||
</includeonly> | </includeonly> | ||
<noinclude>{{documentation}}</noinclude> | |||