Template talk:Itlistbod: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
No edit summary
No edit summary
Line 21: Line 21:
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  
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]].[[User:KrytenKoro|KrytenKoro]] 02:30, 20 May 2010 (UTC)
[[:Template:GameIcon]].[[User:KrytenKoro|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 that. Removes a lot of coding over here. '''[[User:TTEchidna|<span style="color:#FF0000">''TTE''</span>]][[User talk:TTEchidna|chidna]]''' 23:02, 23 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. '''[[User:TTEchidna|<span style="color:#FF0000">''TTE''</span>]][[User talk:TTEchidna|chidna]]''' 23:02, 23 May 2010 (UTC)

Revision as of 23:03, 23 May 2010

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)