User talk:Stabbot/Skillboxes

The vote on Skill Box might take quite a while, but I really want to have it ready for the preview event. If I may be so presumptuous, right now it looks like no matter how the votes go, one of my proposals is going to win. It'll be quite a crusade to manually convert all the old skill boxes into new ones, so I was wondering if you can make Stabbot do it? All my proposals have extremely similar looking syntax, so you would only need to make minor adjustment depending on which proposal wins out. The only info I don't think is always farmable from the skill page is the campaign info, which you can just put "Unknown" and that can be manually entered later (though you probalby have a way to automate the campaign part anyways).

There are a few skill pages that uses my newer skill box instead of the old skill template, don't worry about those, they are way too few in number that I can handle them manually. Just want a bot that converts articles using the ancient skill info boxes into the new one. Thanks! - User:PanSola = 24.7.179.183 20:04, 17 March 2006 (CST)


 * No problem at all. What I'll need from you is an example of a source page with the old skillbox and a target page with the new skillbox to experiment on first. I haven't been following the skillbox debate, unfortunately, so if you can point me to suitable example pages, that would be great. 20:06, 17 March 2006 (CST)


 * Example of old skill boxes here. It's an overly modularized set of templates, and skills with different stat fields use different sub-templates (Template:Skill_energy_entry, Template:Skill_sacrifice_entry etc).
 * Example of hybrid syntax here, including one example of an elite skill and one example of a non-elite skill. You can also look at  these for various cases (skills that have sacrifice, exhausion, or uses adrenaline).  Let me know if you have any questions. -24.7.179.183 13:00, 19 March 2006 (CST)


 * OK, taking a look. At first glance, it appears not as trivial as I first thought. However, it isn't rocket science. Give me a while to hack something together. 13:26, 19 March 2006 (CST)


 * Why do skill pages such as Elemental Attunement already have &lt;includeonly&gt; sections? Should I strip them during the conversion? 16:27, 19 March 2006 (CST)
 * I believe I can answer that. Some time ago, there were two people (whose names escape me, and I only know this from something I read) who were working on a way to only change the skill pages instead of the skill pages *and* the quick reference pages which used the includeonly/noinclude tags for that purpose.  Unfortunately, I suppose, they modified the actual skill pages as they went instead of creating test pages and copying.  Further, they still had the redundant information problem, although PanSola has a way around that particular annoyance now. - Greven 17:04, 19 March 2006 (CST)


 * I found out as much and more in my research already. The people you are referring to are Cloak of Letters and Fyren. Also, the most important piece of information is that these skill pages are not included in any other pages any more. Therefore, I am going to strip the includeonly sections in them when I update the skillboxes. 17:14, 19 March 2006 (CST)

Progress report: I am able to take a page such as User:Stabbot/Elemental Attunement (source) and automatically rewrite it to User:Stabbot/Elemental Attunement (target). Is this roughly what you want me to do, PanSola? 19:38, 19 March 2006 (CST)
 * I hope you noticed the vertical bars aren't in the right place... Specifically, after the template call, vertical bars are needed. Specifically, "{{../Skill box portrait |" and "{{../Skill box landscape v5 |", you were leaving the bars out.
 * ps. if you don't mind, use Skill box portrait6 for now. My money is on it winning. -SolaPan 19:48, 19 March 2006 (CST)


 * Hmm, but the bars are there at the start of the very next line, right? Does it matter which end of the line the bars are in? They are conceptually at least in the right place, I thought? 19:49, 19 March 2006 (CST)
 * Not when you are starting a template.

{{TestTemplate| blah = yah}} vs {{TestTemplate
 * blah = yah}}
 * Only the first one will work. -SolaPan 19:52, 19 March 2006 (CST)
 * Lower case B, "Skill box portrait6" not "Skill Box portrait6" d-: And lower b for landscape too -SolaPan 19:54, 19 March 2006 (CST)

Finer Details
Energy/Adrenaline should always use stat/val1, Activation should always use stat/val2, Recharage always stat/val3. stat/val0 is reserved for Exhaustion, Upkeep, Sacrifice etc. -SolaPan 20:03, 19 March 2006 (CST)


 * OK, will make this change. Two further questions.


 * 1) What "attribute" parameter is used for non-attributed skills?
 * 2) What to do about pages like Troll Unguent that have a non-standard skill box template?
 * 20:08, 19 March 2006 (CST)
 * I suggest using "No Attribute" as the in-game skill menu use that term. How is Troll Unguent being non-standard?  I can't figure it out at first glance. -SolaPan 20:13, 19 March 2006 (CST)
 * What I mean is that the source page uses something weird to get the profession instead of using Template:Skill_profession_entry. 20:16, 19 March 2006 (CST)
 * Ah, didn't notice it. I say print it out as "User:Stabbot/Unparsable", later we can check Special:Whatlinkshere/User:Stabbot/Unparsable and fix all the articles manually. -SolaPan 20:21, 19 March 2006 (CST)

No Attribute skills
For the non-attributed skills, I am able to know that it is non-attributed, so I don't need to depend on the template to do something sensible. Why not have the template take:

attribute = Air Magic

instead of

attribute = Air Magic

? Then I can just say:

attribute = No Attribute

and it will show up as unlinked. 20:29, 19 March 2006 (CST)
 * Well, I just created the No Attribute article (technically a redirect). I think it should be linked.  I would like to avoid square brackets in the template syntax as much as possible.  Thinking from the user perspective. -SolaPan 20:46, 19 March 2006 (CST)

Move templates from your user space?
Why not move portrait6 and landscape v5 (the frontrunners) to Template:Skill box portrait and Template:Skill box landscape? Then, whatever the outcome of the discussion, we can just change the global template instead of having to re-edit every skill page. 20:30, 19 March 2006 (CST)

Automatic detection of elites
Currently, some source pages such as Elemental Attunement have the "elite" flag as part of their skillbox, which I am able to parse, whereas others such as Unyielding Aura have it as part of the description in a haphazard manner, which I am not able to parse. Indeed, User:Stabbot/Unyielding Aura (target) shows it as a non-elite skill. We will have to do a manual pass over the elite skills afterwards to fix these discrepancies. 20:48, 19 March 2006 (CST)
 * Can you do a OR with a categorial parse? I know description might be non-standard, and where the cagetory shows up in the article's raw code is also non-standard, but you might still be able to pattern match the string  and  (there may or may not be space after colons). -SolaPan 20:52, 19 March 2006 (CST)
 * Ah, good idea. That's probably far more reliable than the skillbox. Making this change now. 20:54, 19 March 2006 (CST)

Time for a trial run?
I'm going to try running the bot on some of the monk skills, as they seem the most civilized at the moment. Let me try the core monk skills first. 21:07, 19 March 2006 (CST)