<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rord.club/index.php?action=history&amp;feed=atom&amp;title=Template_talk%3ATable_alignment</id>
	<title>Template talk:Table alignment - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rord.club/index.php?action=history&amp;feed=atom&amp;title=Template_talk%3ATable_alignment"/>
	<link rel="alternate" type="text/html" href="https://wiki.rord.club/index.php?title=Template_talk:Table_alignment&amp;action=history"/>
	<updated>2026-09-12T07:31:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.rord.club/index.php?title=Template_talk:Table_alignment&amp;diff=937&amp;oldid=prev</id>
		<title>Bleach: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.rord.club/index.php?title=Template_talk:Table_alignment&amp;diff=937&amp;oldid=prev"/>
		<updated>2025-07-29T09:48:50Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:48, 29 July 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Bleach</name></author>
	</entry>
	<entry>
		<id>https://wiki.rord.club/index.php?title=Template_talk:Table_alignment&amp;diff=936&amp;oldid=prev</id>
		<title>wikipedia&gt;Timeshifter: /* Can a template be made to align a row header column to the left? */ reply</title>
		<link rel="alternate" type="text/html" href="https://wiki.rord.club/index.php?title=Template_talk:Table_alignment&amp;diff=936&amp;oldid=prev"/>
		<updated>2025-03-21T01:50:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Can a template be made to align a row header column to the left?: &lt;/span&gt; reply&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Wikidata ==&lt;br /&gt;
