Template talk:Itlistbod: Difference between revisions
KrytenKoro (talk | contribs) No edit summary |
m (reply) |
||
Line 23: | Line 23: | ||
: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) | :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) | ||
::If this format is going to stay, then we at least need CHGSS added.[[User:KrytenKoro|KrytenKoro]] 02:41, 24 May 2010 (UTC) | ::If this format is going to stay, then we at least need CHGSS added.[[User:KrytenKoro|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). —'''<span style="font-family:Verdana"><span style="color:#000">darklord</span>[[User talk:The dark lord trombonator|<span style="color:#0047AB">trom</span>]]</span>''' 07:40, 24 May 2010 (UTC) |
Revision as of 07:40, 24 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)
- 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)
- If this format is going to stay, then we at least need CHGSS added.KrytenKoro 02:41, 24 May 2010 (UTC)