|
|
(57 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| <includeonly> | | <noinclude> |
| {{#arraydefine:lineup|{{{Lineup}}}}}
| | <b>BossNPCLineup Template</b> is the main template that adds the <b>Boss name</b> and <b>lineup</b>. <br> |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{#arrayindex:lineup|0}}|data=name0=Name,number0=Pokedex Number,0type1=Type1,0type2=Type2}}
| | It's used in correspondence with [[:Template:BossPokemon|BossPokemon Template]] and with the [[Template:NPCMove|NPCMove template]] being an optional addon for adding moves. <br> |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{#arrayindex:lineup|1}}|data=name1=Name,number1=Pokedex Number,1type1=Type1,1type2=Type2}}
| | |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{#arrayindex:lineup|2}}|data=name2=Name,number2=Pokedex Number,2type1=Type1,2type2=Type2}}
| | ==Parameters and arguments== |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{#arrayindex:lineup|3}}|data=name3=Name,number3=Pokedex Number,3type1=Type1,3type1=Type2}}
| | <ul> |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{#arrayindex:lineup|4}}|data=name4=Name,number4=Pokedex Number,4type1=Type1,4type2=Type2}}
| | <li>'''Boss:''' Input the boss's name (e.g Professor Oak)</li> |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/PokemonRawList|format=CSV with header|filters=Name={{#arrayindex:lineup|5}}|data=name5=Name,number5=Pokedex Number,5type1=Type1,5type2=Type2}}
| | <li>'''Theme:''' Input the Theme ([[:Category:Pokémon_types|Type]]) you want, or leave empty to pick page's theme, if it has any (e.g Ice)</li> |
| {{#arraydefine:moves0|{{{Moves0}}}}}
| | <li>'''Lineup:''' Marshal the boss's Pokemon lineup in order of deployment using [[:Template:BossPokemon|BossPokemon Template]].</li> |
| {{#arraydefine:moves1|{{{Moves1}}}}}
| | </ul> |
| {{#arraydefine:moves2|{{{Moves2}}}}}
| | <b>Tip:</b> In order to get a image along with the Boss's name, a image with that boss name must exist (e.g Professor Oak) |
| {{#arraydefine:moves3|{{{Moves3}}}}}
| | |
| {{#arraydefine:moves4|{{{Moves4}}}}}
| | ===Example=== |
| {{#arraydefine:moves5|{{{Moves5}}}}}
| | This example also features the [[Template:NPCMove|NPCMove template]] and [[:Template:BossPokemon|BossPokemon Template]]. <br> |
| <table class="pro-table" style="width: 75%; max-width: 100%;"> | | The first Pokemon in the lineup has a complete set of moves and a special form, while the second Pokemon doesn't. <br> |
| <tr><th colspan="6"><div class="pro-table-header" style="margin: auto auto; width: 50%;">{{{Boss}}}'s Lineup</div></th></tr> | | <pre style="color: red"> |
| <tr> | | <nowiki>{{BossNPCLineup| Boss=Professor Oak| Theme=Ice |Lineup= |
| <td class="pro-table-cell">
| | {{BossPokemon | Name=Zekrom | Form=Christmas | Nature=Adamant | Ability=Teravolt | Item=Leftovers | Moveset= |
| <table width="100%" style="text-align: center;">
| | {{NPCMove | Bolt Strike}}{{NPCMove | Stone Edge}}{{ NPCMove | Outrage}}{{NPCMove | Outrage}} }} |
| <tr>
| | |
| <td colspan="5"><div style="background-color:#{{{{#external_value:0type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#external_value:0type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 30%;">[[File:{{#external_value:number0}}{{#external_value:name0}}.png|25px]]</div><div style="background-color:#FFFFFF; border-radius: 25px; border: 3px solid #{{{{#external_value:0type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 20%;">[[{{#external_value:name0}}]]</div></td>
| | {{BossPokemon | Name=Darkrai | Form= | Nature=Timid | Ability=Bad Dreams | Item=Leftovers }} |
| </tr>
| | }}</nowiki> |
| <tr style="background-color: #1B1A1A; color:#FFB600;">
| | </pre> |
| <th style="border-radius: 15px 1px 1px 1px;">Move</th><th>Type</th><th>Category</th><th>Base Power</th><th style="border-radius: 1px 15px 1px 1px;">Accuracy</th>
| | === Result === |
| </tr> | | {{BossNPCLineup| Boss=Professor Oak| Theme=Ice| Lineup= |
| {{#loop:vector0|
| | |
| 0|
| | {{BossPokemon | Name=Zekrom | Form=Christmas | Nature=Adamant | Ability=Teravolt | Item=Leftovers | Moveset= |
| 4|
| | {{NPCMove | Bolt Strike}}{{NPCMove | Stone Edge}}{{ NPCMove | Outrage}}{{NPCMove | Outrage}} }} |
| <tr style="background-color:#DDD; color:#000000;"> | | |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves0|{{#var:vector0}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless}}
| | {{BossPokemon | Name=Darkrai | Form= | Nature=Timid | Ability=Bad Dreams | Item=Leftovers }} |
| <td><span style="{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#ifeq:{{#external_value:0type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:0type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }} }} {{#ifeq:{{#external_value:broken}} | Y | font-style: italic;}}">[[{{#external_value:technique}}]]</span></td> | |
| <td style="background-color: #{{{{#external_value:movetype}}_color}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</td>
| |
| <td style="background-color:#{{{{#external_value:category}}_color}};">[[{{#external_value:category}} Moves|<span style="color:#FFFFFF;">{{#external_value:category}}</span>]]</td>
| |
| <td>{{#if:{{#external_value:power}} | {{#external_value:power}} | — }}</td>
| |
| <td>{{#external_value:accuracy}}</td> | |
| </tr>
| |
| }}
| |
| </table>
| |
| </td>
| |
| </tr>
| |
| <tr>
| |
| <td class="pro-table-cell">
| |
| <table width="100%" style="text-align: center;">
| |
| <tr>
| |
| <td colspan="5"><div style="background-color:#{{{{#external_value:1type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#external_value:1type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 30%;">[[File:{{#external_value:number1}}{{#external_value:name1}}.png|25px]]</div><div style="background-color:#FFFFFF; border-radius: 25px; border: 3px solid #{{{{#external_value:1type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 20%;">[[{{#external_value:name1}}]]</div></td>
| |
| </tr> | |
| <tr style="background-color: #1B1A1A; color:#FFB600;"> | |
| <th style="border-radius: 15px 1px 1px 1px;">Move</th><th>Type</th><th>Category</th><th>Base Power</th><th style="border-radius: 1px 15px 1px 1px;">Accuracy</th>
| |
| </tr> | |
| {{#loop: vector1| | |
| 0|
| |
| 4|
| |
| <tr style="background-color:#DDD; color:#000000;">
| |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves1|{{#var:vector1}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless}} | |
| <td><span style="{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#ifeq:{{#external_value:1type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:1type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }} }} {{#ifeq:{{#external_value:broken}} | Y | font-style: italic;}}">[[{{#external_value:technique}}]]</span></td>
| |
| <td style="background-color: #{{{{#external_value:movetype}}_color}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</td>
| |
| <td style="background-color:#{{{{#external_value:category}}_color}};">[[{{#external_value:category}} Moves|<span style="color:#FFFFFF;">{{#external_value:category}}</span>]]</td>
| |
| <td>{{#if:{{#external_value:power}} | {{#external_value:power}} | — }}</td>
| |
| <td>{{#external_value:accuracy}}</td>
| |
| </tr> | |
| }}
| |
| </table>
| |
| </td>
| |
| </tr>
| |
| <tr>
| |
| <td class="pro-table-cell">
| |
| <table width="100%" style="text-align: center;">
| |
| <tr>
| |
| <td colspan="5"><div style="background-color:#{{{{#external_value:2type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#external_value:2type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 30%;">[[File:{{#external_value:number2}}{{#external_value:name2}}.png|25px]]</div><div style="background-color:#FFFFFF; border-radius: 25px; border: 3px solid #{{{{#external_value:2type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 20%;">[[{{#external_value:name2}}]]</div></td>
| |
| </tr>
| |
| <tr style="background-color: #1B1A1A; color:#FFB600;">
| |
| <th style="border-radius: 15px 1px 1px 1px;">Move</th><th>Type</th><th>Category</th><th>Base Power</th><th style="border-radius: 1px 15px 1px 1px;">Accuracy</th>
| |
| </tr>
| |
| {{#loop: vector2| | |
| 0|
| |
| 4|
| |
| <tr style="background-color:#DDD; color:#000000;">
| |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves2|{{#var:vector2}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless}}
| |
| <td><span style="{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#ifeq:{{#external_value:2type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:2type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }} }} {{#ifeq:{{#external_value:broken}} | Y | font-style: italic;}}">[[{{#external_value:technique}}]]</span></td>
| |
| <td style="background-color: #{{{{#external_value:movetype}}_color}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</td>
| |
| <td style="background-color:#{{{{#external_value:category}}_color}};">[[{{#external_value:category}} Moves|<span style="color:#FFFFFF;">{{#external_value:category}}</span>]]</td>
| |
| <td>{{#if:{{#external_value:power}} | {{#external_value:power}} | — }}</td>
| |
| <td>{{#external_value:accuracy}}</td>
| |
| </tr>
| |
| }} | | }} |
| </table> | | </noinclude> |
| </td> | | |
| </tr> | | <includeonly>{{PokemonArray}}{{MoveArray}}{{#if:{{{Theme|}}}|{{#vardefine:cell|#{{{{{Theme}}}_color_light}}}}{{#vardefine:background|#{{{{{Theme}}}_color}}}}{{#vardefine:border|#{{{{{Theme}}}_color_dark}}}}}}{{#vardefine:rows|0}} |
| | <table class="collapsible" style="background-color: {{#var:background}}; border-radius: 25px; border: 3px solid {{#var:border}}; padding: 5px; width: 100%;"> |
| | <tr><th colspan="12"><div style="margin: auto auto; width: 50%; color: {{#var:border}}; background-color: {{#var:cell}}; border: 3px solid {{#var:border}}; border-radius: 25px;">{{{Boss}}}'s Lineup |
| | {{#ifexist:File:{{{Boss}}}.png|<div style="margin-top: 5px; margin-bottom: 5px;">[[File:{{{Boss}}}.png|center]]</div>}} |
| | </div> |
| | </th></tr> |
| <tr> | | <tr> |
| <td class="pro-table-cell">
| | {{{Lineup|}}} |
| <table width="100%" style="text-align: center;">
| |
| <tr>
| |
| <td colspan="5"><div style="background-color:#{{{{#external_value:3type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#external_value:3type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 30%;">[[File:{{#external_value:number3}}{{#external_value:name3}}.png|25px]]</div><div style="background-color:#FFFFFF; border-radius: 25px; border: 3px solid #{{{{#external_value:3type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 20%;">[[{{#external_value:name3}}]]</div></td>
| |
| </tr>
| |
| <tr style="background-color: #1B1A1A; color:#FFB600;">
| |
| <th style="border-radius: 15px 1px 1px 1px;">Move</th><th>Type</th><th>Category</th><th>Base Power</th><th style="border-radius: 1px 15px 1px 1px;">Accuracy</th>
| |
| </tr>
| |
| {{#loop:vector3|
| |
| 0|
| |
| 4|
| |
| <tr style="background-color:#DDD; color:#000000;">
| |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves3|{{#var:vector3}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless}}
| |
| <td><span style="{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#ifeq:{{#external_value:3type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:3type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }} }} {{#ifeq:{{#external_value:broken}} | Y | font-style: italic;}}">[[{{#external_value:technique}}]]</span></td>
| |
| <td style="background-color: #{{{{#external_value:movetype}}_color}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</td>
| |
| <td style="background-color:#{{{{#external_value:category}}_color}};">[[{{#external_value:category}} Moves|<span style="color:#FFFFFF;">{{#external_value:category}}</span>]]</td>
| |
| <td>{{#if:{{#external_value:power}} | {{#external_value:power}} | — }}</td>
| |
| <td>{{#external_value:accuracy}}</td>
| |
| </tr>
| |
| }}
| |
| </table>
| |
| </td>
| |
| </tr>
| |
| <tr>
| |
| <td class="pro-table-cell">
| |
| <table width="100%" style="text-align: center;">
| |
| <tr>
| |
| <td colspan="5"><div style="background-color:#{{{{#external_value:4type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#external_value:4type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 30%;">[[File:{{#external_value:number4}}{{#external_value:name4}}.png|25px]]</div><div style="background-color:#FFFFFF; border-radius: 25px; border: 3px solid #{{{{#external_value:4type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 20%;">[[{{#external_value:name4}}]]</div></td>
| |
| </tr>
| |
| <tr style="background-color: #1B1A1A; color:#FFB600;">
| |
| <th style="border-radius: 15px 1px 1px 1px;">Move</th><th>Type</th><th>Category</th><th>Base Power</th><th style="border-radius: 1px 15px 1px 1px;">Accuracy</th>
| |
| </tr>
| |
| {{#loop:vector4|
| |
| 0|
| |
| 4|
| |
| <tr style="background-color:#DDD; color:#000000;">
| |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves4|
| |
| {{#var:vector4}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless}}
| |
| <td><span style="{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#ifeq:{{#external_value:4type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:4type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }} }} {{#ifeq:{{#external_value:broken}} | Y | font-style: italic;}}">[[{{#external_value:technique}}]]</span></td>
| |
| <td style="background-color: #{{{{#external_value:movetype}}_color}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</td>
| |
| <td style="background-color:#{{{{#external_value:category}}_color}};">[[{{#external_value:category}} Moves|<span style="color:#FFFFFF;">{{#external_value:category}}</span>]]</td>
| |
| <td>{{#if:{{#external_value:power}} | {{#external_value:power}} | — }}</td>
| |
| <td>{{#external_value:accuracy}}</td>
| |
| </tr>
| |
| }}
| |
| </table>
| |
| </td>
| |
| </tr>
| |
| <tr>
| |
| <td class="pro-table-cell">
| |
| <table width="100%" style="text-align: center;">
| |
| <tr>
| |
| <td colspan="5"><div style="background-color:#{{{{#external_value:5type1}}_color_light}}; border-radius: 25px; border: 3px solid #{{{{#external_value:5type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 30%;">[[File:{{#external_value:number5}}{{#external_value:name5}}.png|25px]]</div><div style="background-color:#FFFFFF; border-radius: 25px; border: 3px solid #{{{{#external_value:5type1}}_color_dark}}; padding: 3px; margin: auto auto; width: 20%;">[[{{#external_value:name5}}]]</div></td>
| |
| </tr>
| |
| <tr style="background-color: #1B1A1A; color:#FFB600;">
| |
| <th style="border-radius: 15px 1px 1px 1px;">Move</th><th>Type</th><th>Category</th><th>Base Power</th><th style="border-radius: 1px 15px 1px 1px;">Accuracy</th>
| |
| </tr>
| |
| {{#loop:vector5|
| |
| 0|
| |
| 4|
| |
| <tr style="background-color:#DDD; color:#000000;">
| |
| {{#get_web_data:url=http://pro-wiki.info/index.php?title=Special:GetData/RawMovesList|format=CSV with header|filters=Name={{#arrayindex:moves5|{{#var:vector5}}}}|data=technique=Name,movetype=Type,category=Category,power=Power,accuracy=Accuracy,pp=PP,broken=Broken,typeless=Typeless}}
| |
| <td><span style="{{#ifeq: {{#external_value:category}} | Status | | {{#ifeq:{{#external_value:typeless}} | N | {{#ifeq:{{#external_value:5type1}} | {{#external_value:movetype}} | font-weight: bold; | {{#ifeq: {{#external_value:5type2}} | {{#external_value:movetype}} | font-weight: bold;}} }} }} }} {{#ifeq:{{#external_value:broken}} | Y | font-style: italic;}}">[[{{#external_value:technique}}]]</span></td>
| |
| <td style="background-color: #{{{{#external_value:movetype}}_color}};">[[{{#external_value:movetype}}_(type)|<span style="color:#FFFFFF;">{{#external_value:movetype}}</span>]]</td>
| |
| <td style="background-color:#{{{{#external_value:category}}_color}};">[[{{#external_value:category}} Moves|<span style="color:#FFFFFF;">{{#external_value:category}}</span>]]</td>
| |
| <td>{{#if:{{#external_value:power}} | {{#external_value:power}} | — }}</td>
| |
| <td>{{#external_value:accuracy}}</td>
| |
| </tr>
| |
| }} | |
| </table>
| |
| </td>
| |
| </tr> | | </tr> |
| <tr> | | <tr> |
| <td> | | <td colspan="2" style="border-radius: 25px; border: 1px solid {{#var:border}}; background-color: {{#var:cell}};"> |
| <ul> | | <ul> |
| <li>'''Emboldened''' moves avail from a STAB bonus when deployed by that Pokémon.</li> | | <li>'''Emboldened''' moves avail from a STAB bonus when deployed by that Pokémon.</li> |