Template:Party/Tag/doc: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
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===
{| width="50%" class="roundy" style="margin:auto; border: 2px solid #{{psychic color dark}}; background: #{{psychic color}};"
All parameters are case sensitive.
! class="roundytl" style="background: #{{psychic color light}}" | Parameter
{| class="wikitable" style="background: #e5f1ec; margin:1em auto;"
! class="roundytr" style="background: #{{psychic color light}}" | Input
|-
|- style="background: #FFFFFF"
! style="background: #d1e5d9" | Parameter
! color
! style="background: #d1e5d9" | Allowed values
! style="background: #d1e5d9" | Notes
|-
| color
| rowspan="8" | [[Help:Color templates|''Color template'']]
| Main background color.
| Main background color.
|- style="background: #FFFFFF"
|-
! bordercolor
| bordercolor
| Border color.
| Border color.
|- style="background: #FFFFFF"
|-
! headcolor
| headcolor
| Trainer information background color.
| Trainer information background color.
|- style="background: #FFFFFF"
|-
! color1
| color1
| First Trainer background color.
| First Trainer background color.
|- style="background: #FFFFFF"
|-
! bordercolor1
| bordercolor1
| First Trainer border color.
| First Trainer border color.
|- style="background: #FFFFFF"
|-
! headcolor1
| headcolor1
| First Trainer sprite background color.
| First Trainer sprite background color.
|- style="background: #FFFFFF"
|-
! color2
| bordercolor2
| Second Trainer background color.
|- style="background: #FFFFFF"
! bordercolor2
| Second Trainer border color.
| Second Trainer border color.
|- style="background: #FFFFFF"
|-
! headcolor2
| headcolor2
| Second Trainer sprite background color.
| Second Trainer sprite background color.
|- style="background: #FFFFFF"
|-
! class
| class
| ''String''
| First Trainer's [[Trainer class]].
| First Trainer's [[Trainer class]].
|- style="background: #FFFFFF"
|-
! classlink
| classlink
| Article title for first Trainer's Trainer class.
| ''String''
|- style="background: #FFFFFF"
| '''Optional'''. Link override for the first trainer's Trainer class.
! name
|-
| name
| ''String''
| First Trainer's name.
| First Trainer's name.
|- style="background: #FFFFFF"
|-
! sprite
| sprite
| First Trainer's sprite.
| ''Filename''
|- style="background: #FFFFFF"
| First Trainer's sprite filename, with filename extension.
! size
|-
| 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.
|- style="background: #FFFFFF"
|-
! class2
| class2
| ''String''
| Second Trainer's [[Trainer class]].
| Second Trainer's [[Trainer class]].
|- style="background: #FFFFFF"
|-
! classlink2
| classlink2
| Article title for second Trainer's Trainer class.
| ''String''
|- style="background: #FFFFFF"
| '''Optional'''. Link override for the second trainer's Trainer class.
! name2
|-
| name2
| ''String''
| Second Trainer's name.
| Second Trainer's name.
|- style="background: #FFFFFF"
|-
! sprite2
| sprite2
| Second Trainer's sprite.
| ''Filename''
|- style="background: #FFFFFF"
| Second Trainer's sprite filename, with filename extension.
! size2
|-
| 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.
|- style="background: #FFFFFF"
|-
! prize
| prize
| Prize for defeating the Trainers without an {{DL|In-battle effect item|Amulet Coin}}.
| ''String''
|- style="background: #FFFFFF"
| Prize for defeating the Trainers, without any money-increasing effects applied.
! game
Entering "<code>none</code>" (case-sensitive) hides the prize display.
| Abbreviation of the game(s) the battle takes place in.
|-
|- style="background: #FFFFFF"
| game
! location
| [[#Game codes|''Valid abbreviation'']] • ''String''
| Where the battle takes place. Must directly link to the correct article.
| Game(s) the battle takes place in.
|- style="background: #FFFFFF"
|-
! locationname
| location
| Where the battle takes place. Only needed if the location's article uses a disambiguating title.
| ''String''
|- style="background: #FFFFFF"
| Location where the battle takes place.
! pokemon1
|-
| 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.
|-
|-
! class="roundybl" style="background: #FFFFFF" | pokemon2
| pokemon2
| class="roundybr" style="background: #FFFFFF" | Number of Pokémon in the second Trainer's party.
| <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]]
|}


*All Pokémon entries must have a vertical pipe "<code>|</code>" before them.
==Example==
**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.
The code of Pokémon block is not shown in the below example.
 
*After the first Trainer's Pokémon, use of {{template|Party/Div}} is required. It contains only one parameter; '''color''', which should match the head template's '''color2''' parameter in battles against two Trainers.
 
*After the second Trainer's final Pokémon, use of {{template|Party/Footer}} is required. It has no parameters.
 
===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
 
|game=X
| style="margin:auto" | {{Pokémon/6}}
|pokemon=Pikachu
| style="margin:auto" | {{Pokémon/6}}
|type1=Electric
 
|ndex=025
|level=14
|gender=male
|ability=Static
|move1=Thunder Shock|move1type=Electric|move1cat=Special
|move2=Quick Attack|move2type=Normal|move2cat=Physical}}
| style="margin:auto" | {{Pokémon/6
|game=X
|pokemon=Flabébé
|type1=Fairy
|ndex=669
|form=-Red
|level=14
|gender=female
|ability=Flower Veil
|move1=Vine Whip|move1type=Grass|move1cat=Physical
|move2=Fairy Wind|move2type=Fairy|move2cat=Special
|move3=Tackle|move3type=Normal|move3cat=Physical}}
{{Party/Div|color={{orange color}}}}
{{Party/Div|color={{orange color}}}}
| style="margin:auto" | {{Pokémon/6
 
|pokemon=Corphish
| style="margin:auto" | {{Pokémon/6}}
|game=X
 
|type1=Water
|ndex=341
|level=16
|gender=male
|ability=Shell Armor
|move1=Vice Grip|move1type=Normal|move1cat=Physical
|move2=Swords Dance|move2type=Normal|move2cat=Status}}
{{Party/Footer}}
{{Party/Footer}}
</nowiki></pre>
</nowiki></pre>
Line 195: Line 372:
|type1=Fairy
|type1=Fairy
|ndex=669
|ndex=669
|form=-Red
|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.
  • 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 "none" (case-sensitive) hides the prize display.

game Valid abbreviationString Game(s) the battle takes place in.
location String Location where the battle takes place.
locationname String Optional. Display override for the location.
pokemon1 123 Number of Pokémon in the first Trainer's party.
pokemon2 0123 Number of Pokémon in the second Trainer's party.
List of allowed game abbreviations
Abbreviation Game
RG Red and Green
RGB Red, Green, and Blue
RGBY Red, Green, Blue, and Yellow
Y Yellow
GS Gold and Silver
GSC Gold, Silver, and Crystal
C Crystal
Ru Ruby
Sa Sapphire
RSRuSa Ruby and Sapphire
RSE Ruby, Sapphire, and Emerald
RE Ruby and Emerald
SE Sapphire and Emerald
E Emerald
FRLGFL FireRed and LeafGreen
DP Diamond and Pearl
DPPDPPt Diamond, Pearl, and Platinum
Pt Platinum
HGSSHS HeartGold and SoulSilver
PtHGSS Platinum, HeartGold, and SoulSilver
BW Black and White
Bl Black
W White
B2W2 Black 2 and White 2
B2 Black 2
W2 White 2
BWB2W2 Black, White, Black 2, and White 2
XY X and Y
X X
y Y
ORAS Omega Ruby and Alpha Sapphire
OR Omega Ruby
AS Alpha Sapphire
SM Sun and Moon
Su Sun
M Moon
SMUSUM Sun, Moon, Ultra Sun, and Ultra Moon
USUM Ultra Sun and Ultra Moon
US Ultra Sun
UM Ultra Moon
LGPEPE Let's Go, Pikachu! and Let's Go, Eevee!
LGP Let's Go, Pikachu!
LGE Let's Go, Eevee!
SwSh Sword and Shield
BDSP Brilliant Diamond and Shining Pearl
SV Scarlet and Violet
Colo Colosseum
XD Pokémon XD
PBR Pokémon Battle Revolution

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}}