Thread:Karuberu/@comment-195370-20180427123431

No input necessary, just wanted to show something!

I've designed a table and appropriate templates for eg, weapon category pages.

User:Haldarn/Axes

The first 40 examples have been checked and formatted, the rest of the page is a mess that I'm updating article-by-article.

This uses #dpl to pull the damage and delay out of the Item Statistics template and then runs a calculation on them to create base dps.

I've also used #dpl to pull the item image filename out of the article's Item Image, which I think basically means that #lst is now obsolete? Rather than continue to manually add in missing labelled sections, I'm going to strip that out of as much referential code as I can now and go straight to the template. As far as I understand it from the #dpl manual, there is no extra processing overhead to directed #dpl like this in comparison to #lst (#dpl is only an processing issue when it involves collating data from across the entire wiki, like WhatLinksHere if I understand it right)

Dammit I wish I'd understood this better a couple of months ago!

Finally, one weird behaviour I noted was that sorting the table by Name resulted in articles that had an apostrophe within their title somewhere appearing out of order at the top... odd. Fixed by using PAGENAME: encoding in the template for a data-sort-order= property... in case you ever run into something similar! 