Difference between revisions of "Template talk:WeaponInfo"

From SpiralKnights

Jump to: navigation, search
(Can we haz fixstats pls?: new section)
m (Can we haz fixstats pls?: Sure)
Line 29: Line 29:
  
 
Btw., I need it to fix the Blackhawk page. It's very misleading, ATM.
 
Btw., I need it to fix the Blackhawk page. It's very misleading, ATM.
 +
 +
:Dogrock has uploaded updated images, eventually those will kick in.  However, I've added the fixstats variable so that works as well (I put it after the name, not after stats, so that it is like the others. --[[User:Equinox|Equinox]] 16:46, 25 February 2012 (UTC)

Revision as of 16:46, 25 February 2012

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)

Unindenting since this is just a note to say that I've run through all the items using WeaponInfo to add type and also switch name to {{PAGENAME}} and then I added a quick non-fancy adding of the category through the template since the plurals for weapons are all just +s. If anything shows up wanting to be in a category that is just "s", then you'll know it needs type added to the page. --Equinox 02:37, 4 January 2011 (UTC)

Finished doing the ArmorInfo ones. The category for pages missing the type is now Needs type. Hopefully I got them all right. Take a peek in the different weapon & gear categories to make sure there's nothing miscategorized as some of the pages lacked images and descriptions. --Equinox 19:29, 4 January 2011 (UTC)

Can we haz fixstats pls?

Since there is also fixicon and fiximg as a workaround for the broken image updating, we could use a fixstats like this:

{{SKWindow/Cell|[[Image:Equipment-{{{name|Unknown}}}_Stats{{{fixstats|}}}.png]]|center}}

I would do it myself, but I don't think it's my decision, because this template affects pretty much all weapon pages.

Btw., I need it to fix the Blackhawk page. It's very misleading, ATM.

Dogrock has uploaded updated images, eventually those will kick in. However, I've added the fixstats variable so that works as well (I put it after the name, not after stats, so that it is like the others. --Equinox 16:46, 25 February 2012 (UTC)
Personal tools