Template:HeldItems/Items1

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
Games Held items
Yellow
??? ??? (0%)



Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)

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 one item, while Template:HeldItems/Items1, Template:HeldItems/Items2 and Template:HeldItems/Items3 show two 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 item to show
  • 2: the rate of the 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)
  • image (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
  • size (optional): a custom size for the item's image (meant to shrink it); you can use values like "32px" or "50%"
  • TMmove (optional): if the item is a TM, this can add custom text about the move it contains (for example, for TM43: ({{m|Detect}}))
  • availNote (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

Usage

A basic usage of Items1 is as follows.

{{HeldItems/header|type=Fairy}}
{{HeldItems/Games2|Black|White|tcolor1=FFF|Pokémon Black and White Versions}}
{{HeldItems/Items1|Leppa Berry|50}}
|}
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/Items1|Leppa Berry|50|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

In cases where the item's image differs from its name, use the image parameter. (If an item has no image, use image=None.png.) Since this can happen with TMs, this example will also showcase how to use the TMmove parameter (note that the parentheses are part of the value).

{{HeldItems/header|type=Poison}}
{{HeldItems/Games2|Red|Blue|tcolor2=FFF|Pokémon Red and Blue Versions}}
{{HeldItems/Items1|TM43|100|TMmove=({{m|Detect}})|image=Bag TM Fighting Sprite.png|rows=2}}
{{HeldItems/Games1|Yellow|Pokémon Yellow Version}}
|}
Games Held items
Red Blue
TM43 TM43 (Detect) (100%)
Yellow

In some cases, a qualifier about the item may also be required. This example will use the Items2 template, but it should give you an idea of how you might be able to use the availNote parameter if you need it for Items1. The   at the end of the notes is a space, which must be entered this way because named template parameters ignore spaces and other "whitespace" at the beginning and end of their values.

{{HeldItems/header|type=Grass|type2=Poison}}
{{HeldItems/Games1|Stadium|gcolor=000|tcolor=FFF|Pokémon Stadium}}
{{HeldItems/Items2|Normal Box|100|Gorgeous Box|100|availNote1=From Round 1: |availNote2=From Round 2: |image1=None.png|image2=None.png}}
|}
Games Held items
Stadium
Normal Box Normal Box (From Round 1: 100%)
Gorgeous Box Gorgeous Box (From Round 2: 100%)