Hi. I've connected the template to the Wikidata. IKhitron (talk) 12:20, 14 December 2022 (UTC)
@WOSlinker: I love this template, but I've run into an issue where the use of rowspans makes it malfunction, aligning the cells not by their column, but by their relative position in the row. I notice that the alignment issues go away when the table has been sorted. I understand if this is a permanent limitation, but if so, can this template be changed so that individual cell alignments can be overridden (like on the bottom right cell that should be left-aligned)?
A | B | C |
---|---|---|
A | B | C |
B | C | |
B | C |
Star Garnet (talk) 10:02, 12 June 2023 (UTC)
A | B | C |
---|---|---|
A | B | C |
B | C | |
B | C |
BTW. It clears up after sorting, because sorting ALSO cannot handle rowspans, so when you first use that, it clones the cells and removes the rowspan. —TheDJ (talk • contribs) 10:59, 12 June 2023 (UTC)
Why can't this functionality be merged into the Wikitable class itself? Jorge Stolfi (talk) 13:16, 4 September 2023 (UTC)
Adding columns up to 99 to the styles in this edit seems excessive. The highest used is 25 at List of largest airlines in Europe. I would be concerned if any table had 99 columns. Jroberson108 (talk) 14:21, 1 June 2024 (UTC)
Adding classes with nth-last-child selector would allow to avoid some limitations on tables using rowspan
or colspan
mentioned in the doc. rowspan
more common in the first column (or first n columns) and if the rest of a table doesn't have rowspan
or colspan
then all other columns can be aligned by these classes without problems.
Up to 10 classes for each alignment named something like colLast1(left/center/right) through colLast10(left/center/right) would probably be enough (based on a wild unscientific guess).
There are some other minor benefits but this section already in tl;dr territory. Sport1wiki (talk) 23:45, 21 December 2024 (UTC)
See this version of John Wick#Cast and characters:
See diff showing many of the individual cell changes to get the row header column aligned to the left. I used find and replace inside the wiki-editor. I had to do some individual adjustments too (removing the style from various cells). Way too much work.
The overall table alignment style=text-align:left does not effect the row header column.
There has to be an easier way. Maybe a template just for aligning a row header column to the left. --Timeshifter (talk) 22:57, 20 March 2025 (UTC)