Module talk:AutosortTable
copy and paste error between WMF projects
editDear friends! @Jfd34 · t:, @Jackmcbarn · t:,. Please see testwiki:module:AutosortTable and https://test.wikipedia.org/?curid=82703# a copy of the paragraph w:en:list of Wikipedias#Detailed_list. Can you please fix the module to get it running also at testwiki: ?
Best regards and thanks in advance!lɛʁi ʁɑjnhɑʁt (leri raynhart)
- ·לערי ריינהארט·T·m:Th·T·email me· 09:51, 22 August 2015 (UTC)
parameters
editWhat do the 'create', 'order', 'numeric', and 'ascending'/'descending' parameters mean, how do they function, and how do I use 'colspan' and 'rowspan' on this module? -- PK2 (talk) 07:51, 18 August 2020 (UTC)
- Just noting for future page viewers that this has been responded to at Help talk:Table#parameters and auto-sorting tables; it may have been archived by the time you read this.𝒬𝔔 17:03, 28 August 2020 (UTC)
Edit request: Accessible code
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
First of all, I hope I've used an appropriate temple for this edit request. There seems to be no Template:Edit module-protected, and there's no Template: AutosortTable in front of this module.
My request is this: please add the necessary code to increase the compatibility of the output with WP:ACCESS, esp. MOS:DTAB.
Specifically, I'm hoping for two changes:
- Add the capability of specifying a table caption. (Wikitables do this with
|+ Some caption
in the wikicode.) - When generating a new row, emit the first cell as a row header with scope. Wikitables do this with
!scope="row"|
. The current module code produces simple data cells with<td>
, which doesn't help screen reader tools.
Thanks, — JohnFromPinckney (talk) 19:16, 14 February 2021 (UTC)
- Not done: According to the page's protection level you should be able to edit the page yourself. If you seem to be unable to, please reopen the request with further details. — JJMC89 (T·C) 19:58, 15 February 2021 (UTC)
- Oh, yeah; so I am. Sorry for being a dope. — JohnFromPinckney (talk) 15:20, 16 February 2021 (UTC)
Suggestion and bug
editI was thinking this module will be very useful for making a WikiProject issues backlog list where the variable numbers of issues change and thus automatic sorting would be beneficial. However, one capability missing from AutosortTable to make that perfect is having a row become invisible if a threshold is met (e.g. < 50 issues). Being able to set a column-value-based condition for enabling a row to display would be awesome.
A bug I ran into is if a cell value contains an external link with a '?' in its URL, the whole row won't display. I was linking to a PetScan result. To work around this, I'm using the [[petscan:n|description]] approach instead.
Thank you for a really cool module and for considering my suggestion and a bug fix. Stefen 𝕋ower's got the power!!1! Gab • Gruntwerk 19:22, 14 August 2025 (UTC)
- Note: per the suggestion, I know I can put "display: {{#ifexpr: column-value >= 50 | table-row | none}}" at the beginning of each row, but it seems like an unnecessary bulking of the table code, when theoretically a simplified conditional based on whatever the column-value is could be set in one spot. Stefen 𝕋ower's got the power!!1! Gab • Gruntwerk 20:04, 14 August 2025 (UTC)