Template:KeitaBossPokemon: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 22: Line 22:


<includeonly>
<includeonly>
{{#ifeq:{{ucfirst:{{{Form}}}}}|Mega|{{MegaPokemonArray}}}}
{{#ifeq:{{ucfirst:{{{Form|}}}}}|Mega|{{MegaPokemonArray}}|{{PokemonArray}}}}
{{#vardefine:pname|{{ucfirst:{{{Name}}}}}}}
{{#vardefine:pname|{{ucfirst:{{{Name}}}}}}}
{{#vardefine:iteration|{{#arraysearch:pname|{{#var:pname}}}}}}
{{#vardefine:iteration|{{#arraysearch:pname|{{#var:pname}}}}}}
{{#vardefine:type1|{{#arrayindex:type1|{{#var:iteration}}}}}}
{{#vardefine:type1|{{#arrayindex:type1|{{#var:iteration}}}}}}
{{#vardefine:type2|{{#arrayindex:type2|{{#var:iteration}}}}}}
{{#vardefine:type2|{{#arrayindex:type2|{{#var:iteration}}}}}}
{{#vardefine:rows|{{#expr:{{#var:rows}}+1}}}}
<div class="pokemon-card" style="border-color: #{{{{#var:type1}}_color_dark}};">
 
  <div class="pokemon-image">
<div class="boss-pokemon-card" style="background-color:#{{{{#var:type1}}_color_light}}; border-radius: 12px; border: 2px solid #{{{{#var:type1}}_color_dark}}; padding: 10px; margin: 10px; width: 100%; box-shadow: 0 2px 5px rgba(0,0,0,0.1);">
    [[File:{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}_{{#var:pname}}|{{#if:{{{Form|}}}|{{{Form}}}_{{#var:pname}}|{{#var:pname}}_Front_Sprite}}}}.png]]
   <div class="pokemon-header" style="text-align: center;">
  </div>
     <div class="pokemon-image">
   <div class="pokemon-info">
      [[File:{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}_{{#var:pname}}|{{#if:{{{Form|}}}|{{{Form}}}_{{#var:pname}}|{{#var:pname}}_Front_Sprite}}}}.png]]
     <h2 style="color: #{{{{#var:type1}}_color}};">{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}}}{{#if:{{{Form|}}}|{{{Form}}}}} {{#var:pname}}</h2>
    <div class="pokemon-type">
      <span class="type-badge" style="background-color: #{{{{#var:type1}}_color}};">{{#var:type1}}</span>
      {{#if:{{#var:type2}}|<span class="type-badge" style="background-color: #{{{{#var:type2}}_color}};">{{#var:type2}}</span>}}
     </div>
     </div>
     <div class="pokemon-name" style="background-color:#{{{{#var:type1}}_color}}; border: 1px solid #{{{{#var:type1}}_color_dark}}; border-radius: 20px; padding: 5px; margin: 8px auto; max-width: 200px; color: #FFFFFF; font-weight: bold;">
     <div class="pokemon-details">
       {{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}}}{{#if:{{{Form|}}}|{{{Form}}}}} [[{{#var:pname}}|<span style="color:#FFFFFF;">{{#var:pname}}</span>]]
      <p><strong>Nature:</strong> {{#if:{{{Nature|}}}|{{{Nature}}}|Random}}</p>
       <p><strong>Ability:</strong> {{#if:{{{Ability|}}}|[[{{{Ability}}}_(ability)|{{{Ability}}}]]|Random}}</p>
      <p><strong>Item:</strong> {{#if:{{{Item|}}}|[[{{{Item}}}]]|None}}</p>
     </div>
     </div>
   </div>
   </div>
 
   <div class="moves-section">
   <div class="pokemon-info-container">
     <button class="show-moves">Show Moves</button>
     <table class="pokemon-info-table" style="width: 90%; margin: 0 auto; text-align: center; border-collapse: collapse; border-spacing: 0;">
     <div class="moves-table-wrapper" style="display: none;">
      <tr style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF;">
       <table class="moves-table">
        <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px; border-radius: 5px 0 0 0;">[[Natures|<span style="color: #FFFFFF">Nature</span>]]</th>
         <thead>
        <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;">[[Abilities|<span style="color: #FFFFFF">Ability</span>]]</th>
          <tr>
        <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px; border-radius: 0 5px 0 0;">Item</th>
            <th>Move</th>
      </tr>
            <th>Type</th>
      <tr style="background-color: #FFFFFF;">
            <th>Category</th>
        <td style="padding: 6px; border: 1px solid #{{{{#var:type1}}_color_light}};">{{#if:{{{Nature|}}}|{{{Nature}}}|Random}}</td>
            <th>Base Power</th>
        <td style="padding: 6px; border: 1px solid #{{{{#var:type1}}_color_light}};">{{#if:{{{Ability|}}}|[[{{{Ability}}}_(ability)|{{{Ability}}}]]|Random}}</td>
            <th>Accuracy</th>
        <td style="padding: 6px; border: 1px solid #{{{{#var:type1}}_color_light}};">{{#if:{{{Item|}}}|[[{{{Item}}}]]|None}}</td>
          </tr>
      </tr>
         </thead>
    </table>
         <tbody>
   
          {{{Moveset|}}}
     <div class="moves-container" style="margin-top: 10px;">
        </tbody>
       <table class="moves-table collapsible collapsed" style="width: 100%; margin: 0 auto; text-align: center; border-collapse: collapse; border-spacing: 0;">
         <tr style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF;">
          <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;">Move</th>
          <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;">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;">Base Power</th>
          <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;">Accuracy</th>
         </tr>
         {{{Moveset|}}}
       </table>
       </table>
     
      <!-- Show Moves button positioned below the moves table as required -->
      <div class="show-moves-button" style="text-align: center; margin-top: 8px;">
        <span class="mw-collapsible-toggle" style="cursor: pointer; background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF; padding: 5px 10px; border-radius: 5px; display: inline-block; font-weight: bold; border: 1px solid #{{{{#var:type1}}_color_dark}};">Show Moves</span>
      </div>
     </div>
     </div>
   </div>
   </div>
</div>
</div>
{{#ifexpr:{{#var:rows}} = 2|{{#vardefine:rows|0}}</tr><tr>}}
{{#ifeq:{{ucfirst:{{{Form}}}}}|Mega|{{PokemonArray}}}}
</includeonly>
</includeonly>

Revision as of 21:30, 8 March 2025

Example

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

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

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

Result

Professor Oak's Lineup
Christmas Zekrom
NatureAbilityItem
Adamant Teravolt Leftovers
NatureAbilityItem
Timid Bad Dreams Leftovers
  • 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.