Template:ItemInfobox/BagRow: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Created page with "|- ! style="background: #{{{{{2|Unknown}}} color light}}" width=50% | Generation {{{1|?}}} | style="background: #fff" width=50% | [[File:Bag {{{2|Unknown}}} pocket icon.png]]...") |
(optional game field) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
|- | |- | ||
! style="background: #{{{{{2|Unknown}}} color light}}" width=50% | Generation {{{1|?}}} | ! style="background: #{{{{{colorscheme|{{{2|Unknown}}}}}} color light}}" width=50% class="blacklinks" | Generation {{{1|?}}} | ||
| style="background: #fff" width=50% | [[File:Bag {{{2|Unknown}}} pocket icon.png]] {{{2|Unknown}}}{{#if:{{{group|}}}| <small>({{{group|Held items}}})</small>}} | | style="background: #fff; white-space:nowrap" width=50% | [[File:Bag {{{2|Unknown}}} {{{game|}}} pocket icon.png|24px]] {{{2|Unknown}}}{{#if:{{{group|}}}| <small>({{{group|Held items}}})</small>}}<includeonly>{{{cat|[[Category:{{{pocket|{{{2|Items}}} Pocket}}}]]}}}</includeonly><noinclude> | ||
{{Documentation}} | |||
[[Category:Infobox templates]] | |||
</noinclude> |
Latest revision as of 13:47, 18 February 2024
|- ! style="background: #9DC1B7" width=50% class="blacklinks" | Generation ? | style="background: #fff; white-space:nowrap" width=50% | Unknown
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 for building an infobox on an item page (started with {{ItemInfobox/head}}
). It adds information about which Bag pockets the item is stored in in different generations.
Parameters
- Unnamed
- 1: The generation this row of pocket data is about.
- 2: The pocket that the item (the page this template is used on) belongs to in the specified generation; used for the default color scheme, the pocket icon and text, and the default category.
- Named
- colorscheme (optional): Overrides the color scheme to be used for this row; defaults to
[parameter 1] color light
(see color templates). - group (optional): If this row does not apply to the whole generation: the game or games this row of pocket data is about (usually entered with gameabbrev templates).
- game (optional): To use a pocket icon from a specific game (example: from BDSP, from SV), put the game abbreviation here and the file displayed will change accordingly.
- pocket (optional): overrides the pocket used to add a category, adding the page to the category
[pocket] Pocket
(see Items by pocket); defaults to parameter 1. - cat (optional): an override for the category added by this template; mainly meant to be used to suppress the category with
|cat=
.
Usage
This template can be used multiple times to add information about multiple generations/games. The first instance of this template should be immediately preceded by {{ItemInfobox/head}}
. The last (or only) row of pocket information should use {{ItemInfobox/BagRowBottom}}
.
Example
Simplified Cheri Berry.
| |||||||||||||||||||||
| |||||||||||||||||||||
|
{{ItemInfobox/head|cat= |name=Cheri Berry |jname=クラボのみ |jtrans=Kurabo Fruit |gen=III |colorscheme=Berries |fling=yes }} {{ItemInfobox/BagRow|cat=|III|Berries|group={{gameabbrev3|RSE}}}} {{ItemInfobox/BagRow|cat=|III|Berry Pouch|group={{gameabbrev3|FRLG}}|pocket=Berries Pocket}} {{ItemInfobox/BagRow|cat=|IV|Berries}} {{ItemInfobox/BagRow|cat=|V|Berries}} {{ItemInfobox/BagRow|cat=|VI|Berries}} {{ItemInfobox/BagRow|cat=|VII|Berries}} {{ItemInfobox/BagRow|cat=|VIII|Berries|group={{gameabbrev8|SwShBDSP}}}} {{ItemInfobox/BagRow|cat=|VIII|Items|group={{gameabbrev8|LA}}|colorscheme=Berries}} {{ItemInfobox/BagRowBottom|cat=|IX|Berries}} |}