Editing of Bulbapedia is currently restricted. Please see this message for more details.
Pokémon Omega Ruby and Alpha Sapphire are coming this November!

Check BNN and Bulbanews for up-to-date Pokémon news and discuss it on the forums or in our IRC channel.

Template talk:Itlistbod

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to: navigation, search

This needs to have an option for CHGSS.

However, if it is acceptable, I'd like to code up a simpler version which doesn't require pre-programmed combinations. However, you'd end up having to change it wherever the combinations are used.KrytenKoro 02:07, 20 May 2010 (UTC)

Okay, if you replace the template with this code (or create an "Itlistbod2" to keep the older one functioning while you switch it out), it will work exactly the same.

<noinclude>{|</noinclude>
|- style="background: #FFFFFF;"
| align="center" | [[Image:Bag {{{1|Potion}}} Sprite.png]]
| align="center" | {{{display|[[{{{1|Potion}}}]]}}}
| align="left" | {{{2|Old Man}}}
| align="center" | '''{{GameIcon|{{{3|}}}}}{{#if:{{{4|}}}}}|{{GameIcon|{{{4|}}}}}}}{{#if:{{{5|}}}}}|{{GameIcon|{{{5|}}}}}}}{{#if:{{{6|}}}}}|<br>{{GameIcon|{{{6|}}}}}}}{{#if:{{{7|}}}}}|{{GameIcon|{{{7|}}}}}}}'''
<noinclude>|} [[Category:Table templates]]</noinclude>

The usage is like this:

Old template
{{Itlistbod|Miracle Seed|From the man who previously blocked the player's path|GSCHGSS|display={{DL|Type-enhancing item|Miracle Seed}}}}
New template
{{Itlistbod|Miracle Seed|From the man who previously blocked the player's path|G|S|C|HG|SS|display={{DL|Type-enhancing item|Miracle Seed}}}}

It accepts up to five inputs, but it's easy to expand that if needed. It accepts any combination of "R", "B", "Y", "G", "S", "C", "Ru", "Sa", "Em", E", "FR", "LG", "D", "P", "Pt", "HG", "SS", and "XD" as inputs, though the options can be expanded by adding more options to Template:GameIcon.KrytenKoro 02:30, 20 May 2010 (UTC)

The preprogrammed combinations are simple to change... however, I agree, it'd be better to have a template handle the actual boxes. Removes a lot of coding over here. TTEchidna 23:02, 23 May 2010 (UTC)
If this format is going to stay, then we at least need CHGSS added.KrytenKoro 02:41, 24 May 2010 (UTC)
CHGSS is added and this template has been condensed with the help of GameIcon (now protected as it's in use on over 300 pages). —darklordtrom 07:40, 24 May 2010 (UTC)
Thanks!KrytenKoro 18:55, 24 May 2010 (UTC)
Can we also have RBYFRLGHGSS? --SnorlaxMonster 07:27, 1 September 2010 (UTC)
Why the hell not. —darklordtrom 11:24, 1 September 2010 (UTC)

Suggestion - New Parameter: "sprite"

If someone could add a "sprite" parameter over [[File:Bag {{{1|Potion}}} Sprite.png]], we could add things like the Wailmer Doll in the items table of Sootopolis City, and the Electric Guitar found on Unova Route 5. - Chosen of Mana 15:35, 24 May 2011 (UTC)

Done. —darklordtrom 07:57, 25 May 2011 (UTC)

Colosseum

The "{{GameIcon|colo}}" part of this template is entered incorrectly; The C should be capitalized, like this: "{{GameIcon|Colo}}". - Chosen of Mana 00:39, 31 October 2011 (UTC)

Fixed. Werdnae (talk) 01:12, 31 October 2011 (UTC)