Template:Party/Tag/doc: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
< Template:Party | Tag
Jump to navigationJump to search
(Usage notes. If I forgot anything, let me know.) |
(details + update to current documentation style) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{template|Party/Tag}} is used to display detailed info on a team's party and Pokémon for a battle against two Trainers. For battles against a single Trainer, use {{template|Party/Single}}. | |||
==How to use:== | ==How to use:== | ||
* Use {{template|Party/Tag}} at the top. | |||
* Use up to six [[Special:PrefixIndex/Template:Pokémon/|<code><nowiki>{{Pokémon/.}}</nowiki></code>]] templates (upto three for each trainer), selecting the appropriate generation subtemplate. | |||
* All Pokémon entries must have a vertical pipe "<code><nowiki>|</nowiki></code>" before them. | |||
** If either Trainer has less than three Pokémon, all of that Trainer's Pokémon entries must begin with "<code><nowiki>| style="margin:auto" |</nowiki></code>" instead. | |||
* After the first Trainer's Pokémon, use {{template|Party/Div}}. It contains only one parameter; '''color''', which should match the head template's '''headcolor2''' parameter in battles against two Trainers. | |||
* After the second Trainer's final Pokémon, use {{template|Party/Footer}} to close the template. It has no parameters. | |||
<pre> | |||
{{Party/Tag | |||
|color= | |||
|bordercolor= | |||
|headcolor= | |||
|color1= | |||
|bordercolor1= | |||
|headcolor1= | |||
|bordercolor2= | |||
|headcolor2= | |||
|class= | |||
|classlink= | |||
|name= | |||
|sprite= | |||
|size= | |||
|class2= | |||
|classlink2= | |||
|name2= | |||
|sprite2= | |||
|size2= | |||
|game= | |||
|location= | |||
|locationname= | |||
|prize= | |||
|pokemon1= | |||
|pokemon2= | |||
}} | |||
</pre> | |||
===Parameters=== | ===Parameters=== | ||
{| | All parameters are case sensitive. | ||
! | {| class="wikitable" style="background: #e5f1ec; margin:1em auto;" | ||
! | |- | ||
! style="background: #d1e5d9" | Parameter | |||
! style="background: #d1e5d9" | Allowed values | |||
! style="background: #d1e5d9" | Notes | |||
|- | |||
| color | |||
| rowspan="8" | [[Help:Color templates|''Color template'']] | |||
| Main background color. | | Main background color. | ||
|- | |- | ||
| bordercolor | |||
| Border color. | | Border color. | ||
|- | |- | ||
| headcolor | |||
| Trainer information background color. | | Trainer information background color. | ||
|- | |- | ||
| color1 | |||
| First Trainer background color. | | First Trainer background color. | ||
|- | |- | ||
| bordercolor1 | |||
| First Trainer border color. | | First Trainer border color. | ||
|- | |- | ||
| headcolor1 | |||
| First Trainer sprite background color. | | First Trainer sprite background color. | ||
|- | |- | ||
| bordercolor2 | |||
| | |||
| Second Trainer border color. | | Second Trainer border color. | ||
|- | |- | ||
| headcolor2 | |||
| Second Trainer sprite background color. | | Second Trainer sprite background color. | ||
|- | |- | ||
| class | |||
| ''String'' | |||
| First Trainer's [[Trainer class]]. | | First Trainer's [[Trainer class]]. | ||
|- | |- | ||
| classlink | |||
| | | ''String'' | ||
|- | | '''Optional'''. Link override for the first trainer's Trainer class. | ||
|- | |||
| name | |||
| ''String'' | |||
| First Trainer's name. | | First Trainer's name. | ||
|- | |- | ||
| sprite | |||
| First Trainer's sprite. | | ''Filename'' | ||
|- | | First Trainer's sprite filename, with filename extension. | ||
|- | |||
| size | |||
| ''Filesize'' | |||
| Size of First Trainer's sprite, only if size reduction is required. | | Size of First Trainer's sprite, only if size reduction is required. | ||
|- | |- | ||
| class2 | |||
| ''String'' | |||
| Second Trainer's [[Trainer class]]. | | Second Trainer's [[Trainer class]]. | ||
|- | |- | ||
| classlink2 | |||
| | | ''String'' | ||
|- | | '''Optional'''. Link override for the second trainer's Trainer class. | ||
|- | |||
| name2 | |||
| ''String'' | |||
| Second Trainer's name. | | Second Trainer's name. | ||
|- | |- | ||
| sprite2 | |||
| Second Trainer's sprite. | | ''Filename'' | ||
|- | | Second Trainer's sprite filename, with filename extension. | ||
|- | |||
| size2 | |||
| ''Filesize'' | |||
| Size of Second Trainer's sprite, only if size reduction is required. | | Size of Second Trainer's sprite, only if size reduction is required. | ||
|- | |- | ||
| prize | |||
| Prize for defeating the Trainers without | | ''String'' | ||
|- | | Prize for defeating the Trainers, without any money-increasing effects applied. | ||
Entering "<code>none</code>" (case-sensitive) hides the prize display. | |||
| | |- | ||
|- | | game | ||
| [[#Game codes|''Valid abbreviation'']] • ''String'' | |||
| | | Game(s) the battle takes place in. | ||
|- | |- | ||
| location | |||
| | | ''String'' | ||
|- | | Location where the battle takes place. | ||
|- | |||
| locationname | |||
| ''String'' | |||
| '''Optional'''. Display override for the location. | |||
|- | |||
| pokemon1 | |||
| <code>1</code> • <code>2</code> • <code>3</code> | |||
| Number of Pokémon in the first Trainer's party. | | Number of Pokémon in the first Trainer's party. | ||
|- | |- | ||
| pokemon2 | |||
| | | <code>0</code> • <code>1</code> • <code>2</code> • <code>3</code> | ||
| Number of Pokémon in the second Trainer's party. | |||
|} | |} | ||
{| id="Game codes" class="wikitable mw-collapsible mw-collapsed" style="background: #e5f1ec; margin:1em auto;" | |||
|+ style="white-space:nowrap" | List of allowed game abbreviations | |||
|- style="background: #d1e5d9" | |||
! Abbreviation !! Game | |||
|- | |||
| <code>RG</code> | |||
| [[Pokémon Red and Green Versions|Red and Green]] | |||
|- | |||
| <code>RGB</code> | |||
| [[Pokémon Red and Green Versions|Red, Green]], and [[Pokémon Blue Version (Japanese)|Blue]] | |||
|- | |||
| <code>RGBY</code> | |||
| [[Pokémon Red and Green Versions|Red, Green]], [[Pokémon Blue Version (Japanese)|Blue]], and [[Pokémon Yellow Version|Yellow]] | |||
|- | |||
| <code>Y</code> | |||
| [[Pokémon Yellow Version|Yellow]] | |||
|- | |||
| <code>GS</code> | |||
| [[Pokémon Gold and Silver Versions|Gold and Silver]] | |||
|- | |||
| <code>GSC</code> | |||
| [[Pokémon Gold and Silver Versions|Gold, Silver]], and [[Pokémon Crystal Version|Crystal]] | |||
|- | |||
| <code>C</code> | |||
| [[Pokémon Crystal Version|Crystal]] | |||
|- | |||
| <code>Ru</code> | |||
| [[Pokémon Ruby and Sapphire Versions|Ruby]] | |||
|- | |||
| <code>Sa</code> | |||
| [[Pokémon Ruby and Sapphire Versions|Sapphire]] | |||
|- | |||
| <code>RS</code> • <code>RuSa</code> | |||
| [[Pokémon Ruby and Sapphire Versions|Ruby and Sapphire]] | |||
|- | |||
| <code>RSE</code> | |||
| [[Pokémon Ruby and Sapphire Versions|Ruby, Sapphire]], and [[Pokémon Emerald Version|Emerald]] | |||
|- | |||
| <code>RE</code> | |||
| [[Pokémon Ruby and Sapphire Versions|Ruby]] and [[Pokémon Emerald Version|Emerald]] | |||
|- | |||
| <code>SE</code> | |||
| [[Pokémon Ruby and Sapphire Versions|Sapphire]] and [[Pokémon Emerald Version|Emerald]] | |||
|- | |||
| <code>E</code> | |||
| [[Pokémon Emerald Version|Emerald]] | |||
|- | |||
| <code>FRLG</code> • <code>FL</code> | |||
| [[Pokémon FireRed and LeafGreen Versions|FireRed and LeafGreen]] | |||
|- | |||
| <code>DP</code> | |||
| [[Pokémon Diamond and Pearl Versions|Diamond and Pearl]] | |||
|- | |||
| <code>DPP</code> • <code>DPPt</code> | |||
| [[Pokémon Diamond and Pearl Versions|Diamond, Pearl]], and [[Pokémon Platinum Version|Platinum]] | |||
|- | |||
| <code>Pt</code> | |||
| [[Pokémon Platinum Version|Platinum]] | |||
|- | |||
| <code>HGSS</code> • <code>HS</code> | |||
| [[Pokémon HeartGold and SoulSilver Versions|HeartGold and SoulSilver]] | |||
|- | |||
| <code>PtHGSS</code> | |||
| [[Pokémon Platinum Version|Platinum]], [[Pokémon HeartGold and SoulSilver Versions|HeartGold, and SoulSilver]] | |||
|- | |||
| <code>BW</code> | |||
| [[Pokémon Black and White Versions|Black and White]] | |||
|- | |||
| <code>Bl</code> | |||
| [[Pokémon Black and White Versions|Black]] | |||
|- | |||
| <code>W</code> | |||
| [[Pokémon Black and White Versions|White]] | |||
|- | |||
| <code>B2W2</code> | |||
| [[Pokémon Black and White Versions 2|Black 2 and White 2]] | |||
|- | |||
| <code>B2</code> | |||
| [[Pokémon Black and White Versions 2|Black 2]] | |||
|- | |||
| <code>W2</code> | |||
| [[Pokémon Black and White Versions 2|White 2]] | |||
|- | |||
| <code>BWB2W2</code> | |||
| [[Pokémon Black and White Versions|Black, White]], [[Pokémon Black and White Versions 2|Black 2, and White 2]] | |||
|- | |||
| <code>XY</code> | |||
| [[Pokémon X and Y|X and Y]] | |||
|- | |||
| <code>X</code> | |||
| [[Pokémon X and Y|X]] | |||
|- | |||
| <code>y</code> | |||
| [[Pokémon X and Y|Y]] | |||
|- | |||
| <code>ORAS</code> | |||
| [[Pokémon Omega Ruby and Alpha Sapphire|Omega Ruby and Alpha Sapphire]] | |||
|- | |||
| <code>OR</code> | |||
| [[Pokémon Omega Ruby and Alpha Sapphire|Omega Ruby]] | |||
|- | |||
| <code>AS</code> | |||
| [[Pokémon Omega Ruby and Alpha Sapphire|Alpha Sapphire]] | |||
|- | |||
| <code>SM</code> | |||
| [[Pokémon Sun and Moon|Sun and Moon]] | |||
|- | |||
| <code>Su</code> | |||
| [[Pokémon Sun and Moon|Sun]] | |||
|- | |||
| <code>M</code> | |||
| [[Pokémon Sun and Moon|Moon]] | |||
|- | |||
| <code>SMUSUM</code> | |||
| [[Pokémon Sun and Moon|Sun, Moon]], [[Pokémon Ultra Sun and Ultra Moon|Ultra Sun, and Ultra Moon]] | |||
|- | |||
| <code>USUM</code> | |||
| [[Pokémon Ultra Sun and Ultra Moon|Ultra Sun and Ultra Moon]] | |||
|- | |||
| <code>US</code> | |||
| [[Pokémon Ultra Sun and Ultra Moon|Ultra Sun]] | |||
|- | |||
| <code>UM</code> | |||
| [[Pokémon Ultra Sun and Ultra Moon|Ultra Moon]] | |||
|- | |||
| <code>LGPE</code> • <code>PE</code> | |||
| [[Pokémon: Let's Go, Pikachu! and Let's Go, Eevee!|Let's Go, Pikachu! and Let's Go, Eevee!]] | |||
|- | |||
| <code>LGP</code> | |||
| [[Pokémon: Let's Go, Pikachu! and Let's Go, Eevee!|Let's Go, Pikachu!]] | |||
|- | |||
| <code>LGE</code> | |||
| [[Pokémon: Let's Go, Pikachu! and Let's Go, Eevee!|Let's Go, Eevee!]] | |||
|- | |||
| <code>SwSh</code> | |||
| [[Pokémon Sword and Shield|Sword and Shield]] | |||
|- | |||
| <code>BDSP</code> | |||
| [[Pokémon Brilliant Diamond and Shining Pearl|Brilliant Diamond and Shining Pearl]] | |||
|- | |||
| <code>SV</code> | |||
| [[Pokémon Scarlet and Violet|Scarlet and Violet]] | |||
|- | |||
| <code>Colo</code> | |||
| [[Pokémon Colosseum|Colosseum]] | |||
|- | |||
| <code>XD</code> | |||
| [[Pokémon XD: Gale of Darkness|Pokémon XD]] | |||
|- | |||
| <code>PBR</code> | |||
| [[Pokémon Battle Revolution|Pokémon Battle Revolution]] | |||
|} | |||
==Example== | |||
The code of Pokémon block is not shown in the below example. | |||
<pre><nowiki>{{Party/Tag | <pre><nowiki>{{Party/Tag | ||
|color={{kalos color}} | |color={{kalos color}} | ||
Line 117: | Line 319: | ||
|pokemon2=1 | |pokemon2=1 | ||
}} | }} | ||
| style="margin:auto" | {{Pokémon/6 | |||
| style="margin:auto" | {{Pokémon/6}} | |||
| style="margin:auto" | {{Pokémon/6}} | |||
| style="margin:auto" | {{Pokémon/6 | |||
{{Party/Div|color={{orange color}}}} | {{Party/Div|color={{orange color}}}} | ||
| style="margin:auto" | {{Pokémon/6 | |||
| style="margin:auto" | {{Pokémon/6}} | |||
{{Party/Footer}} | {{Party/Footer}} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 195: | Line 372: | ||
|type1=Fairy | |type1=Fairy | ||
|ndex=669 | |ndex=669 | ||
|level=14 | |level=14 | ||
|gender=female | |gender=female | ||
Line 214: | Line 390: | ||
|move2=Swords Dance|move2type=Normal|move2cat=Status}} | |move2=Swords Dance|move2type=Normal|move2cat=Status}} | ||
{{Party/Footer}} | {{Party/Footer}} | ||
<noinclude> | |||
[[Category:Documentation templates]] | |||
</noinclude> |
Latest revision as of 19:30, 20 April 2024
{{Party/Tag}}
is used to display detailed info on a team's party and Pokémon for a battle against two Trainers. For battles against a single Trainer, use {{Party/Single}}
.
How to use:
- Use
{{Party/Tag}}
at the top. - Use up to six
{{Pokémon/.}}
templates (upto three for each trainer), selecting the appropriate generation subtemplate. - All Pokémon entries must have a vertical pipe "
|
" before them.- If either Trainer has less than three Pokémon, all of that Trainer's Pokémon entries must begin with "
| style="margin:auto" |
" instead.
- If either Trainer has less than three Pokémon, all of that Trainer's Pokémon entries must begin with "
- After the first Trainer's Pokémon, use
{{Party/Div}}
. It contains only one parameter; color, which should match the head template's headcolor2 parameter in battles against two Trainers. - After the second Trainer's final Pokémon, use
{{Party/Footer}}
to close the template. It has no parameters.
{{Party/Tag |color= |bordercolor= |headcolor= |color1= |bordercolor1= |headcolor1= |bordercolor2= |headcolor2= |class= |classlink= |name= |sprite= |size= |class2= |classlink2= |name2= |sprite2= |size2= |game= |location= |locationname= |prize= |pokemon1= |pokemon2= }}
Parameters
All parameters are case sensitive.
Parameter | Allowed values | Notes |
---|---|---|
color | Color template | Main background color. |
bordercolor | Border color. | |
headcolor | Trainer information background color. | |
color1 | First Trainer background color. | |
bordercolor1 | First Trainer border color. | |
headcolor1 | First Trainer sprite background color. | |
bordercolor2 | Second Trainer border color. | |
headcolor2 | Second Trainer sprite background color. | |
class | String | First Trainer's Trainer class. |
classlink | String | Optional. Link override for the first trainer's Trainer class. |
name | String | First Trainer's name. |
sprite | Filename | First Trainer's sprite filename, with filename extension. |
size | Filesize | Size of First Trainer's sprite, only if size reduction is required. |
class2 | String | Second Trainer's Trainer class. |
classlink2 | String | Optional. Link override for the second trainer's Trainer class. |
name2 | String | Second Trainer's name. |
sprite2 | Filename | Second Trainer's sprite filename, with filename extension. |
size2 | Filesize | Size of Second Trainer's sprite, only if size reduction is required. |
prize | String | Prize for defeating the Trainers, without any money-increasing effects applied.
Entering " |
game | Valid abbreviation • String | Game(s) the battle takes place in. |
location | String | Location where the battle takes place. |
locationname | String | Optional. Display override for the location. |
pokemon1 | 1 • 2 • 3
|
Number of Pokémon in the first Trainer's party. |
pokemon2 | 0 • 1 • 2 • 3
|
Number of Pokémon in the second Trainer's party. |
Example
The code of Pokémon block is not shown in the below example.
{{Party/Tag |color={{kalos color}} |bordercolor={{kalos color dark}} |headcolor={{kalos color light}} |color1={{castle color}} |bordercolor1={{castle color dark}} |headcolor1={{castle color light}} |color2={{orange color}} |bordercolor2={{orange color dark}} |headcolor2={{orange color light}} |class=Pokémon Trainer |classlink=Pokémon Trainer |name={{color2|000|Trevor}} |sprite=VSTrevor.png |size=150px |class2=Pokémon Trainer |classlink2=Pokémon Trainer |name2=Tierno |sprite2=VSTierno.png |size2=150px |game=XY |location=Kalos Route 7 |locationname=Route 7 |prize={{pdollar}}3000 |pokemon1=2 |pokemon2=1 }} | style="margin:auto" | {{Pokémon/6}} | style="margin:auto" | {{Pokémon/6}} {{Party/Div|color={{orange color}}}} | style="margin:auto" | {{Pokémon/6}} {{Party/Footer}}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|