Template talk:Table alignment

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Wikidata[edit]

Hi. I've connected the template to the Wikidata. IKhitron (talk) 12:20, 14 December 2022 (UTC)[reply]

Is it possible to adapt this template to account for rowspans and/or overriding cell alignments?[edit]

@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)[reply]

Yes you have to directly override them with inline styling. (Do not use the align attribute, it is deprecated html)
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 (talkcontribs) 10:59, 12 June 2023 (UTC)[reply]

Thanks! I should have realized the template was simply rendering the deprecated form null. Star Garnet (talk) 18:40, 12 June 2023 (UTC)[reply]

Why can't this functionality be merged into the Wikitable class itself?[edit]

Why can't this functionality be merged into the Wikitable class itself? Jorge Stolfi (talk) 13:16, 4 September 2023 (UTC)[reply]