Template:Pokémon Infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (13 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=" | ||
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 22: | Line 11: | ||
box-shadow:0 0 0 3px #{{#if:{{{primarytype|}}} | box-shadow:0 0 0 3px #{{#if:{{{primarytype|}}} | ||
|{{{{lc:{{{primarytype}}}}} color}} | |{{{{lc:{{{primarytype}}}}} color}} | ||
|{{{color|4CAF50}}}}} | |{{{color|4CAF50}}}}}; | ||
/* light background shade */ | /* light background shade */ | ||
"> | "> | ||
<!-- ─── title & image ───────────────────────────────────────── --> | <!-- ─── title & image ───────────────────────────────────────── --> | ||
<tr> | <tr> | ||
<th colspan="3" class="header-main" | <th colspan="3" class="header-main" | ||
style="background:#{{#if:{{{primarytype|}}} | 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> | ||
| Line 57: | Line 37: | ||
<tr><td colspan="3"> | <tr><td colspan="3"> | ||
<div class="abil-grid"> | <div class="abil-grid"> | ||
<div class="abil-box">{{{ability1|—}}}</div> | <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> | </div> | ||
</td></tr> | </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> | |||
</td></tr> | |||
<tr><th scope="row">Gender ratio</th><td colspan="2">{{{genderRatio}}}</td></tr> | |||
}} | |||
<!-- ─── EV yield ────────────────────────────────────────────── --> | <!-- ─── EV yield ────────────────────────────────────────────── --> | ||