Template:KeitaBossPokemon: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 37: Line 37:
   >{{#ifeq:{{ucfirst:{{{Form}}}}}|Mega|{{MegaPokemonArray}}}}{{#vardefine:pname|{{ucfirst:{{{Name}}}}}}}{{#vardefine:iteration|{{#arraysearch:pname|{{#var:pname}}}}}}{{#vardefine:type1|{{#arrayindex:type1|{{#var:iteration}}}}}}{{#vardefine:type2|{{#arrayindex:type2|{{#var:iteration}}}}}}{{#vardefine:rows|{{#expr:{{#var:rows}}+1}}}}
   >{{#ifeq:{{ucfirst:{{{Form}}}}}|Mega|{{MegaPokemonArray}}}}{{#vardefine:pname|{{ucfirst:{{{Name}}}}}}}{{#vardefine:iteration|{{#arraysearch:pname|{{#var:pname}}}}}}{{#vardefine:type1|{{#arrayindex:type1|{{#var:iteration}}}}}}{{#vardefine:type2|{{#arrayindex:type2|{{#var:iteration}}}}}}{{#vardefine:rows|{{#expr:{{#var:rows}}+1}}}}


   <div
   <div class="keita-card-wrapper" style="display: flex; padding: 1rem">
    class="pokemon-card"
    style="background-color:#{{{{#var:type1}}_color_light}}; border-radius: 15px; border: 2px solid #{{{{#var:type1}}_color_dark}}; padding: 10px; flex: 1 1 300px; min-width: 300px; max-width: 100%;"
  >
    <div class="pokemon-header" style="text-align: center">
      <div class="pokemon-image">
        [[File:{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}_{{#var:pname}}|{{#if:{{{Form|}}}|{{{Form}}}_{{#var:pname}}|{{#var:pname}}_Front_Sprite}}}}.png|max-width=100%]]
      </div>
      <div
        class="pokemon-name"
        style="background-color:#{{{{#var:type1}}_color}}; border: 1px solid #{{{{#var:type1}}_color_dark}}; border-radius: 15px; padding: 5px; margin: 5px auto; max-width: 200px; color: #FFFFFF; font-weight: bold;"
      >
        {{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}}}{{#if:{{{Form|}}}|{{{Form}}}}}
        [[{{#var:pname}}|<span style="color: #ffffff">{{#var:pname}}</span>]]
      </div>
    </div>
 
<!--Nature, Ability, Item Table  -->
    <div class="pokemon-stats" style="margin-top: 10px">
      <table
        class="pokemon-info-table"
        style="
          width: 100%;
          text-align: center;
          border-collapse: collapse;
          margin-bottom: 10px;
        "
      >
        <tr
          style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF;"
        >
          <th
            style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
          >
            [[Natures|<span style="color: #ffffff">Nature</span>]]
          </th>
          <th
            style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
          >
            [[Abilities|<span style="color: #ffffff">Ability</span>]]
          </th>
          <th
            style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
          >
            Item
          </th>
        </tr>
        <tr style="background-color: #ffffff">
          <td style="padding: 5px">
            {{#if:{{{Nature|}}}|{{{Nature}}}|Random}}
          </td>
          <td style="padding: 5px">
            {{#if:{{{Ability|}}}|[[{{{Ability}}}_(ability)|{{{Ability}}}]]|Random}}
          </td>
          <td style="padding: 5px">{{#if:{{{Item|}}}|[[{{{Item}}}]]|None}}</td>
        </tr>
      </table>
    </div>
<!--  Pokemon Moves Table -->
<div class="pokemon-moves">
  <div class="mw-collapsible mw-collapsed" style="width: 100%">
     <div
     <div
       class="mw-collapsible-toggle"
       class="pokemon-card"
       style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF; padding: 5px; border-radius: 5px; text-align: center; cursor: pointer; margin-bottom: 5px; display: block; width: 100%;"
       style="background-color:#{{{{#var:type1}}_color_light}}; border-radius: 15px; border: 2px solid #{{{{#var:type1}}_color_dark}}; padding: 10px; flex: 1 1 300px; min-width: 300px; max-width: 100%;"
     >
     >
       Show Moves
       <div class="pokemon-header" style="text-align: center">
    </div>
        <div class="pokemon-image">
    <div class="mw-collapsible-content" style="overflow-x: auto; display: block; clear: both;">
          [[File:{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}_{{#var:pname}}|{{#if:{{{Form|}}}|{{{Form}}}_{{#var:pname}}|{{#var:pname}}_Front_Sprite}}}}.png|max-width=100%]]
       <table
        </div>
        class="moves-table"
        <div
        style="width: 100%; text-align: center; border-collapse: collapse"
          class="pokemon-name"
      >
          style="background-color:#{{{{#var:type1}}_color}}; border: 1px solid #{{{{#var:type1}}_color_dark}}; border-radius: 15px; padding: 5px; margin: 5px auto; max-width: 200px; color: #FFFFFF; font-weight: bold;"
        <tr
        >
          style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF;"
          {{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}}}{{#if:{{{Form|}}}|{{{Form}}}}}
          [[{{#var:pname}}|<span style="color: #ffffff">{{#var:pname}}</span>]]
        </div>
      </div>
       <!--Nature, Ability, Item Table  -->
      <div class="pokemon-stats" style="margin-top: 10px">
        <table
          class="pokemon-info-table"
          style="
            width: 100%;
            text-align: center;
            border-collapse: collapse;
            margin-bottom: 10px;
          "
         >
         >
           <th
           <tr
             style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
             style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF;"
           >
           >
             Move
             <th
          </th>
              style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
          <th
            >
             style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
              [[Natures|<span style="color: #ffffff">Nature</span>]]
            </th>
            <th
              style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
            >
              [[Abilities|<span style="color: #ffffff">Ability</span>]]
            </th>
             <th
              style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
            >
              Item
            </th>
          </tr>
          <tr style="background-color: #ffffff">
            <td style="padding: 5px">
              {{#if:{{{Nature|}}}|{{{Nature}}}|Random}}
            </td>
            <td style="padding: 5px">
              {{#if:{{{Ability|}}}|[[{{{Ability}}}_(ability)|{{{Ability}}}]]|Random}}
            </td>
            <td style="padding: 5px">
              {{#if:{{{Item|}}}|[[{{{Item}}}]]|None}}
            </td>
          </tr>
        </table>
      </div>
      <!--  Pokemon Moves Table -->
      <div class="pokemon-moves">
        <div class="mw-collapsible mw-collapsed" style="width: 100%">
          <div
            class="mw-collapsible-toggle"
            style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF; padding: 5px; border-radius: 5px; text-align: center; cursor: pointer; margin-bottom: 5px; display: block; width: 100%;"
           >
           >
             Type
             Show Moves
           </th>
           </div>
           <th
           <div
             style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
            class="mw-collapsible-content"
             style="overflow-x: auto; display: block; clear: both"
           >
           >
             Category
             <table
          </th>
              class="moves-table"
          <th
              style="width: 100%; text-align: center; border-collapse: collapse"
            style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
            >
          >
              <tr
            Power
                style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF;"
          </th>
              >
          <th
                <th
            style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
                  style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
          >
                >
            Accuracy
                  Move
          </th>
                </th>
        </tr>
                <th
        {{{Moveset|}}}
                  style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
       </table>
                >
                  Type
                </th>
                <th
                  style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
                >
                  Category
                </th>
                <th
                  style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
                >
                  Power
                </th>
                <th
                  style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;"
                >
                  Accuracy
                </th>
              </tr>
              {{{Moveset|}}}
            </table>
          </div>
        </div>
       </div>
     </div>
     </div>
  </div>
</div>
   </div>
   </div>
   {{#ifeq:{{ucfirst:{{{Form}}}}}|Mega|{{PokemonArray}}}}
   {{#ifeq:{{ucfirst:{{{Form}}}}}|Mega|{{PokemonArray}}}}
</includeonly>
</includeonly>

Revision as of 14:23, 9 March 2025


KeitaBossPokemon Template is the template that adds the Pokemon lineup to the KeitaBossNPCLineup Template.
It's used in correspondence with KeitaBossNPCLineup Template and with the KeitaNPCMove template being an optional addon for adding moves.

Parameters and arguments

  • Name: Input the Pokemon name (e.g Gyarados)
  • Form: Input the Pokemon form/counterpart, if any (e.g Shiny Mega Gyarados or Christmas Zekrom)
  • Nature: Input the Pokemon's Nature, if any (e.g Jolly)
  • Ability: Input the Pokemon's Ability, if any (e.g Intimidate)
  • Item: Input the Pokemon's Held Item, if any (e.g Leftovers)
  • Moveset: If the Pokemon have any moves, use the KeitaNPCMove template

Example

This example also features the KeitaNPCMove template.
The first Pokemon in the lineup has a complete set of moves and a special form, while the second Pokemon doesn't.

{{KeitaBossNPCLineup| Boss=Professor Oak| Lineup=
{{KeitaBossPokemon | Name=Zekrom | Form=Christmas | Nature=Adamant | Ability=Teravolt | Item=Leftovers | Moveset=
{{KeitaNPCMove | Bolt Strike}}{{KeitaNPCMove | Stone Edge}}{{ KeitaNPCMove | Outrage}}{{KeitaNPCMove | Outrage}} }}

{{KeitaBossPokemon | Name=Darkrai | Form= | Nature=Timid | Ability=Bad Dreams | Item=Leftovers }}
}}

Result

         max-width=100%
         Christmas
         Zekrom
         Professor Oak's Lineup
max-width=200px
max-width=200px
             Nature
             Ability
             Item
             Adamant
             Teravolt
             Leftovers
           Show Moves
                 Move
                 Type
                 Category
                 Power
                 Accuracy
Bolt Strike Electric Physical 130 85
Stone Edge Rock Physical 100 80
Outrage Dragon Physical 120 100
Outrage Dragon Physical 120 100





           Show Moves
                 Move
                 Type
                 Category
                 Power
                 Accuracy
  • Emboldened moves avail from a STAB bonus when deployed by that Pokémon.
  • Italicized moves are functionally broken; see their individualized pages for more information.