![]() |
Daily pageviews of Help:Sortable tables
A graph should have been displayed here but
graphs are temporarily disabled. Until they are enabled again, visit the interactive graph at
pageviews.wmcloud.org |
This is the
talk page for discussing improvements to the
Sortable tables page. |
|
Archives:
Index,
1,
2,
3,
4Auto-archiving period: 365 days
![]() |
![]() | This help page does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||
|
I observed a problem in instances of {{ AchievementTable}} which contain a custom caption. The template includes a series of sortable columns, so upon transclusion, any custom caption added after the template will follow the columns. On standard wikitables, there is no difference if the caption is listed before or after the columns in the table design. However, in sortable wikitables, the addition of a caption after the columns causes the sorting functionality to break and the column and row dividers are missing too.
Can the code for sortable wikitables be updated to handle for caption after the columns, disregarding them from the sort? SFB 20:48, 23 August 2023 (UTC)
1 | 2 | 3 |
---|---|---|
a | b | c |
1 | 2 | 3 |
---|---|---|
a | b | c |
1 | 2 | 3 |
---|---|---|
a | b | c |
d | e | f |
1 | 2 | 3 |
---|---|---|
a | b | c |
d | e | f |
SFB 20:48, 23 August 2023 (UTC)
Only between table start and first table row.Jroberson108 ( talk) 21:59, 23 August 2023 (UTC)
Sillyfolkboy. It is good to bring such problems to both here and the template page. I have seen some buggy interactions between templates and sortable tables. For example:
And between colspan and a template:
So one has to find a workaround. Go with whatever works until better solutions are found. It looks like templates used at or near the top of sortable tables can be a problem. You may need to do without the template in some specific circumstances. Or the use of specific parameters may be required. Both should be listed in the template documentation. -- Timeshifter ( talk) 05:26, 25 August 2023 (UTC)
Can someone knowledgeable can lend a hand here, please: Talk:List_of_historical_earthquakes#Date_Ordering. Thanks! fgnievinski ( talk) 00:44, 6 September 2023 (UTC)
You are invited to join the discussion at
Wikipedia:User scripts/Requests § Sortkeys in lists. {{u|
Sdkb}}
talk
15:40, 12 January 2024 (UTC)
I created the {{ sort under}} template to reposition the sorting arrows under the text without the issues that come with adding sorting buttons in a separate row. Please review and mention any issues on its talk page. Jroberson108 ( talk) 20:25, 28 January 2024 (UTC)
Comments are requested there specifically concerning whether the default class=sort-under should be centered sorting icons or right-aligned sorting icons. Or even left-aligned ones. -- Timeshifter ( talk) 21:46, 28 January 2024 (UTC)
see
Help:Sortable tables#Forcing a column to have a particular data type: data-sort-type=text uses alphabetical sorting of text, but numbers are sorted numerically within that alphabetical sorting.
Isn't there any possibility to get a column sorted strictly alphabetically instead of
Natural sort order, so 0R11 before 0R9 ?
Many thanks,
Aspiriniks (
talk)
11:38, 17 April 2024 (UTC)
P.S. I see there was a related discussion one year ago at
Help_talk:Sortable_tables/Archive_4#data-sort-type=text_doesn't_seem_to_work_properly - any news since then? --
Aspiriniks (
talk)
11:56, 17 April 2024 (UTC)
| data-sort-value=0R90 | 0R9
to sort as: 0R11, 0R12, 0R9. A similar sort value would be needed for any other cell values that aren't four characters long.
Jroberson108 (
talk)
04:52, 19 April 2024 (UTC)Hello, regarding List of cult films: K, it seems like the listings The Killer and The Killing, both which neighbor listings that have longer titles starting with Killer or Killing, wind up at the bottom of each respective group when sorting alphabetically, when they should come first, having nothing after that keyword. Am I doing something wrong? Is there a way to fix it? Erik ( talk | contrib) ( ping me) 14:24, 23 May 2024 (UTC)
I guess I fixed it by adding two spaces after each title, but this feels like too much of a hack. Is there a proper way to do this? Erik ( talk | contrib) ( ping me) 14:26, 23 May 2024 (UTC)
Sorting the following table with class=sortbottom for the bottom 2 rows removes the blank rows, displaying thusly. Qwerty284651 ( talk) 21:13, 1 July 2024 (UTC)
I just created Template:Year in date-sorted table as the inverse of Template:Date table sorting. I welcome input if there are better solutions to achieve the same goal, additional features that would be useful, and or suggestions for a more descriptive template name. Daask ( talk) 20:24, 16 July 2024 (UTC)
![]() |
Daily pageviews of Help:Sortable tables
A graph should have been displayed here but
graphs are temporarily disabled. Until they are enabled again, visit the interactive graph at
pageviews.wmcloud.org |
This is the
talk page for discussing improvements to the
Sortable tables page. |
|
Archives:
Index,
1,
2,
3,
4Auto-archiving period: 365 days
![]() |
![]() | This help page does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||
|
I observed a problem in instances of {{ AchievementTable}} which contain a custom caption. The template includes a series of sortable columns, so upon transclusion, any custom caption added after the template will follow the columns. On standard wikitables, there is no difference if the caption is listed before or after the columns in the table design. However, in sortable wikitables, the addition of a caption after the columns causes the sorting functionality to break and the column and row dividers are missing too.
Can the code for sortable wikitables be updated to handle for caption after the columns, disregarding them from the sort? SFB 20:48, 23 August 2023 (UTC)
1 | 2 | 3 |
---|---|---|
a | b | c |
1 | 2 | 3 |
---|---|---|
a | b | c |
1 | 2 | 3 |
---|---|---|
a | b | c |
d | e | f |
1 | 2 | 3 |
---|---|---|
a | b | c |
d | e | f |
SFB 20:48, 23 August 2023 (UTC)
Only between table start and first table row.Jroberson108 ( talk) 21:59, 23 August 2023 (UTC)
Sillyfolkboy. It is good to bring such problems to both here and the template page. I have seen some buggy interactions between templates and sortable tables. For example:
And between colspan and a template:
So one has to find a workaround. Go with whatever works until better solutions are found. It looks like templates used at or near the top of sortable tables can be a problem. You may need to do without the template in some specific circumstances. Or the use of specific parameters may be required. Both should be listed in the template documentation. -- Timeshifter ( talk) 05:26, 25 August 2023 (UTC)
Can someone knowledgeable can lend a hand here, please: Talk:List_of_historical_earthquakes#Date_Ordering. Thanks! fgnievinski ( talk) 00:44, 6 September 2023 (UTC)
You are invited to join the discussion at
Wikipedia:User scripts/Requests § Sortkeys in lists. {{u|
Sdkb}}
talk
15:40, 12 January 2024 (UTC)
I created the {{ sort under}} template to reposition the sorting arrows under the text without the issues that come with adding sorting buttons in a separate row. Please review and mention any issues on its talk page. Jroberson108 ( talk) 20:25, 28 January 2024 (UTC)
Comments are requested there specifically concerning whether the default class=sort-under should be centered sorting icons or right-aligned sorting icons. Or even left-aligned ones. -- Timeshifter ( talk) 21:46, 28 January 2024 (UTC)
see
Help:Sortable tables#Forcing a column to have a particular data type: data-sort-type=text uses alphabetical sorting of text, but numbers are sorted numerically within that alphabetical sorting.
Isn't there any possibility to get a column sorted strictly alphabetically instead of
Natural sort order, so 0R11 before 0R9 ?
Many thanks,
Aspiriniks (
talk)
11:38, 17 April 2024 (UTC)
P.S. I see there was a related discussion one year ago at
Help_talk:Sortable_tables/Archive_4#data-sort-type=text_doesn't_seem_to_work_properly - any news since then? --
Aspiriniks (
talk)
11:56, 17 April 2024 (UTC)
| data-sort-value=0R90 | 0R9
to sort as: 0R11, 0R12, 0R9. A similar sort value would be needed for any other cell values that aren't four characters long.
Jroberson108 (
talk)
04:52, 19 April 2024 (UTC)Hello, regarding List of cult films: K, it seems like the listings The Killer and The Killing, both which neighbor listings that have longer titles starting with Killer or Killing, wind up at the bottom of each respective group when sorting alphabetically, when they should come first, having nothing after that keyword. Am I doing something wrong? Is there a way to fix it? Erik ( talk | contrib) ( ping me) 14:24, 23 May 2024 (UTC)
I guess I fixed it by adding two spaces after each title, but this feels like too much of a hack. Is there a proper way to do this? Erik ( talk | contrib) ( ping me) 14:26, 23 May 2024 (UTC)
Sorting the following table with class=sortbottom for the bottom 2 rows removes the blank rows, displaying thusly. Qwerty284651 ( talk) 21:13, 1 July 2024 (UTC)
I just created Template:Year in date-sorted table as the inverse of Template:Date table sorting. I welcome input if there are better solutions to achieve the same goal, additional features that would be useful, and or suggestions for a more descriptive template name. Daask ( talk) 20:24, 16 July 2024 (UTC)