Template talk:WeaponInfo

From SpiralKnights

Revision as of 05:33, 3 January 2011 by Shango (Talk | contribs)

Jump to: navigation, search

Adding categories

Unless there is an objection to it, I'm planning on having this infobox add categories and am willing to edit all the pages using it to add the appropriate variable. Is there any other change that's desired for this infobox that would require adding new variables? If so, I'll postpone doing the category variable adding until I have a full list of things that should be added during the editing frenzy. (Plan summary: Will add the variable(s) to the pages first, then edit the template to use them) --Equinox 06:04, 2 January 2011 (UTC)

Just adding a note that I'll do the same for ArmorInfo. --Equinox 06:11, 2 January 2011 (UTC)

That's an amazing task to do, given the number of poorly categorized or hard-to-find weapons pages. I'm impressed! (and humbled) One suggestion: Shango was working on a new and improved weapons/armor template a while back, which would include stat bars as displayed in game. It might be a good idea to check the status of that before committing to a new design using the older template. --Pauling 07:37, 2 January 2011 (UTC)

That sounds exciting. I left a note for him to see next time he hops on the wiki, so we should hopefully hear from him about it. I'll probably also do some other various cleaning tasks when I do those edits as well (like the MK/Mk thing), so I will wait until there's some sort of consensus in the various discussions. Possibly I could also do a bit of the boilerplate implementing too, but I'd like to keep it to quicker tasks so that I can get the "conversion" done quickly. If you can think of other minor changes that are needed for those pages, I can add them to my list. --Equinox 14:45, 2 January 2011 (UTC)
Yes, I was working on a series of templates to generate stat bars from number parameters. The highest-level one is the EquipmentInfo which I intend to replace the WeaponInfo and ArmorInfo templates. This would use the subtemplate SKWindow/StatsWrapper to display the StatsBox template (soon to replace the overly specific and prematurely named AttackPower template). The reason for this was to allow the StatsBox template to display on its own outside of an SKWindow. StatsBox would automatically show/hide corresponding StatBars depending on parameters given. You can see what it would look like at the bottom of my user page.
I can easily make the EquipmentInfo template auto-categorize pages. Should I just have a parameter for type (sword/handgun/armor)? I could add switch logic to that and have it add the more general categories as well. --Shango 02:43, 3 January 2011 (UTC)
That looks really nice and exciting. One template to rule them all! A variable named "type" would be great with the options being bomb, handgun, sword, armor, helmet, or shield. I'll edit the equipment pages to add it in and it can be used with the current templates and still work when the switchover occurs. When you get the EquipmentInfo templates working and stuff, I'll be happy to help do the edits for switching that over. There aren't too many articles on the wiki (currently 380 looks like), so it shouldn't be that many (just tagged 780/975 images in the past few days) and it's not a task I mind doing. For the future when "measuring" for stats, it also works to crop a scretenshot of the bar and then see what the pixel size of the image is, right? --Equinox 04:06, 3 January 2011 (UTC)
Sort of. Since the icon for the bars partially covers the bar itself, you'd have to be careful to start the crop at the right place. Since each of the pips in a bar has the same width, the method I've worked up is to count the number of full pips, multiply by 17 (the width of each pip, counting the 1px divider), and then count the number of pixels left over and add them to the total. Divide by 170 for a percentage (total pixel length is mostly an estimate). I'll be sure to add this to the template's documentation. --Shango 05:33, 3 January 2011 (UTC)
Personal tools