Module talk:AutosortTable: Difference between revisions

Content deleted Content added
Edit request: Accessible code
 
(4 intermediate revisions by 3 users not shown)
Line 11:
 
== Edit request: Accessible code ==
 
{{Editedit template-protected|answered=yes}}
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.
 
Line 20 ⟶ 21:
# When generating a new row, emit the first cell as a row header with scope. Wikitables do this with <code>!scope="row"| </code>. The current module code produces simple data cells with <code><nowiki><td></nowiki></code>, which doesn't help screen reader tools.
Thanks, <i>&mdash;&nbsp;[[User:JohnFromPinckney|JohnFromPinckney]] ([[User talk:JohnFromPinckney|talk]])</i> 19:16, 14 February 2021 (UTC)
:[[File:Template-protection-unlocked.svg|28px|link=|alt=]] '''Not done:''' According to the page's protection level you should be able to [[Help:Editing|edit the page yourself]]. If you seem to be unable to, please reopen the request with further details.<!-- Template:ETp --> —&thinsp;[[User:JJMC89|JJMC89]]&thinsp;<small>([[User talk:JJMC89|T]]'''·'''[[Special:Contributions/JJMC89|C]])</small> 19:58, 15 February 2021 (UTC)
::Oh, yeah; so I am. Sorry for being a dope. <i>&mdash;&nbsp;[[User:JohnFromPinckney|JohnFromPinckney]] ([[User talk:JohnFromPinckney|talk]])</i> 15:20, 16 February 2021 (UTC)
 
== Suggestion and bug ==
 
I 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 <nowiki>[[petscan:n|description]]</nowiki> approach instead.
 
Thank you for a really cool module and for considering my suggestion and a bug fix. [[User:StefenTower|<span style="color: #1b770d;">'''Stefen <span style="white-space: nowrap;">𝕋ower<sub>'s got the power!!1!</sub></span>'''</span>]] <sup>''[[User talk:StefenTower|Gab]]'' • [[Special:Contributions/StefenTower|Gruntwerk]]</sup> 19:22, 14 August 2025 (UTC)
 
:Note: per the suggestion, I know I can put "<nowiki>display: {{#ifexpr: column-value >= 50 | table-row | none}}</nowiki>" 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. [[User:StefenTower|<span style="color: #1b770d;">'''Stefen <span style="white-space: nowrap;">𝕋ower<sub>'s got the power!!1!</sub></span>'''</span>]] <sup>''[[User talk:StefenTower|Gab]]'' • [[Special:Contributions/StefenTower|Gruntwerk]]</sup> 20:04, 14 August 2025 (UTC)