Difference between revisions of "Template talk:Userbox Level 50"
From Paragon Wiki Archive
m |
Archabaddon (Talk | contribs) |
||
Line 10: | Line 10: | ||
:Anyone object to me resizeing the pic(s) to make them fit in with a majority of the userboxes? (see my user page to see what i mean), it would be just a slight resize of 10px's. If I don't hear any "NOO!!"s i'll do it tomorrow :P -- [[User:DM Yarrow|DM Yarrow]] 21:06, 4 August 2008 (UTC) | :Anyone object to me resizeing the pic(s) to make them fit in with a majority of the userboxes? (see my user page to see what i mean), it would be just a slight resize of 10px's. If I don't hear any "NOO!!"s i'll do it tomorrow :P -- [[User:DM Yarrow|DM Yarrow]] 21:06, 4 August 2008 (UTC) | ||
+ | |||
+ | ::I think the only pic that might need adjustment is the one used for "both". The other pics should work well with other userbox content as far as I've experimented. [[User:Archabaddon|Archabaddon]] 21:32, 4 August 2008 (UTC) |
Revision as of 21:32, 4 August 2008
I give up! I can't figure out how to make the switches work :( Any guidance would be appreciated. Archabaddon 23:16, 4 June 2008 (UTC)
- You were really close. If you check the revision history you'll be able to see what I did to tweak it. A couple of tips for reference (I've learned 'em all the hard way. :)):
- The "lc" in the switch forces lowercase on the switch value passed in the template call. So, so if pass in "Villains" in the template call, the switch will change that to "villains". If you use the "lc" and any of your case values have capital letters (i.e. "Villains" as opposed to "villains"), nothing will ever match it. (You don't have to use the "lc", by the way.)
- Each case value (at least from my experience) is exact, so if your case shows "<h>", then "<h>" would have to be passed to hit that case rather than "h".
- Even if you include documentation with an example template call that's using any sort of logic, there's no real way to see how it's going to look when you actually try to use it until you save the template. (Which can be a little annoying to say the least.)
- All in all, you didn't do too badly. I usually fill the Recent Changes history with about 20 or 30 entries when I'm trying to hack my way through a template. --Eabrace 04:22, 5 June 2008 (UTC)
- Thanks for all of your excellent pointers! I couldn't find any online references for how to program wiki switch functions, so I was at a loss. Now I've also added an option for "both heroes and villains" as well as usage (borrwed from the Veteran Userbox). Once again I'm in your debt :) Archabaddon 16:24, 5 June 2008 (UTC)
- Anyone object to me resizeing the pic(s) to make them fit in with a majority of the userboxes? (see my user page to see what i mean), it would be just a slight resize of 10px's. If I don't hear any "NOO!!"s i'll do it tomorrow :P -- DM Yarrow 21:06, 4 August 2008 (UTC)
- I think the only pic that might need adjustment is the one used for "both". The other pics should work well with other userbox content as far as I've experimented. Archabaddon 21:32, 4 August 2008 (UTC)