Template:BossPokemon: Difference between revisions
Jump to navigation
Jump to search
m Slightly optimized the recent tweak. |
Tag: Undo |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
<b>BossPokemon Template</b> is the template that adds the <b>Pokemon lineup</b> to the [[Template:BossNPCLineup|BossNPCLineup Template]]. <br> | |||
It's used in correspondence with [[Template:BossNPCLineup|BossNPCLineup Template]] and with the [[Template:NPCMove|NPCMove template]] being an optional addon for adding moves. <br> | |||
==Parameters and arguments== | |||
<ul> | |||
<li>'''Name:''' Input the Pokemon name (e.g Gyarados)</li> | |||
<li>'''Form:''' Input the Pokemon form/counterpart, if any (e.g Shiny Mega Gyarados or Christmas Zekrom)</li> | |||
<li>'''Nature:''' Input the Pokemon's Nature, if any (e.g Jolly)</li> | |||
<li>'''Ability:''' Input the Pokemon's Ability, if any (e.g Intimidate)</li> | |||
<li>'''Item:''' Input the Pokemon's Held Item, if any (e.g Leftovers)</li> | |||
<li>'''Moveset:''' If the Pokemon have any moves, use the [[Template:NPCMove|NPCMove template]]</li> | |||
</ul> | |||
===Example=== | |||
This example also features the [[Template:NPCMove|NPCMove template]]. <br> | |||
The first Pokemon in the lineup has a complete set of moves and a special form, while the second Pokemon doesn't. <br> | |||
<pre style="color: red"> | |||
<nowiki>{{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 }} | |||
}}</nowiki> | |||
</pre> | |||
=== Result === | |||
{{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 }} | |||
}} | |||
</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>{{#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}}}} | ||
<td style="background-color:#{{{{#var:type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#var:type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 50%;"> | <td style="background-color:#{{{{#var:type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#var:type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 50%;"> |
Latest revision as of 21:22, 8 March 2025
BossPokemon Template is the template that adds the Pokemon lineup to the BossNPCLineup Template.
It's used in correspondence with BossNPCLineup Template and with the NPCMove 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 NPCMove template
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
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|