Tags: Reverted wikieditor |
Tags: Manual revert wikieditor |
| Line 36: |
Line 36: |
| </noinclude> | | </noinclude> |
|
| |
|
| <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}}}} | | <includeonly>{{PokemonArray}}{{MoveArray}}{{#if:{{{Theme|}}}|{{#vardefine:cell|#{{{{{Theme}}}_color_light}}}}{{#vardefine:background|#{{{{{Theme}}}_color}}}}{{#vardefine:border|#{{{{{Theme}}}_color_dark}}}}}}{{#vardefine:rows|0}} |
| <td class="keita-pokemon-cell" style="background-color:#{{{{#var:type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#var:type1}}_color_dark}}; padding: 10px; margin: 10px; width: 45%; max-width: 450px; min-width: 300px; vertical-align: top;"> | | |
| <table width="100%" style="text-align: center;">
| | <div class="keita-boss-container" style="max-width: 100%; margin: 0 auto;"> |
| | <table class="keita-boss-table collapsible" style="background-color: {{#var:background}}; border-radius: 25px; border: 3px solid {{#var:border}}; padding: 5px; width: 100%; margin-bottom: 20px;"> |
| <tr> | | <tr> |
| <td colspan="5"> | | <th colspan="12"> |
| <div> | | <div style="margin: auto auto; width: 100%; max-width: 300px; color: {{#var:border}}; background-color: {{#var:cell}}; border: 3px solid {{#var:border}}; border-radius: 25px; padding: 10px;"> |
| [[File:{{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}_{{#var:pname}}|{{#if:{{{Form|}}}|{{{Form}}}_{{#var:pname}}|{{#var:pname}}_Front_Sprite}}}}.png|responsive|max-width=150px]]
| | {{{Boss}}}'s Lineup |
| <div style="background-color:#{{{{#var:type1}}_color}}; border: 1px solid #{{{{#var:type1}}_color_dark}}; border-radius: 25px; padding: 5px; margin: auto auto; margin-top: 5px; margin-bottom: 5px; width: 80%; max-width: 200px; color: #FFFFFF; font-weight: bold;">
| | {{#ifexist:File:{{{Boss}}}.png|<div style="margin-top: 5px; margin-bottom: 5px;">[[File:{{{Boss}}}.png|center|responsive|max-width=200px]]</div>}} |
| {{#if:{{{Counterpart|}}}|{{ucfirst:{{{Counterpart}}}}}}}{{#if:{{{Form|}}}|{{{Form}}}}} [[{{#var:pname}}|<span style="color:#FFFFFF;">{{#var:pname}}</span>]]
| |
| </div>
| |
| </div> | | </div> |
| </td> | | </th> |
| | </tr> |
| | <tr class="keita-lineup-row"> |
| | {{{Lineup|}}} |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td> | | <td colspan="2" style="border-radius: 25px; border: 1px solid {{#var:border}}; background-color: {{#var:cell}}; padding: 10px;"> |
| <table width="100%" align="center" style="text-align: center; margin-bottom: 10px;">
| | <ul style="margin: 0; padding-left: 20px;"> |
| <tr style="background-color: #{{{{#var:type1}}_color}}; color: #FFFFFF;">
| | <li>'''Emboldened''' moves avail from a STAB bonus when deployed by that Pokémon.</li> |
| <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; width: 33%; padding: 5px;">[[Natures|<span style="color: #FFFFFF">Nature</span>]]</th>
| | <li>''Italicized'' moves are functionally broken; see their individualized pages for more information.</li> |
| <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; width: 33%; padding: 5px;">[[Abilities|<span style="color: #FFFFFF">Ability</span>]]</th>
| | </ul> |
| <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; width: 33%; 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>
| |
| <tr>
| |
| <td>
| |
| <!-- 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%;">
| |
| Show Moves
| |
| </div>
| |
| <div class="mw-collapsible-content" style="overflow-x: auto; display: block; clear: both">
| |
| <table class="moves-table" style="width: 100%; text-align: center; border-collapse: collapse">
| |
| <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;">Power</th>
| |
| <th style="border: 1px solid #{{{{#var:type1}}_color_dark}}; padding: 5px;">Accuracy</th>
| |
| </tr>
| |
| {{{Moveset|}}}
| |
| </table>
| |
| </div>
| |
| </div>
| |
| </div> | |
| </td> | | </td> |
| </tr> | | </tr> |
| </table> | | </table> |
| </td> | | </div> |
| {{#ifexpr:{{#var:rows}} = 2|{{#vardefine:rows|0}}</tr><tr class="keita-lineup-row">}}{{#ifeq:{{ucfirst:{{{Form}}}}}|Mega|{{PokemonArray}}}}
| |
| </includeonly> | | </includeonly> |
KeitaBossNPCLineup Template is the main template that adds the Boss name and lineup.
It's used in correspondence with KeitaBossPokemon Template and with the KeitaNPCMove template being an optional addon for adding moves.
Parameters and arguments
- Boss: Input the boss's name (e.g Professor Oak)
- Theme: Input the Theme (Type) you want, or leave empty to pick page's theme, if it has any (e.g Ice)
- Lineup: Marshal the boss's Pokemon lineup in order of deployment using KeitaBossPokemon Template.
Tip: In order to get a image along with the Boss's name, a image with that boss name must exist (e.g Professor Oak)
Example
This example also features the KeitaNPCMove template and KeitaBossPokemon 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| Theme=Ice |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
Professor Oak's Lineup
max-width=200px
|
|
|
|
|
|
|
| Move |
Type |
Category |
Base 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.
|