Titan Network

More Titan Projects => ParagonWiki => Feedback => Topic started by: Sailboat on September 02, 2010, 05:01:23 PM

Title: Problem with IO set category pages?
Post by: Sailboat on September 02, 2010, 05:01:23 PM
This page (http://wiki.cohtitan.com/wiki/Category:Sets_that_improve_Ranged_Defense) is messed up now.  It wasn't always messed up.  The "% bonus" column now is merged into the "# enhancements" column.  

I tried to revert it to a working version but that doesn't look at all like the Wikipedia pages I have edited before, so I stayed my hand.  The page seems to be a list of formulas that call up info from elsewhere...so it's possible this error affects the other pages like this one that use the same formulas.

I couldn't figure it out at a glance and am reluctant to meddle.  As Orson Scott card said, "Don't mess with what you don't understand."

But it could use fixin' if anyone here knows how to do so.
Title: Re: Problem with IO set category pages?
Post by: eabrace on September 02, 2010, 05:03:06 PM
I'm guessing it's probably DPL related.  Checking to see if I can figure it out now.
Title: Re: Problem with IO set category pages?
Post by: eabrace on September 02, 2010, 05:47:24 PM
It looks to me like the "Levels" column isn't being populated, which causes the "#Enhs" and "Bonus" values to slide a box to the left.

(Really strange that Calibrated Accuracy and Thunderstrike show up the way they do, though.)

Still staring at it.
Title: Re: Problem with IO set category pages?
Post by: eabrace on September 02, 2010, 06:17:50 PM
Narrowed it down to this block.

Code: [Select]
{{#dpl:
|category=Category:Sets that improve Ranged Defense
|mode=userformat
|listseparators=,,\n,
|includepage={InvSetOverview}ClassName.dpl,{Set Bonus}-EffectLine.dpl
|includematch=,/class\s*=\s*Defense.+?type[1-9]?\s*=\s*Ranged/s
|shownamespace=false}}
|}

Still parsing...

Title: Re: Problem with IO set category pages?
Post by: eabrace on September 02, 2010, 06:55:05 PM
Found it!  There was a missing pipe ('|') at the beginning of Template:Set_Bonus-EffectLine.dpl (http://wiki.cohtitan.com/wiki/Template:Set_Bonus-EffectLine.dpl).

Now, this does expose something interesting with that fixed, however.

In the cases of the Calibrated Accuracy and Thunderstrike sets, there are two different bonuses for Ranged Defense.  The DPL query catches both and displays an extra two columns for each of those sets.  We'll have to keep looking to figure out how to handle this, but for the most part, the information is available in those tables now.
Title: Re: Problem with IO set category pages?
Post by: Sekoia on September 03, 2010, 04:05:18 AM
I took a look at this a bit and I'm not sure that there's a good solution to the double-bonus issue. The two best options I could think of are:

.
I think the ideal solution would be to have those entries render two lines in the table, rather than a single line that has extra cells. Unfortunately, I don't think DPL can swing that.
Title: Re: Problem with IO set category pages?
Post by: eabrace on September 03, 2010, 05:04:01 AM
As I was looking at it, I was thinking the same thing.  "Gee, I wish I could figure out how to split that into two rows."  But I suspected DPL probably wasn't quite that sophisticated.

Actually, I'm just pretty proud of myself for figuring out how to get it as far as I did.  ;D