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 21: Line 21:
</noinclude>
</noinclude>


<includeonly>
<includeonly>{{#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}}|{{PokemonArray}}}}
    <td class="boss-pokemon-card" style="background-color:#{{{{#var:type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#var:type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 50%;">
{{#vardefine:pname|{{ucfirst:{{{Name}}}}}}}
    <table width="100%" style="text-align: center;">
{{#vardefine:iteration|{{#arraysearch:pname|{{#var:pname}}}}}}
     <tr>
{{#vardefine:type1|{{#arrayindex:type1|{{#var:iteration}}}}}}
    <td colspan="5"><div>[[File:{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}_{{#var:pname}}|{{#if:{{{Form|}}}|{{{Form}}}_{{#var:pname}}|{{#var:pname}}_Front_Sprite}}}}.png]]<div style="background-color:#{{{{#var:type1}}_color}}; border: 1px solid #{{{{#var:type1}}_color_dark}}; border-radius: 25px; padding: 3px; margin: auto auto; margin-top: 2px; margin-bottom: 3px; width: 45%; color: #FFFFFF; font-weight: bold;">{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}}}{{#if:{{{Form|}}}|{{{Form}}}}} [[{{#var:pname}}|<span style="color:#FFFFFF;">{{#var:pname}}</span>]]</div></div></td>
{{#vardefine:type2|{{#arrayindex:type2|{{#var:iteration}}}}}}
     </tr>
<div class="pokemon-card" style="border-color: #{{{{#var:type1}}_color_dark}};">
    <tr>
  <div class="pokemon-image">
    <td>
     [[File:{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}_{{#var:pname}}|{{#if:{{{Form|}}}|{{{Form}}}_{{#var:pname}}|{{#var:pname}}_Front_Sprite}}}}.png]]
    <table width="75%" align="center" style="text-align: center;">
  </div>
    <tr style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF;">
  <div class="pokemon-info">
    <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; width: 33% ">[[Natures|<span style="color: #FFFFFF">Nature</span>]]</th><th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; width: 33% ">[[Abilities|<span style="color: #FFFFFF">Ability</span>]]</th><th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; width: 33% ">Item</th></tr>
    <h2 style="color: #{{{{#var:type1}}_color}};">{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}}}{{#if:{{{Form|}}}|{{{Form}}}}} {{#var:pname}}</h2>
    <tr style="background-color: #FFFFFF; cellpadding: 3px">
     <div class="pokemon-type">
    <td>{{#if:{{{Nature|}}}|{{{Nature}}}|Random}}</td>
      <span class="type-badge" style="background-color: #{{{{#var:type1}}_color}};">{{#var:type1}}</span>
    <td>{{#if:{{{Ability|}}}|[[{{{Ability}}}_(ability)|{{{Ability}}}]]|Random}}</td>
      {{#if:{{#var:type2}}|<span class="type-badge" style="background-color: #{{{{#var:type2}}_color}};">{{#var:type2}}</span>}}
    <td>{{#if:{{{Item|}}}|[[{{{Item}}}]]|None}}</td>
    </tr>
    </table>
    <tr>
    <td>
    <table width="100%" class="collapsible collapsed moves-table" style="text-align: center;">
    <tr style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF;">
    <th style="border: 1px solid #{{{{#var:type1}}_color_dark}};">Move</th><th style="border: 1px solid #{{{{#var:type1}}_color_dark}};">Type</th><th style="border: 1px solid #{{{{#var:type1}}_color_dark}};">Category</th><th class="power-column" style="border: 1px solid #{{{{#var:type1}}_color_dark}};">Base Power</th><th class="accuracy-column" style="border: 1px solid #{{{{#var:type1}}_color_dark}};">Accuracy</th>
    </tr>
    {{{Moveset|}}}
    </table>
    <!-- Show Moves button added at the bottom -->
    <div class="show-moves-button" style="text-align: center; margin-top: 5px;">
      <span class="mw-collapsible-toggle" style="cursor: pointer; background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF; padding: 3px 8px; border-radius: 10px; display: inline-block; font-weight: bold; border: 1px solid #{{{{#var:type1}}_color_dark}};">Show Moves</span>
     </div>
     </div>
     <div class="pokemon-details">
     </td>
      <p><strong>Nature:</strong> {{#if:{{{Nature|}}}|{{{Nature}}}|Random}}</p>
    </tr>
      <p><strong>Ability:</strong> {{#if:{{{Ability|}}}|[[{{{Ability}}}_(ability)|{{{Ability}}}]]|Random}}</p>
    </table>
      <p><strong>Item:</strong> {{#if:{{{Item|}}}|[[{{{Item}}}]]|None}}</p>
    </td>
    </div>
    {{#ifexpr:{{#var:rows}} = 2|{{#vardefine:rows|0}}</tr><tr>}}{{#ifeq:{{ucfirst:{{{Form}}}}}|Mega|{{PokemonArray}}}}</includeonly>
  </div>
  <div class="moves-section">
    <button class="show-moves">Show Moves</button>
    <div class="moves-table-wrapper" style="display: none;">
      <table class="moves-table">
        <thead>
          <tr>
            <th>Move</th>
            <th>Type</th>
            <th>Category</th>
            <th>Base Power</th>
            <th>Accuracy</th>
          </tr>
        </thead>
        <tbody>
          {{{Moveset|}}}
        </tbody>
      </table>
    </div>
  </div>
</div>
</includeonly>

Revision as of 21:32, 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.