Template:HeldItems/Items2/doc

This template is used to create the items column of a table that shows which items a Pokémon can hold or drop. It is meant to be used on its species page. This template shows two items, while Template:HeldItems/Items1 and Template:HeldItems/Items3 show one or three items, and Template:HeldItems/ItemsLA shows items for Pokémon Legends: Arceus specifically.

Other pages used to create these tables include: Template:HeldItems/header, Template:HeldItems/Games1, and Template:HeldItems/Games2. (See this page to check if there are any others that have not been added.)

Parameters

Unnamed
  • 1: the name of the first item to show
  • 2: the rate of the first item (for 5%, only enter "5")
  • 3: the name of the second item to show
  • 4: the rate of the second item (for 5%, only enter "5")
Named
  • rows (optional): the number of {{HeldItems/Games1}} and {{HeldItems/Games2}} rows that these items cover (see Usage below)
  • For the first item...
    • image1 (optional): an override for the image to show for the item; defaults to the "bag sprite" of the item, Bag [1] Sprite.png, where [1] is the value of parameter 1
    • size1 (optional): a custom size for the item's image (meant to shrink it); you can use values like "32px" or "50%"
    • TMmove1 (optional): if the item is a TM, this can add custom text about the move it contains (for example, for TM43: ({{m|Detect}}))
    • availNote1 (optional): a custom note before the item's rate that can qualify how it is obtained; this may generally be necessary if different items can be obtained in different circumstances
  • image2, size2, TMmove2, availNote2 (optional): same as above, but for the second item

Usage

A basic usage of Items2 is as follows.

{{HeldItems/header|type=Fairy}}
{{HeldItems/Games2|Black|White|tcolor1=FFF|Pokémon Black and White Versions}}
{{HeldItems/Items2|Leppa Berry|50|Moon Stone|5}}
|}
Games Held items
Black White

If the items apply to more than one row (game or pair of games), you must use the rows parameter. In addition, only the template for the first row should appear before the items; the other rows must appear after the items due to the way tables are constructed. This is shown below.

{{HeldItems/header|type=Fairy}}
{{HeldItems/Games2|Black|White|tcolor1=FFF|Pokémon Black and White Versions}}
{{HeldItems/Items2|Leppa Berry|50|Moon Stone|5|rows=2}}
{{HeldItems/Games2|Black 2|White 2|tcolor1=FFF|Pokémon Black and White Versions 2}}
|}
Games Held items
Black White
Black 2 White 2

For other parameters, refer to Template:HeldItems/Items1 for an example of how they are used.