Template:Move Infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
<templatestyles src="Template:Move_Infobox/styles.css"/> | <templatestyles src="Template:Move_Infobox/styles.css"/> | ||
<!-- | <!-- | ||
{{ | * `{{lc:...}}` lowers the move type (e.g. Grass → grass) | ||
* `{{{{lc:...}} color dark}}` transcludes template “grass color dark” | |||
which returns the dark hex code. Same idea for normal/light. | |||
--> | |||
<table class="pkmn-infobox move-infobox" | <table class="pkmn-infobox move-infobox" | ||
style=" | style=" | ||
border-color:#{{ | /* outer dark border */ | ||
box-shadow:0 0 0 3px #{{ | border-color:#{{{{lc:{{{type|Normal}}}}} color dark}}; | ||
background-color:#{{ | /* inner normal border */ | ||
box-shadow:0 0 0 3px #{{{{lc:{{{type|Normal}}}}} color}} inset; | |||
/* light background */ | |||
background-color:#{{{{lc:{{{type|Normal}}}}} color light}}; | |||
"> | "> | ||
<!-- title bar | <!-- title bar: uses the *normal* shade --> | ||
<tr> | <tr> | ||
<th colspan="2" class="header-main" | <th colspan="2" class="header-main" | ||
style="background-color:#{{ | style="background-color:#{{{{lc:{{{type|Normal}}}}} color}};"> | ||
{{{name}}} | {{{name}}} | ||
</th> | </th> | ||
| Line 29: | Line 32: | ||
<tr><th scope="row">Accuracy</th> <td>{{{accuracy|—}}}</td></tr> | <tr><th scope="row">Accuracy</th> <td>{{{accuracy|—}}}</td></tr> | ||
<tr><th scope="row">PP</th> <td>{{{pp|—}}}</td></tr> | <tr><th scope="row">PP</th> <td>{{{pp|—}}}</td></tr> | ||
</table> | </table> | ||
</includeonly> | </includeonly> | ||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> | ||