&lt;br /&gt;
Hi. I&amp;#039;ve connected the template to the Wikidata. [[User:IKhitron|IKhitron]] ([[User talk:IKhitron|talk]]) 12:20, 14 December 2022 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Is it possible to adapt this template to account for rowspans and/or overriding cell alignments? ==&lt;br /&gt;
&lt;br /&gt;
{{ping|WOSlinker}} I love this template, but I&amp;#039;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)?&lt;br /&gt;
{{Table alignment}}&lt;br /&gt;
{|class=&amp;quot;wikitable sortable col2right&amp;quot;&lt;br /&gt;
! A !! B !! C&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=3 | A || B || C&lt;br /&gt;
|-&lt;br /&gt;
| B || C&lt;br /&gt;
|-&lt;br /&gt;
| align=right | B || align=left | C&lt;br /&gt;
|}&lt;br /&gt;
[[User:Star Garnet|Star Garnet]] ([[User talk:Star Garnet|talk]]) 10:02, 12 June 2023 (UTC)&lt;br /&gt;
:Yes you have to directly override them with inline styling. (Do not use the align attribute, it is deprecated html) &lt;br /&gt;
{|class=&amp;quot;wikitable sortable col2right&amp;quot;&lt;br /&gt;
! A !! B !! C&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=3 | A || B || C&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: right&amp;quot; | B || style=&amp;quot;text-align: left&amp;quot; | C&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;text-align: right&amp;quot; | B || style=&amp;quot;text-align: left&amp;quot; | C&lt;br /&gt;
|}&lt;br /&gt;
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. —[[User:TheDJ|Th&amp;lt;span style=&amp;quot;color: green&amp;quot;&amp;gt;e&amp;lt;/span&amp;gt;DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 10:59, 12 June 2023 (UTC)&lt;br /&gt;
::Thanks! I should have realized the template was simply rendering the deprecated form null. [[User:Star Garnet|Star Garnet]] ([[User talk:Star Garnet|talk]]) 18:40, 12 June 2023 (UTC)&lt;br /&gt;
:A year later. @[[User:Star Garnet|Star Garnet]], sorry I&amp;#039;m answering just now, but it&amp;#039;s the first time I saw you question. Actually, there is a way to fix this problem, without editing each cell. Not in all cases, but in a huge lot of cases, including your example. For some reason this template css sheet includes only the half of the code, I don&amp;#039;t know why, but the negative part is missing. I am not going to edit it, because I&amp;#039;m not one of the enwiki tech support, but maybe somebody else can. The relevant code can be found in interwiki links, searching &amp;quot;nth-last-child&amp;quot;. [[User:IKhitron|IKhitron]] ([[User talk:IKhitron|talk]]) 17:34, 2 June 2024 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Why can&amp;#039;t this functionality be merged into the Wikitable class itself? ==&lt;br /&gt;
&lt;br /&gt;
Why can&amp;#039;t this functionality be merged into the Wikitable class itself? [[User:Jorge Stolfi|Jorge Stolfi]] ([[User talk:Jorge Stolfi|talk]]) 13:16, 4 September 2023 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Tables with 99 columns ==&lt;br /&gt;
&lt;br /&gt;
Adding columns up to 99 to the styles in [https://en.wikipedia.org/w/index.php?title=Template%3ATable_alignment%2Ftables.css&amp;amp;diff=1211901571&amp;amp;oldid=1211760342 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. [[User:Jroberson108|Jroberson108]] ([[User talk:Jroberson108|talk]]) 14:21, 1 June 2024 (UTC)&lt;br /&gt;
:I think you would be safe to go back to 30 for now and it can be expanded later if needed. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 16:59, 1 June 2024 (UTC)&lt;br /&gt;
::I agree. Reverted it back to 29 columns. It can be increased as needed. [[User:Jroberson108|Jroberson108]] ([[User talk:Jroberson108|talk]]) 19:00, 1 June 2024 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Classes with nth-last-child selector ==&lt;br /&gt;
&lt;br /&gt;
Adding classes with nth-last-child selector would allow to avoid some limitations on tables using &amp;lt;code&amp;gt;rowspan&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;colspan&amp;lt;/code&amp;gt; mentioned in the doc. &amp;lt;code&amp;gt;rowspan&amp;lt;/code&amp;gt; more common in the first column (or first n columns) and if the rest of a table doesn&amp;#039;t have &amp;lt;code&amp;gt;rowspan&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;colspan&amp;lt;/code&amp;gt; then all other columns can be aligned by these classes without problems.&amp;lt;br/&amp;gt;&lt;br /&gt;
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).&amp;lt;br/&amp;gt;&lt;br /&gt;
There are some other minor benefits but this section already in tl;dr territory. [[User:Sport1wiki|Sport1wiki]] ([[User talk:Sport1wiki|talk]]) 23:45, 21 December 2024 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Can a template be made to align a row header column to the left? ==&lt;br /&gt;
&lt;br /&gt;
See this version of [[John Wick#Cast and characters]]:&lt;br /&gt;
*https://en.wikipedia.org/w/index.php?title=John_Wick&amp;amp;oldid=1281524450#Cast_and_characters &lt;br /&gt;
&lt;br /&gt;
See &amp;#039;&amp;#039;&amp;#039;[https://en.wikipedia.org/w/index.php?title=John_Wick&amp;amp;diff=1281524049&amp;amp;oldid=1281520767 diff]&amp;#039;&amp;#039;&amp;#039; 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. &lt;br /&gt;
&lt;br /&gt;
The overall table alignment &amp;#039;&amp;#039;&amp;#039;style=text-align:left&amp;#039;&amp;#039;&amp;#039; does not effect the row header column. &lt;br /&gt;
&lt;br /&gt;
There has to be an easier way. &amp;#039;&amp;#039;&amp;#039;Maybe a template just for aligning a row header column to the left.&amp;#039;&amp;#039;&amp;#039; --[[User:Timeshifter|&amp;#039;&amp;#039;&amp;#039;Timeshifter&amp;#039;&amp;#039;&amp;#039;]] ([[User talk:Timeshifter|talk]]) 22:57, 20 March 2025 (UTC)&lt;br /&gt;
&lt;br /&gt;
:{{re|Timeshifter}} The doc says wikitable headers are centered unless individually adjusted. Even if it were possible, you need a way to distinguish column and row headers like setting scope so both aren&amp;#039;t styled, which that table and most don&amp;#039;t do. [[User:Jroberson108|Jroberson108]] ([[User talk:Jroberson108|talk]]) 23:27, 20 March 2025 (UTC)&lt;br /&gt;
::{{re|Jroberson108}} OK. I wrote up a how-to section for row headers in the doc: &amp;#039;&amp;#039;&amp;#039;[[Template:Table alignment/doc]].&amp;#039;&amp;#039;&amp;#039; It does not use the template. &lt;br /&gt;
::--[[User:Timeshifter|&amp;#039;&amp;#039;&amp;#039;Timeshifter&amp;#039;&amp;#039;&amp;#039;]] ([[User talk:Timeshifter|talk]]) 01:50, 21 March 2025 (UTC)&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Timeshifter</name></author>
	</entry>
</feed>