Template:Hexlist: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (Text replacement - "{{castle" to "{{Teal Mask")
m (Text replacement - "{{blueberry" to "{{Indigo Disk")
Line 1: Line 1:
<includeonly>|- style="background: #{{#switch: {{{5|All}}}|C={{Crystal color light}}|FRLG={{FireRed color light}}|E={{Emerald color light}}|DPPt={{Diamond color light}}|Pt={{Platinum color light}}|HGSS={{HeartGold color light}}|BW={{Black color light}}|B2W2={{White 2 color light}}|XY={{X color light}}|ORAS={{Omega Ruby color light}}|SM={{Sun color light}}|USUM={{Ultra Sun color light}}|PE={{Let's Go Pikachu color light}}|IoA={{Stamina color light}}|CT={{Jump color light}}|BDSP={{Brilliant Diamond color light}}|LA={{Legends Arceus color light}}|SV={{Scarlet color light}}|TTM={{Teal Mask color light}}|ID={{blueberry color light}}|All=FFFFFF}};"
<includeonly>|- style="background: #{{#switch: {{{5|All}}}|C={{Crystal color light}}|FRLG={{FireRed color light}}|E={{Emerald color light}}|DPPt={{Diamond color light}}|Pt={{Platinum color light}}|HGSS={{HeartGold color light}}|BW={{Black color light}}|B2W2={{White 2 color light}}|XY={{X color light}}|ORAS={{Omega Ruby color light}}|SM={{Sun color light}}|USUM={{Ultra Sun color light}}|PE={{Let's Go Pikachu color light}}|IoA={{Stamina color light}}|CT={{Jump color light}}|BDSP={{Brilliant Diamond color light}}|LA={{Legends Arceus color light}}|SV={{Scarlet color light}}|TTM={{Teal Mask color light}}|ID={{Indigo Disk color light}}|All=FFFFFF}};"
|{{{3|0}}}
|{{{3|0}}}
|0x{{{2|0000}}}
|0x{{{2|0000}}}

Revision as of 06:30, 1 March 2024



Template documentation
Note: portions of the template sample may not be visible without values provided.

This template creates a row for a list of items identified by their index number in decimal and hexadecimal.

Parameters

The image can be determined by sprite, parameter 6, or paramter 1 (in that precedence), along with parameter 9. If sprite is used, the image called is File:[sprite].png. If sprite is not used, the image called is File:[Held/Bag] [item] Sprite.png, where [Held/Bag] is "Held" if 9 is "yes" (and "Bag" otherwise) and [item] is 6 if it was set or otherwise 1.

Unnamed
  • 1: item name, used for the item name and link and the image; if this is "Nothing", "None", "?", "???", or "unknown", it is left as plain text and not linked
  • 2: index number in hex (should be four digits in the latest games; at the very least, the same size in every row on a page)
  • 3: index number in decimal
  • 4 (optional): is there an image to display? For Generation I and II games, use "no" to suppress the item sprite column, since items did not have images in those games
  • 5 (optional): a game abbreviation denoting exclusivity. This sets a background color for the row as well as note (*) by the item's name.
    • Recognized values: C, FRLG, E, DPPt, Pt, HGSS, BW, B2W2, XY, ORAS, SM, USUM, PE, IoA, CT, BDSP, LA, SV, TTM
  • 6 (optional): overrides 1 for the image; but may be overridden by sprite
  • 7 (optional): the name of the pocket this item is in
    • game (optional): The abbreviation for the game that the pocket icon is from. This will alter the icon used, but not the displayed name of the pocket.
  • 8 (optional): is there a pocket? If not, use "no" to suppress the pocket column
  • 9 (optional): is this specifically a held item? If so: "yes". Meant for Z-Crystals, which technically have separate "held" and "bag" items.
Named
  • sprite: a broad override for the item's image (".png" is automatically appended)
  • size: a size for the image (such as "40px" or "x40px")

Examples

No image, no pocket

{| class="roundy" style="margin: auto; background: #{{Blue color}}; border: 5px solid #{{Red color}}"
|-
|
{| class="roundy sortable" border="1" style="background: #fff; border: 1px solid #{{Blue color}}; border-collapse: collapse"
|-
! style="background-color:#{{Yellow color}}; {{roundytl|5px}}" | #
! style="background-color:#{{Yellow color}}" | Hex
! style="background-color:#{{Yellow color}}; {{roundytr|5px}}" | Item
{{hexlist|Master Ball|01|001|no|8=no}}
|}
|}
# Hex Item
001 0x01 Master Ball

Exclusive items, no pocket

{| class="roundy" style="margin:auto; background: #{{emerald color}}; border: 5px solid #{{sapphire color light}}"
|-
|
{| class="roundy sortable" border="1" style="background: #fff; border: 1px solid #{{emerald color}}; border-collapse:collapse"
|-
! style="background-color:#{{ruby color light}}; {{roundytl|5px}}" | #
! style="background-color:#{{ruby color light}}" | Hex
! class="unsortable" style="background-color:#{{ruby color light}}" | Bag
! style="background-color:#{{ruby color light}}; {{roundytr|5px}}" | Item
{{hexlist|Master Ball|0001|001|8=no}}
{{hexlist|Bike Voucher|0160|352|yes|FRLG|8=no}}
{{hexlist|Old Sea Map|0178|376|yes|E|8=no}}
|}
|}
# Hex Bag Item
001 0x0001 Master Ball Master Ball
352 0x0160 Bike Voucher Bike Voucher*
376 0x0178 Old Sea Map Old Sea Map*

Pocket

{| class="roundy" style="margin:auto; background-color:#{{sinnoh color dark}}; border:5px solid #{{shining pearl color}}"
|-
|
{| class="roundy sortable" border="1" style="background-color:#fff; border:1px solid #{{sinnoh color dark}}; border-collapse:collapse"
|-
! style="background-color:#{{brilliant diamond color}}; {{roundytl|5px}}" | #
! style="background-color:#{{brilliant diamond color}}" | Hex
! class="unsortable" style="background-color:#{{brilliant diamond color}}" | Bag
! style="background-color:#{{brilliant diamond color}}" | Item
! style="background-color:#{{brilliant diamond color}}; {{roundytr|5px}}" colspan="2" | Pocket
{{hexlist|Master Ball|0001|0001|6=Master Ball BDSP|game=BDSP|7=Poké Balls}}
|}
|}
# Hex Bag Item Pocket
0001 0x0001 Master Ball BDSP Master Ball Bag Poké Balls BDSP pocket icon.png Poké Balls pocket

Pocket with dark background

{| class="roundy" style="margin:auto; background-color:#{{paldea color dark}}; border:5px solid #{{violet color}}"
|-
|
{| class="roundy sortable" border="1" style="background-color:#fff; border:1px solid #{{paldea color dark}}; border-collapse:collapse"
|-
! style="background-color:#{{scarlet color}}; {{roundytl|5px}}" | #
! style="background-color:#{{scarlet color}}" | Hex
! class="unsortable" style="background-color:#{{scarlet color}}" | Bag
! style="background-color:#{{scarlet color}}" | Item
! style="background-color:#{{scarlet color}}; {{roundytr|5px}}" colspan="2" | Pocket
{{hexlist|Master Ball|0001|1|6=Master Ball SV|game=SV|7=Poké Balls|size=32px}}
|}
|}
# Hex Bag Item Pocket
1 0x0001 Master Ball SV Master Ball Bag Poké Balls SV pocket icon.png Poké Balls pocket