Template:Move Infobox: Difference between revisions

From I-Pixelmon
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:Move_Infobox/styles.css"/><table class="pkmn-infobox move-infobox"
<templatestyles src="Template:Move_Infobox/styles.css"/>
 
<!-- ── derive colours from the move type ───────────────────────── -->
{{#vardefine:type          | {{{type|Normal}}} }}
{{#vardefine:colordark    | {{ {{lc:{{#var:type}}}} color dark }} }}
{{#vardefine:colornormal  | {{ {{lc:{{#var:type}}}} color }} }}
{{#vardefine:colorlight    | {{ {{lc:{{#var:type}}}} color light }} }}
 
<table class="pkmn-infobox move-infobox"
       style="
       style="
         border-color:#{{#var:colordark}};
        /* outer dark border */
         box-shadow:0 0 0 3px #{{#var:colornormal}} inset;
         border-color:#{{{{lc:{{{type|Normal}}}}} color dark}};
         background-color:#{{#var:colorlight}};
        /* inner normal border */
      ">
         box-shadow:0 0 0 3px #{{{{lc:{{{type|Normal}}}}} color}} inset;
 
        /* light background */
   <!-- title bar (uses *normal* colour) -->
         background-color:#{{{{lc:{{{type|Normal}}}}} color light}};">
   <!-- title bar -->
   <tr>
   <tr>
     <th colspan="2" class="header-main"
     <th colspan="2" class="header-main"style="background-color:#{{{{lc:{{{type|Normal}}}}} color}};">{{{name}}}
        style="background-color:#{{#var:colornormal}};">
      {{{name}}}
     </th>
     </th>
   </tr>
   </tr>
   <!-- core fields -->
   <!-- core fields -->
   <tr><th scope="row">Type</th>      <td>{{{type|—}}}</td></tr>
   <tr><th scope="row">Type</th>      <td>{{{type|—}}}</td></tr>
Line 29: Line 18:
   <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>
  <!-- optional targeting grid (nested table) -->
</includeonly>
  {{#if:{{{target|}}}|<tr><th scope="row" colspan="2" style="text-align: center;">Targeting</th></tr>}}
<noinclude>{{documentation}}</noinclude>
  {{#if:{{{target|}}}|<tr><td colspan="2" style="padding:4px 2px;">{{{target}}}</td></tr>}}
</table></includeonly>
<noinclude>{{Move Infobox|name=Growl|type=Normal|category=Status|power=—|accuracy=100|pp=40|target={{Move Target Grid|hitsAll=1|hitsOppositeFoe=1|hitsAdjacentFoe=1|hitsExtendedFoe=|hitsSelf=|hitsAdjacentAlly=|hitsExtendedAlly=}}}}{{Move Infobox|name=Growl|type=Normal|category=Status|power=—|accuracy=100|pp=40|target={{Move Target Grid|hitsAll=1|hitsOppositeFoe=1|hitsAdjacentFoe=1|hitsExtendedFoe=|hitsSelf=|hitsAdjacentAlly=|hitsExtendedAlly=}}}}{{Move Infobox|name=Growl|type=Normal|category=Status|power=—|accuracy=100|pp=40|target={{Move Target Grid|hitsAll=1|hitsOppositeFoe=1|hitsAdjacentFoe=1|hitsExtendedFoe=|hitsSelf=|hitsAdjacentAlly=|hitsExtendedAlly=}}}}</noinclude>

Latest revision as of 05:28, 17 June 2025

Growl
Type Normal
Category Status
Power
Accuracy 100
PP 40
Targeting
Opponent Opponent Opponent
Self Ally Ally
Growl
Type Normal
Category Status
Power
Accuracy 100
PP 40
Targeting
Opponent Opponent Opponent
Self Ally Ally
Growl
Type Normal
Category Status
Power
Accuracy 100
PP 40
Targeting
Opponent Opponent Opponent
Self Ally Ally