Template:Hexlist: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary
m (Text replacement - "{{Stamina" to "{{Isle of Armor")
 
(30 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<noinclude>{|</noinclude>
<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={{Isle of Armor color light}}|CT={{Crown Tundra 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}};"
|- style="background: #{{#switch: {{{5|All}}}|C={{crystal color light}}|FRLG={{firered color light}}|E={{emerald color light}}|Pt={{platinum color light}}|HGSS={{gold color light}}|BW={{black color light}}|B2W2={{black 2 color light}}|All=FFFFFF}};"
|{{{3|0}}}
| {{{3|0}}}
|0x{{{2|0000}}}
| 0x{{{2|0000}}}
{{#ifeq: {{{4|yes}}}|yes|{{!}} style="text-align:center" {{!}}[[File:{{{sprite|{{#ifeq:{{{9|no}}}|yes|Held|Bag}} {{{6|{{{1|unknown}}}}}} Sprite}}}.png|{{{6|{{{1|unknown}}}}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}]]}}
{{#ifeq: {{{4|yes}}}|yes|{{!}} align="center" {{!}} {{bag|{{{6|{{{1|???}}}}}}}}}}
|{{#switch: {{{1|unknown}}}|Nothing|None|?|???|unknown={{{1|unknown}}}|[[{{{1|unknown}}}]]}}{{#switch: {{{5|All}}}|C={{tt|*|Exclusive to Crystal}}|FRLG={{tt|*|Exclusive to FireRed, LeafGreen, and Emerald}}|E={{tt|*|Exclusive to Emerald}}|DPPt={{tt|*|Exclusive to Diamond, Pearl, and Platinum}}|Pt={{tt|*|Exclusive to Platinum, HeartGold, and SoulSilver}}|HGSS={{tt|*|Exclusive to HeartGold and SoulSilver}}|BW={{tt|*|Exclusive to Black and White}}|B2W2={{tt|*|Exclusive to Black 2 and White 2}}|XY={{tt|*|Exclusive to X and Y}}|ORAS={{tt|*|Exclusive to Omega Ruby and Alpha Sapphire}}|SM={{tt|*|Exclusive to Sun and Moon}}|USUM={{tt|*|Exclusive to Ultra Sun and Ultra Moon}}|IoA={{tt|*|Version 1.2.0 onward}}|CT={{tt|*|Version 1.3.0 onward}}|TTM={{tt|*|Version 2.0.1 onward}}|ID={{tt|*|Version 3.0.0 onward}}}}{{#ifeq: {{{8|yes}}}|yes|{{!}}{{!}} style="text-align:center; background: #{{#switch:{{{game|All}}}|SV={{Scarlet color light}}|All=FFFFFF}}" {{!}} [[File:Bag {{{7|Unknown}}} {{{game|}}} pocket icon.png|24px]]
| {{#switch: {{{1|???}}}|Nothing|?|???={{{1|???}}}|[[{{{1|???}}}]]}}{{#switch: {{{5|All}}}|C={{tt|*|Exclusive to Crystal}}|FRLG={{tt|*|Exclusive to FireRed, LeafGreen, and Emerald}}|E={{tt|*|Exclusive to Emerald}}|Pt={{tt|*|Exclusive to Platinum, HeartGold, and SoulSilver}}|HGSS={{tt|*|Exclusive to HeartGold and SoulSilver}}|B2W2={{tt|*|Exclusive to Black 2 and White 2}}}}{{#ifeq: {{{8|yes}}}|yes|{{!}}{{!}} align="center" {{!}} [[File:Bag {{{7|Unknown}}} pocket icon.png]]
{{!}}{{{7|Unknown}}} pocket}}</includeonly><noinclude>
{{!}} {{{7|Unknown}}} pocket}}<noinclude>
{{documentation}}
|}[[Category:Table templates]]</noinclude>
 
[[Category:Table templates]]</noinclude>

Latest revision as of 06:47, 1 March 2024



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