Difference between revisions of "User talk:Killian"

From NetHackWiki
Jump to navigation Jump to search
m (silly bot, I'm not new)
(Sortable tables: new section)
Line 1: Line 1:
 +
== 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 [http://www.doc.ic.ac.uk/~pgp/gemtable.cpp here] with example output [http://www.doc.ic.ac.uk/~pgp/gemtable.txt 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? [[User:Rhebus|Rhebus]] 12:24, 1 September 2009 (UTC)

Revision as of 12:24, 1 September 2009

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)