User talk:Killian

From NetHackWiki
Revision as of 12:24, 1 September 2009 by Rhebus (talk | contribs) (Sortable tables: new section)
Jump to navigation Jump to search

Sortable tables

Hi Killian,

Thanks for your help at Polearm with the abbreviations in the table headers. I was looking at some of your automatically generated tables (such as at Gem (program at Talk:Gem)) and I think they could be improved by making the tables sortable. Then you can gather all the hard gems together, or sort them alphabetically by name, or numerically by value, or whatever you want. All you have to do is give the table the css class "sortable" and give any columns that shouldn't be sortable the class "unsortable". I've done some example code based on your original program here with example output here.

(One other issue with sortable tables is that sorting doesn't play nice with horizontal separators between different categories (gems and glass, different categories of weapons, etc)).

I don't know if this is worth reautomating or should I go and edit all the tables manually? Rhebus 12:24, 1 September 2009 (UTC)