Template:Move Infobox: Difference between revisions

From I-Pixelmon
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<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"
Line 17: Line 12:
       ">
       ">


   <!-- title bar: uses the *normal* shade -->
   <!-- title bar -->
   <tr>
   <tr>
     <th colspan="2" class="header-main"style="background-color:#{{{{lc:{{{type|Normal}}}}} color}};">{{{name}}}
     <th colspan="2" class="header-main"
        style="background-color:#{{{{lc:{{{type|Normal}}}}} color}};">
      {{{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 27:
   <tr><th scope="row">PP</th>        <td>{{{pp|—}}}</td></tr>
   <tr><th scope="row">PP</th>        <td>{{{pp|—}}}</td></tr>


  <!-- optional targeting grid (nested table) -->
  {{#if:{{{target|}}}
    |<tr>
      <td colspan="2" style="padding:4px 2px;">
        {{{target}}}
      </td>
    </tr>}}
</table>
</table>
</includeonly>
</includeonly>
<noinclude>{{documentation}}</noinclude>
<noinclude>{{documentation}}</noinclude>

Revision as of 07:47, 25 May 2025