Jump to content

Wikipedia talk:Copyright problems/Corruption perceptions index

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Spitzl (talk | contribs) at 10:56, 30 January 2008 (make only certain columns sortable). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

improved table

please anybody checks the improved table for errors. We can then start using this one. --Spitzl 20:46, 2 October 2007 (UTC)[reply]

make only certain columns sortable

{{helpme}} I know there is a general way to make columns sortable. However, how do you make only certain columns sortable? In this case, it should be "Rank", "Country" and the years "2007", "2006", etc. While this is probably easy to solve (I hope), there is an additional twist to it. As you see, the table (I'm talking about the colored one on the top) is split in two parts. Is it possible to have the sortable buttons only on the left side, but still make it function for the entire table? Thanx for helping out! --spitzl (talk) 10:22, 29 January 2008 (UTC)[reply]

Please look there. If any questions or wishes should remain, please ask on the talkpage of the article.--Thw1309 (talk) 11:04, 29 January 2008 (UTC)[reply]

It can't be done. The two columns will have to be combined into one longer column, and the colspans and rowspans will have to be removed if you want to make this table fully sortable. There's really not that many options when it comes to sortable tables, unfortunately. One thing that might help is to make the upper headers into a separate table perched on top of the main table. (You may have to get tricky in order to make the columns line up at all browser-widths though.) Lurlock (talk) 21:08, 29 January 2008 (UTC)[reply]
Alright, that sounds like a bigger project. Anyways, thanx for your looking into it. The thing is, I'm really not good with tables, but maybe I'll try some time to transform it into a "normal" sortable table. I guess we could get rid of the top row and place the information somewhere else. --spitzl (talk) 10:56, 30 January 2008 (UTC)[reply]