Help talk:Table/Archive 7

Sortable table with white background and lines?
Hi

Is there a way of having a sortable table but in the same style of a simple table with no background colour or lines?

Thanks

John Cummings (talk) 09:15, 11 October 2015 (UTC)


 * Just omit the  class. With  :


 * With only :


 * PrimeHunter (talk) 09:27, 11 October 2015 (UTC)


 * Hi PrimeHunter, thanks so much, you've saved me a lot of time :) John Cummings (talk) 11:08, 11 October 2015 (UTC)

Multidimensional tables
Is there any way to create tables with more than two dimensions? E.g. select the third dimension from a dropdown or radio-button list, which updates the table showing the first two dimensions. Irfan (talk) 10:34, 13 October 2015 (UTC)
 * The English Wikipedia does not support that and I don't know of other wikis that do. A drop-down list should be possible to code with JavaScript but it will only work for users with JavaScript in their browsers. MediaWiki:Gadget-charinsert-core.js makes the drop-down list below the edit box where you can select Insert, Wiki markup, Symbols, Latin and so on. I'm not a JavaScript coder. PrimeHunter (talk) 12:40, 13 October 2015 (UTC)

PLEASE HELP. DO YOU KNOW HOW TO PUT TWO TABLES PARALLEL TO EACH OTHER?? one beside the other???
PLEASE HELP. DO YOU KNOW HOW TO PUT TWO TABLES PARAREL TO EACH OTHER?? one beside the other??? EXAMPLES

I do not want one below the other. please help i need this for my work on the proyect im writing here in wikipedia. blessings --Cheposo (talk) 03:21, 14 November 2015 (UTC)


 * Please do not SHOUT! ;)


 * Wrap the 2 tables inside another table:

{|
 * style="vertical-align:top;" |


 * style="vertical-align:top;" |


 * }


 * Note: style="vertical-align:top;"
 * It aligns the top of both tables.
 * --Timeshifter (talk) 18:26, 14 November 2015 (UTC)

MY FRIEND THANKS THANKS THANKS THANKS THANKS A LOT!!!!!!!!!!!! Cheposo (talk) 21:43, 14 November 2015 (UTC)


 * Note: Section below started on user talk page, and moved here to help others too.

first i want to thank you for helping me with the tables, but i have another problem my friend, i geb you:

i want this two tables as they are, one near de other, but located in the center of the page. PLEASE PLEASE MY FRIEND!!! this king of info should be in the table tutorials on wiki. PLease show me the code!!!!Cheposo (talk) 13:30, 15 November 2015 (UTC)


 * You're welcome. This centers the tables: style="margin:auto;"


 * --Timeshifter (talk) 18:33, 15 November 2015 (UTC)

THANKLS MY FRIEND!!!! REALLY REALLY REALYY THANKS!!!!!!! THANK YOU!!!! Cheposo (talk) 17:35, 14 December 2015 (UTC)

HEY TIME SHIFTER MY FRIEND!!!!! THANKS FOR THE HELP. I HAVE ANOTHER REQUEST OF HELP. I WANT TO MAKE THIS TABLE, BUT I DONT KNOW HOW TO MAKE THE CODE, SO I WENT TO PAINT AND I PAINTED THE TABLE I NEED FOR KEEP WORKING: LOOK AT IT



please my friend i depend on you to keep working Cheposo (talk) 17:45, 14 December 2015 (UTC)


 * OK. Is this what you want?:

Or collapsed to begin with:

--Timeshifter (talk) 23:36, 14 December 2015 (UTC)

TIME SHIFTER!!!! YOU ARE THE GOD OF TABLESSS!!!!! THANKS A LOT!!!!!!!!!!!!! :) Cheposo (talk) 00:26, 15 December 2015 (UTC)

Any chance to collapse columns or rows?
It would be so helpful to be able, when you create a table, to define a button that can collapse for example columns 2,4,6 or some rows that you need to collapse. Is there any way to do this? If not, did anyone think about implementing such a thing? Thanks. —  Ark25  (talk) 00:28, 22 December 2015 (UTC)

uneven rowspans
is there any easy way to make a table with the following layout?  +-+-+ +-+    | +-+     | +-+-+ my attempts to do this with rowspans summing to 6 have failed for some reason. thank you. Frietjes (talk) 17:14, 11 May 2015 (UTC)
 * 1.1 |    |
 * | 1.2 |
 * | 1.2 |
 * 2.1 +-+
 * 2.1 +-+
 * | 2.2 |
 * 3.1 |    |
 * follow up, very odd but this


 * works, but if I remove the fake cells, it doesn't work. Frietjes (talk) 17:20, 11 May 2015 (UTC)
 * Have a look at how I did it at . Basically, you need to have six rows. -- Red rose64 (talk) 18:35, 11 May 2015 (UTC)
 * I have a similar problem with a table. This is how it looks now:


 * It should look like this:

 +--+---+ +--+---+ +--+                          | +--+                           | +--+---+ +--+---+ +--+Ian Botham (1988–96)       | +--+                          | +--+                           | +--+---+
 * Team A      |        Team B       |
 * Cliff Morgan (1970–75)   |                           |
 * Fred Trueman (1976–77)   |Henry Cooper (1970–79)     |
 * Brendan Foster (1977–79) |                           |
 * Gareth Edwards (1979–81) |Emlyn Hughes (1979–81)     |
 * |Willie Carson (1982–83)   |
 * Bill Beaumont (1982–96)  |Emlyn Hughes (1984–88)     |
 * Bill Beaumont (1982–96)  |Emlyn Hughes (1984–88)     |
 * John Parrott (1996–2002) +---+
 * John Parrott (1996–2002) +---+
 * Frankie Dettori (2002–04) |Ally McCoist (1996–2007)  |
 * Matt Dawson (2004–present)+---+
 * |Phil Tufnell (2008–present)|
 * |Phil Tufnell (2008–present)|


 * My efforts to achieve this were all in vain, even with the fake cells. Tvx1 21:04, 28 May 2015 (UTC)
 * Please give a link to where you carried out your testing. -- Red rose64 (talk) 21:52, 28 May 2015 (UTC)


 * Ian Botham and John Parrott share a row in your code but that row renders with height 0 for me. Same for the row shared by Ally McCoist and Matt Dawson. The below looks OK for me in a Firefox test but may change display in other circumstances. It uses  to force some multi-row cells to a certain height. PrimeHunter (talk) 22:31, 28 May 2015 (UTC)


 * I use Firefox: and the above comes out uneven. Setting an explicit height makes assumptions, which you shouldn't do when laying out a table. The characteristics of your system are not the same as everybody else's.
 * works by having a column (two in fact) with no rowspans at all, each of the six cells in that column contain a  to force some height into each row. They appear to be a single 6-high cell because the top five cells have the bottom border removed, and the bottom five cells have the top border removed, so that the five common borders are absent. -- Red rose64 (talk) 22:57, 28 May 2015 (UTC)
 * The table I pasted here is just one attempt I made to make it work (and it seems I didn't even correctly coded the Parrot-Botham row). This is how it was originally coded:




 * I tried to apply the "fake cells" to that, but it didn't work obviously. I didn't test in any sandbox or so. I just edited it and used the preview button to check whether it worked and cancelled the edit altogether when I noticed it didn't. That means I can't provide a link to anything, unfortunately. Any of course in this one too the Parrot-Botham row isn't correctly coded yet. Tvx1 23:40, 28 May 2015 (UTC)


 * The fake cell approach leads to something like this. Not particularily better I think, or at least not how I worked it.

--Jules (Mrjulesd)  00:07, 29 May 2015 (UTC)
 * Well at least that table is correct. The only issue that one has is that some cells are larger than needed. Tvx1 22:05, 29 May 2015 (UTC)


 * Using style heights, but tweaking slightly gives this:


 * Perhaps a slight improvement.  --Jules (Mrjulesd) 11:28, 31 May 2015 (UTC)
 * Indeed, but now the Dawson-McCoist shared row is hardly noticable. Tvx1 13:52, 31 May 2015 (UTC)


 * how about this?


 * Not improved probably. I would try to tweak the height until is seems correct, but it's a little difficult to get exactly right, it doesn't seem to work how I predict for some reason. May also vary between browsers.  --Jules (Mrjulesd) 16:16, 31 May 2015 (UTC)
 * No. now the McCoist, Dawson and Tufnell cells are way to large and Parrot and McCoist no longer share a row. I highly appreciate your efforts but I'm not sure this is the right way to solve this. I still wonder why the original table doesn't appear the way it's coded? It has a rowspan of 2 for Matt Dawson, but only one row appears. Similarly it has a rowspan of 3 for Ally McCoist, but only two appear. Tvx1 16:36, 31 May 2015 (UTC)


 * Parrot and McCoist do share a cell, at least on my system, but you're right it probably isn't an improvement.
 * I think the reason rowspan doesn't work correctly is that whoever programmed it didn't envisage this overlapping of cells, and did it purely as perfectly lined up cells, but cells lining up with more than one cell. They should have really, there was no reason for this not to work as originally envisaged, but I don't think they basically thought of this situation, and didn't implement it properly. Or at least that's a probably explanation.
 * Having said, I would just pick whichever one you like best and go with it. Or maybe the help desk / village pump would have more luck.  --Jules (Mrjulesd) 16:56, 31 May 2015 (UTC)


 * Having fiddled with it some more myself I finally achieved the intended result. A wholehearted thanks. Tvx1 17:58, 23 December 2015 (UTC)

Maximum number of rows
Is there a limit to the number of rows in a table. It would be a sortable table with 3 columns and potentially about 2,000 rows. Is that possible? Piriczki (talk) 18:40, 15 January 2016 (UTC)


 * There is no intrinsic limit and what you want to do is likely possible. See List of canals in Oregon (660+ rows) and User:EncMstr/List of Oregon GNIS features (2186 rows) for extreme examples.  Some computers/browsers may not work correctly with a large number of rows, but that is due to individual system limitations, not a limit of a table.  —EncMstr (talk) 00:59, 16 January 2016 (UTC)


 * There is a limit in a page (table or not table). It's called template_include_size_limit. That's the reason why User:EncMstr/List of Oregon GNIS features (2186 rows) is on trouble: so many calls to template coord are above the TISL. Obviously, this would not apply to a text-only table. Pldx1 (talk) 10:21, 23 February 2016 (UTC)

Sticky table header
Please provide a sticky header while scrolling long tables (longer than a screen height), like in this example. It will be very useful. 79.191.252.28 (talk) 13:16, 3 March 2016 (UTC)

Table Overflows Into Right Margin
In the Safari browser on an iPad in the Cladograms section a table overflows to the right edge of the right margin and pushes the right edge of the margin to the right, expanding the right margin to nearly half the page. The entire text of the article is squeezed into the left half of the page.

I see this effect in other articles, e.g., a table in the Vocabulary comparison section of the Romance Languages article, but don't know how to fix it. — Preceding unsigned comment added by 173.72.170.69 (talk • contribs) 15:50, 4 December 2011‎

Clean up table of contents // Restructure
This help page has too many unordered information in it. I'd suggest a massive clean-up. If you don't want to delete whole sections, just improve nesting of headlines. Check these headlines - very hard to understand IMHO (sections 9-16):

9 Other table syntax 9.1 Comparison of table syntax 10 Pipe syntax in terms of the HTML produced 10.1 Tables 10.2 Rows 10.3 Cells 10.4 Headers 10.5 Captions 10.6 Summaries 11 Square monitors 12 Vertically oriented column headers 13 Wikitable as image gallery 13.1 Shifting/centering 14 Generate a chart with a table 15 Converting spreadsheet to wikitable format 16 Tables and WYSIWYG -- — Preceding unsigned comment added by Jesus Presley (talk • contribs) 19:31, 25 November 2012

Bottom/Footer
Hi there. I believed that, once upon a time, I saw a wikitable with a bottom/footer section. This would be a row spanning all columns, and a place for notes etc.. I am currently editing List of British Columbia Provincial Parks and have such a footer. Problem is it is a sortable wikitable, so whenever you do toggle a sorting, that footer gets caught up in the sort instead of staying at the bottom. Is there a solution to this? If so, I would also kindly ask for it to be added to the help page. Thanks! -- Natural  R X 15:53, 4 March 2016 (UTC)
 * There's a "sortbottom" feature for this. It's described at Help:Sorting. -- John of Reading (talk) 16:50, 4 March 2016 (UTC)
 * Excellent, thanks! -- Natural  R X 17:19, 4 March 2016 (UTC)

PLEASE SOME ONE HELP ME
PLEASE HELP ME TO MAKLE THIS TABLE I HAVE A LOT WORKIGN AND IMPROVING THIS ARTICLE AND I NEED SOME THING LIKE THIS BUT WITH THE CHANGES I WANT CAN SOME ONE MAKE THIS TABLE FOR ME PLEASE?



I WANT TO USE THIS ON THE SPANISH WIKIPEDIA. CAN SOME ONE PLEASE MAKE SOMETHING THAT LOOKS LIKE THIS????? I BEG FOR SOME ONE HWO CAN HELP ME PLEASE.

--Cheposo (talk) 03:55, 18 May 2016 (UTC)


 * perhaps try copying the format from something like Discography_of_the_Devil_May_Cry_series that has some hide/show tech in there, you can add colours and pictures afterward, not sure it's the best example but it's simple enough it will probably work on other wikipedias as it doesn't look to be using templates that might be called something else - but if you look around some famous artist's articles I'm sure you'll find some example that better matches what you're looking for, I had asuper quick look at Elvis and The_Beatles_discography both look fairly similar (without the hide/show) EdwardLane (talk) 07:41, 18 May 2016 (UTC)

Strange table width behaviour
I'd appreciate an expert explaining to me why this edit made the table wider. I've built several of these tables -- see earlier in the same article, for example -- and the goal is to have minimal white space around the table entries, to avoid an unnecessarily wide table. The other examples in the article show what I'm trying to achieve. I tried removing the style=width entries and that didn't help. Evidently something is different about this table, but I can't figure out what it is. Thanks for any help. Mike Christie (talk - contribs - library) 20:08, 10 July 2016 (UTC)
 * I've kludged it by putting in a table width in pixels, but surely that's not the best answer. Mike Christie (talk - contribs - library) 20:14, 10 July 2016 (UTC)

before the second sentence. The current version has so much content in the bottom row that limiting the whole table width may be a better solution. PrimeHunter (talk) 14:35, 11 July 2016 (UTC) helps; I've done it before to good effect, e.g. here. However, there is some extra whitespace showing up at the right that I don't understand. See User:Mike Christie/Sandbox7; it has a in the caption but where is that extra space coming from? However, the table in the article itself is OK now, with the pixel limitation, so I'm asking now just to try to understand it. Mike Christie (talk - contribs - library) 14:53, 11 July 2016 (UTC)
 * The table is widened to display the single-cell bottom row without line wrapping. You could have placed a linebreak
 * I don't think that's the whole answer. You're right that putting in
 * I only see the width required to fit the longest line in the bottom row. I have Firefox 47.0.1. PrimeHunter (talk) 23:50, 11 July 2016 (UTC)
 * I get this (the upper one is IE, the lower one is Chrome) when I display the table in the sandbox. If it looks OK in Firefox then perhaps it's a bug in the browser rendering? Mike Christie (talk - contribs -  library) 00:11, 12 July 2016 (UTC)
 * I see the same as you in IE. I added two versions of the table here with widths removed in the second. In IE the first table is much wider and the second table is only as wide as required to avoid line wrapping in "Note ... Horror". In Firefox they both have that width. I don't know the reason for the IE rendering or whether it should be called a bug. Browsers have some freedom in rendering. PrimeHunter (talk) 13:09, 12 July 2016 (UTC)

Help at Channel Orange
I'm having no success with this table here, using "rowspan" so that the last line of items ("July 23, 2012"; "Universal Music Group"; "CD") also reaches the last row in the table ("France"). Can someone please help? Dan56 (talk) 22:10, 24 July 2016 (UTC)
 * "sortable" has problems with rowspans. Removing it would fix the issue. PrimeHunter (talk) 22:31, 24 July 2016 (UTC)

Problems with header cells
I'm having a slight problem while trying to build a table for a home video release of a TV series. For some reason, I can't seem to make the header cells or whatever you call them line up.

renders as:

For some reason, all the header cells after the double height one will not format correctly. When I try to make them the correct height by adding, thus

I end up with this:

Does anyone know how to fix this? Ideally, I'd like a few more of these "nested header cells" or whatever you call them, but is that impossible? Thanks, G S Palmer (talk • contribs) 17:32, 28 July 2016 (UTC)


 * A cell must be specified in the row of the top part of the cell so "Blu-ray / DVD artwork" comes right after "Contents" like below. It's certainly possible to make more of the same type. PrimeHunter (talk) 19:30, 28 July 2016 (UTC)


 * Thanks. G S Palmer (talk • contribs) 23:12, 28 July 2016 (UTC)
 * Could you possibly demonstrate, on the "Audio Commentary" column? Because I still can't figure it out.  I tried a few things, but they didn't work.  I'm not good with tables.  G S Palmer (talk • contribs) 23:31, 28 July 2016 (UTC)
 * Rowspan and colspan can be tricky. Only specify the cells that have their top in a given row, so there are no cells specified between "Shorts" and "Audio 1" below. PrimeHunter (talk) 23:41, 28 July 2016 (UTC)


 * Thank you very much. G S Palmer (talk • contribs) 01:22, 29 July 2016 (UTC)

Table split into columns
Hi, how do you split a table into two or more columns to avoid a long list and lots of white space? I'd like to do this to Regional League at this location i.e. first column would be the 1944-45 to 1968-69 champions. Thanks. Eldumpo (talk) 06:58, 12 August 2016 (UTC)
 * One method is to make an outer table with one row and two cells, each containing a table. I did that in . The tables are only sortable one at a time. I don't think it's possible to make the whole thing sortable with rows moving between the two columns when they are sorted. PrimeHunter (talk) 11:42, 12 August 2016 (UTC)
 * Thanks very much. Eldumpo (talk) 08:13, 13 August 2016 (UTC)

Column width
Two questions:
 * 1) Why does the guide show how to specify column widths in pixels and then say that it's deprecated? I get why it's deprecated, but why give examples in a way that you don't want editors to use? It says to use ems instead but doesn't show how to do that.
 * 2) I've been trying in an article to line up the columns of consecutive tables using ems, but for some reason they're not consistent. Why is that?  McLerristarr  &#124;  Mclay1  07:12, 16 August 2016 (UTC)

Omitting the pipe between cell parameters and cell data
✅: When editing Comparison of single-board computers I noticed quite a few existing instances where there is no pipe (|) or vertical bar between the cell parameters such as rowspan and/or data-sort-value and the cell data. The table seems to display and perform correctly. It appears the parsing rules allow cell data to get populated by a template. Is this behavior something we can expect will always work or should that article get fixed up to always separate the cell parameters and cell data with a pipe or bar?

Below is an example table. None of the cells use a pipe or bar between the parameters and data including a rowspan for column 3. Nearly all of the cells have their data inserted via templates. The exception is the middle cell on the second row where the parser must have decided the entire thing was data.


 * {| class="wikitable sortable" border="1"

! Col 1 !! Col 2 !! Col 3
 * xyzzy=10 Cell 1-1 || data-sort-value=10 Cell 1-2 || rowspan=2 data-sort-value=5 Cell 1/2-3
 * data-sort-value=10 Cell 2-1 || data-sort-value=10 Cell 2-2
 * }
 * data-sort-value=10 Cell 2-1 || data-sort-value=10 Cell 2-2
 * }
 * }

--Marc Kupper&#124;talk 08:15, 19 August 2016 (UTC)


 * The pipe is always necessary but it may be added by a template. Yes and no in your example add background coloring and alignment so they already have cell attributes followed by a pipe followed by cell data. If the caller has cell attributes before these templates then there must not be a pipe. Their documentation says so in the lead. Your cell with  has no pipe and no template which adds a pipe so none of the text is cell attributes. PrimeHunter (talk) 10:51, 19 August 2016 (UTC)
 * Thank you! It had not occurred to me to read the manual for something that seemed as straightforward as a Yes/No. --Marc Kupper&#124;talk 20:56, 19 August 2016 (UTC)

Tennis tables query
Most tennis stat tables follow the formatting I have in the top table here. The difference is that if we have a number column at all, the number column is after the result column. If I move the number column before the result column I don't want it to be colored at all. If I use white as background it's brighter than the rest of the default table color (I used F9F9F9 instead). Is there a simple way to suppress the No. column color that I'm missing? Thanks. Fyunck(click) (talk) 18:39, 26 August 2016 (UTC)
 * HTML does not have whole-column operations. Wikitext table code is just an alternative to HTML syntax and doesn't add such features. And I don't think it's possible in an individual cell to say "Ignore the row color and use whatever color would have been here otherwise. Note the color is different in the mobile version so the first column in your second table gets varying color, at least in my desktop browser: https://en.m.wikipedia.org/w/index.php?title=User:Fyunck(click)/sandbox/charts. I think the proper method would be to use no row color and instead add cell color for every cell where you actually want the color. That's a lot of color code. It could be added by a Help:Table so articles could just say something like . Then Tennis final row could add styling, flagicon and so on, and simultaneously change the styling in all articles using it. The "P" (for Premier) is the tournament category which should determine the background color. If wanted, "Loss" could also be shortened to "L", "Hard" to "H" and so on. PrimeHunter (talk) 20:54, 26 August 2016 (UTC)
 * I was afraid of that. No way would the project agree to have to add color to every cell, so I guess we're stuck with color in the number column. As far as shortening loss to "L" you have to realize that right this second it is actually Winner and Runner-up, and my shortening it to Win and Loss is already unlikely to fly. So W and L would likely be obliterated. Thanks, I just thought it looked better as an uncolored column. What the heck is the default color for tables at wikipedia anyway? It looks like F9F9F9 in my Firefox browser, but there must be a way to find out. Fyunck(click) (talk) 00:01, 27 August 2016 (UTC)
 * I mean the call of a row template could say "L" to shorten the code (or make it optional to say L, Loss or Runner-up). The template could then write Loss, Runner-up or whatever is wanted, and it could be changed later without changing all the articles. PrimeHunter (talk) 12:44, 27 August 2016 (UTC)
 * Also, I guess mobile versions color schemes are different. IE, Firefox, and Chrome desktop browsers all look perfect with F9F9F9 as the cell color. No variance that I can detect. But the mobile version you used does all wiki-background as "white", so I'd have to change it to "white" to match perfectly. Fyunck(click) (talk) 23:25, 30 August 2016 (UTC)

Japanese_pottery_and_porcelain#Wares table
I need help with the table please. The Kanji column needs more spacing so that all the Chinese characters fit into one line. What edit would be necessary? Thank you. Gryffindor (talk) 21:32, 2 September 2016 (UTC)
 * I used nowrap on the longest text in the column [//en.wikipedia.org/w/index.php?title=Japanese_pottery_and_porcelain&diff=737456927&oldid=737455773] to make it wide enough but not wider than necessary. PrimeHunter (talk) 22:30, 2 September 2016 (UTC)
 * ✅ Perfect, thank you very much. Gryffindor (talk) 23:08, 2 September 2016 (UTC)

An entire cell as a link?
Is it possible for an entire cell in a table to be a link itself, so rather than using A inside the cell, is there code that lets the whole cell from top to bottom, left to right be one big link? --  AxG /  ✉  / 10 years of editing  12:36, 24 September 2016 (UTC)
 * AFAIK, only in the usual way, by placing the cell's text to the right of a pipe after the intended link target:
 * {| class=wikitable


 * no links here
 * This will link to EN Wikipedia's Main Page – Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
 * }
 * -- Michael Bednarek (talk) 12:45, 24 September 2016 (UTC)

Help on table creation
Hello,

What's the right way to create a table for production figures?

I'd like to create a new monthly production table for the T-34 article. However, the tables on Soviet combat vehicle production during World War II gave me a rough idea, thought, I want it closer to the orginial as depicted in the book. Have a look on the picture: http://i.imgur.com/QCCHaRi.jpg

I've started with some tryouts on my sandbox, but, I'm not sure if I'm doing it right: https://en.wikipedia.org/wiki/User:Dircovic/sandbox

Would love to have some help! Thanks in advance. Dircovic (talk) 07:26, 12 November 2016 (UTC)

Diagonal split header
Hi, I have a quick question regarding the diagonal split header template: is there a similar template for the diagonal line going "the other way" (i.e. top-right to bottom-left)? Skewb? (talk) 23:53, 2 January 2017 (UTC)
 * I don't think so but it could be made. What is it for? PrimeHunter (talk) 00:32, 3 January 2017 (UTC)
 * It's not for anything important (though maybe it could be useful in the future). I just want to experiment with different shapes of tables on my sandbox, but I don't think there's any way of creating a diagonal split (either in the header or anywhere else) except for the above template. Skewb? (talk) 21:17, 3 January 2017 (UTC)
 * A similar template to the above could certainly be made, or the type of code it uses could be written directly in a table. But the template uses an ugly hack to achieve it and diagonal "splits" in the other direction seem far less useful. The generated html is one cell with a diagonal line where the template just tries to guess how to position two different texts so they end up on each side of the line without an unnatural position in their triangle. Users of the template may have to add additional blankspace to avoid crossing the line. Other browsers, font settings, printers and so on may render it differently, and I imagine it's confusing to screen readers (see MOS:DTAB). Without a good use case I don't think it should be done. PrimeHunter (talk) 11:15, 4 January 2017 (UTC)
 * Fair enough, I personally don't have an issue with writing the code itself directly into the table. I'm not very good at coding though, so could you please let me know what the code for diagonal lines (in both directions) would look like? Skewb? (talk) 12:55, 4 January 2017 (UTC)
 * You can try Special:ExpandTemplates to see the code diagonal split header generates and then tinker with it. PrimeHunter (talk) 01:28, 5 January 2017 (UTC)

Indent a table
Hi there. How can an indent be introduced to move a simple table a bit to the right? Diceypoo (talk) 10:25, 25 February 2017 (UTC)
 * Place one or more colons before . PrimeHunter (talk) 10:38, 25 February 2017 (UTC)


 * thanks. I had tried that, not sure why it didn't work! Any tips to make this easier to find / searchengine-friendlier? Diceypoo (talk) 13:05, 25 February 2017 (UTC) Indent Table Wiki Wikipedia
 * {| class="wikitable"

! 1 ! 2
 * row1cell1
 * row1cell2
 * row2cell1
 * row2cell2
 * }
 * row2cell2
 * }

Rowspan in Aux1
Is it possible to use rowspan="number" in Aux column? The example of table used is the one for anime episodes --Yukinotane (talk) 23:02, 12 April 2017 (UTC)
 * Your question is about the  parameter of Template:Japanese episode list in for example One Room (anime). The table formatting is done by the template which has no support for adding a rowspan. PrimeHunter (talk) 23:48, 12 April 2017 (UTC)

Autonumbering
This could be added to the page. Thoughts? Anna Frodesiak (talk) 18:36, 20 April 2017 (UTC)
 * I agree that Module:Autonumber should be mentioned overleaf. This feature has also been mentioned at User:Pee Tern/Sandbox/Template/autonumbered list/doc. -- Michael Bednarek (talk) 06:08, 21 April 2017 (UTC)

Too wide table
What if the table is too wide? Ho to fix it? --Azot944 (talk) 19:17, 25 May 2017 (UTC)
 * It depends on the table, which changes you are willing to make, and what you consider too wide. Do you have a specific table in mind? PrimeHunter (talk) 20:24, 25 May 2017 (UTC)
 * Take a look (table is too wide) --Azot944 (talk) 20:53, 25 May 2017 (UTC)
 * There are 24 columns and 8 rows. It could be flipped to 8 columns and 24 rows. 24 columns will always be wide. It could be narrowed a little by only writing thousands, e.g. 92 instead of 91750. PrimeHunter (talk) 21:13, 25 May 2017 (UTC)

Scroll
Is possible the Scroll in horizontal?84.76.135.234 (talk) 13:53, 9 July 2017 (UTC)

Better way to do decimal point alignment?
While working on Atomic clock, I wanted to do decimal point alignment of a column to emphasize the order-of-magnitude differences between microwave and optical frequencies, and the nested table recommendation at Help:Table is very awkward because you have to specify an explicit column width.

So I played around with CSS and came up with the following. (The example here is simplified by removing references and irrelevant columns.)

The column is actually two. The header cell specifies, while the body cells specify   and  , respectively.

This seems obviously superior to the nested-table construct, in particular letting the browser choose appropriate column widths, but before I go in and change the recommendation, can anyone see any reasons why it's not? E.g. should I leave the existing more awkward suggestion for some special cases? 71.41.210.146 (talk) 14:03, 27 September 2016 (UTC)


 * I just saw your edit on Atomic clock and found your formatting solution way more elegant than the previous nested table. I see no reason for not changing the recommendation. — Edgar.bonet (talk) 15:25, 27 September 2016 (UTC)


 * Okay, thanks, I'll WP:Be bold and change it.  It's not like an edit is irreversible.  71.41.210.146 (talk) 17:13, 27 September 2016 (UTC)
 * It seems like a lot of code to use directly. I have made (not documented yet) alignd to align decimal numbers with the suggested code, and alignd column to be placed in other cells of the column. The below table looks the same as above but has simpler code. Templates also mean implementation details could be changed later. PrimeHunter (talk) 00:54, 28 September 2016 (UTC)


 * That's much neater, but "alignd" looks like a misspelling of "aligned". Perhaps something like "aligndp" would be clearer? -- John of Reading (talk) 06:17, 28 September 2016 (UTC)
 * I haven't tried it, but inspecting this code, and the previous, suggests to me that the full numbers cannot be sorted. If so, this should be mentioned in the documentation. If I needed decimal point alignment and sorting, I would use a right-aligned fixed-width font and a fixed number of decimals (which doesn't work well for vastly different orders of magnitude). -- Michael Bednarek (talk) 08:33, 28 September 2016 (UTC)
 * Sorting works surprisingly well when it just gets  in the header. My limited tests like the below sort correctly by the full number including decimals. PrimeHunter (talk) 10:15, 28 September 2016 (UTC)


 * Wow, I'm indeed surprised, and withdraw my previous uninformed remarks unreservedly. -- Michael Bednarek (talk) 12:24, 28 September 2016 (UTC)


 * Presenting Decimal cell, which takes the value as an actual decimal number, rather than two separate parameters for integer and fractional components as alignd. That makes it easier to upgrade existing cell values and generally minimizes the surprise or special knowlege required to read/edit the wikitext. And it also takes an optional CSS string that propagates into both subcells. DMacks (talk) 06:26, 25 February 2017 (UTC)


 * Why not use template:hidden text as it keeps data all in one cell? Rolapib (talk) 12:50, 31 July 2017 (UTC)

Cyclist results timeline
Can anyone please suggest a better way to display difference between the two types of races. It's a bit of a bodge IMO. This is take from Chris Froome, but is used on a large number of others. BaldBoris 22:41, 20 September 2017 (UTC)

Australian classificatory systems. Help needed
There is a glaring gap in wiki devices to tabulate these class/skin divisions which are otherwise described for several hundred tribes. Some are simple (but inadequately represented so far (see the makeshift at Kariera). At the moment, I'd appreciate if someone could give advice as to how one might tabulate the minimal data on the following source page here. Not all of that need go in (e.g. the circle/square design could be left to verbal description inside cells) of course. Thanks and sorry for the bother.Nishidani (talk) 11:57, 21 September 2017 (UTC)

float headers of larger tables?
When I encounter larger tables and I find myself in the middle or bottom of those tables I find myself wondering which column is which. Is there a way that the table headers could float down with the reader as the reader reads through larger tables? --EarthFurst (talk) 19:40, 19 October 2017 (UTC)

Table angular rotation transform
I few months back, I saw a User page that had a table or TOC rotated about 10 degrees (with the contained text correspondingly roatated at the same angle.

I would like to try that, but I neglected to copy down the source or page where I saw that.

Template:Transform-rotate just rotates the text, not the table, which is not what I want.

Any help?

IveGoneAway (talk) 17:18, 7 November 2017 (UTC)

Adjacent tables
Apologies if I skipped over it, but how do you create tables directly next to one another, on the same line? They are both two rows; one has two columns and one has three. If you need a visual, here you are:

That's as close as I've been able to get it, but I need the table with white headers to be directly to the right of the table with red headers.

Any help is massively appreciated.

Thanks, [[User:PCN02WPS| PCN 02 ]] WPS 21:06, 31 August 2017 (UTC)


 * How about this? Set the second table to float right and use Template:clr to keep text from filling up in between.
 * I have also done the same effect by enclosing the two tables within two cells of a one row table with hidden lines. This also supports finer control of horizontal alignment of the two tables. IveGoneAway (talk) 18:25, 30 November 2017 (UTC) 18:37, 30 November 2017 (UTC)

Row size issue...
Is there anyone that can help me? It seems the size of the rows is glitching in a table I have created. Underneath "Album details", it is always a few pixels out of line on the very bottom line of each row in the column. I borrowed this wikitable format from the Iron Maiden discography page, and it seems to have the same row size glitch on that page in the Iron Maiden discography table, but strangely not the Iron Maiden discography table. Even stranger, the glitch doesn't appear when I am in the "Show preview" screen while editing...

—  Tha† emo over †here (talk)  03:35, 19 April 2018 (UTC)

The glitch doesn't appear to be showing up here, but for me it shows up at User:Thatemooverthere/Infant_Annihilator and at Iron Maiden discography —  Tha† emo over †here (talk)  03:36, 19 April 2018 (UTC)

Auto calculation
It is possible in the final row of the total? --Kasper2006 (talk) 08:47, 28 June 2018 (UTC)
 * There is no feature to automatically calculate the sum of table cells. If all the cells are made by the same template then the template can make another cell with the sum but constructing such a template is usually harder than calculating the sums manually. mw:Help:Extension:ParserFunctions can be used to calculate a sum but each number has to be input to #expr and cannot be read automatically from a cell. PrimeHunter (talk) 10:56, 28 June 2018 (UTC)
 * tnx for your answer --Kasper2006 (talk) 17:34, 28 June 2018 (UTC)

Non-rectangular tables example broken
The last table in § Non-rectangular tables is rendering broken in both Firefox and Chrome, and to be honest I can't figure out what it's trying to do in order to fix it. Here's the current example:

Looking at the code... heck, looking at the table... I have no idea what it's trying to achieve, and why it would need to be a "non-rectangular table". -- FeRD_NYC (talk) 16:57, 18 June 2018 (UTC)
 * It looks reasonable to me, if the point is to simulate a single tall-but-narrow table that flows into multiple columns. I agree that "non-rectangular" is a confusing section heading (all of them look rectangular!). DMacks (talk) 08:57, 28 June 2018 (UTC)
 * It looks like three tables side by side but is actually a single table with two blank columns. I guess the point is that there is no rectangular border running around the whole table. PrimeHunter (talk) 10:49, 28 June 2018 (UTC)

Perhaps we're seeing different things. Here's how it's being rendered in Linux Chrome, for me (this is actually a screenshot of the copy embedded above on the Talk page, but the rendering in the article is the same): https://imgur.com/a/Z5MJP3W -- FeRD_NYC (talk) 15:59, 28 June 2018 (UTC)
 * Realized I should've mentioned I was responding to both and  -- FeRD_NYC (talk) 16:01, 28 June 2018 (UTC)


 * Wow, that's broken. Looks correct for me on Firefox and Safari on Mac. In the coding, the first row has  attributes on each of the spacer title cells, but for you that is not being extended beyond that first row. Let's try to diagnose the browser effect. Does the following have "woof" only in the top row or vertically centered in the whole table?


 * I know some browsers did/do have differences rendering cells that have no content. DMacks (talk) 16:13, 28 June 2018 (UTC)
 * That latest version looks exactly the same as my screenshot (shape-wise — the header row is sticking out two spaces over the right edge), with "woof" filled in to both of the formerly-blank spaces in the header row. But the overall shape is unchanged. That's in Linux Chrome 67. Linux Firefox (56, the older platform) is basically the same. -- FeRD_NYC (talk) 16:31, 28 June 2018 (UTC)
 * Oh, hang on... after spinning up a Windows7 VM, I saw the correct rendering there... until I logged in. This is clearly an issue with my Wikipedia account specifically. I'll hunt down whatever settings or user CSS is breaking this and clear it out. Apologies for the wild goose chase. -- FeRD_NYC (talk) 16:41, 28 June 2018 (UTC)
 * Yeah, for future reference, the "Make sure that headers of tables remain in view as long as the table is in view (requires Firefox v59 or Safari)" switch in Special:Preferences#Gadgets§Testing and development and rowspan headers are not friends, no matter what browser you're using. -- FeRD_NYC (talk) 16:52, 28 June 2018 (UTC)
 * Marking resolved. -- FeRD_NYC (talk) 17:23, 28 June 2018 (UTC)
 * Good detective work! I just confirmed that turning that feature on/off has the same break/unbreak of these tables. I'll leave a note at MediaWiki talk:Gadget-StickyTableHeaders.css. DMacks (talk) 19:24, 28 June 2018 (UTC)
 * After some (very appropriate) pushback from the gadget developers, and extensive investigation into the output generated by the wikitable, I concluded that the bug was in our example. It was using rowspanned column headers, which resulted in an invalid table structure that was then exposed by the gadget. I've updated the code of the example to properly structure the table using rowspanned data cells, instead. -- FeRD_NYC (talk) 13:09, 5 July 2018 (UTC)

Any table expert around?
Hi guys. I need help with creating a table based on this image. Anyone? --Saqib (talk) 10:06, 10 July 2018 (UTC)
 * Here is a wikitable where the first row is a header row. It may render small because the cells are currently empty. PrimeHunter (talk) 12:47, 10 July 2018 (UTC)


 * Great. thank you . I will try this table and ask you question, if any. --Saqib (talk) 12:56, 10 July 2018 (UTC)
 * A question. How can I add more rows in section B. Lets says I need 7 rows in A section but 10 rows under section B. I hope you get it? If you look at the image, there're 8 rows in right section.--Saqib (talk) 13:08, 10 July 2018 (UTC)
 * Can you use this with a big blank cell at the end of A:


 * Or this:


 * Rows go across the whole table. If you want the A and B sections to have different arbitrary row heights without row alignment between the sections then it cannot be done with a single table. PrimeHunter (talk) 18:52, 10 July 2018 (UTC)
 * I was able to create a table without row alignment, but was unable to add those 2 columns. Maybe you can help? --Saqib (talk) 05:24, 11 July 2018 (UTC)


 * If you accept aligning a single A section row with two B section rows then here is a solution where it's done for the last three A section rows, but it could be any three rows. PrimeHunter (talk) 10:24, 11 July 2018 (UTC)

Tables footer issue?
I've noticed that on Football Player Club Statistics tables, the penultimate row is.. odd. Take for example Hugo Lloris. You'll notice that the "206" value (his total appearances for Tottenham) is not under the "Apps" column, and the total listed for this column, 0, is his Goals total. The cell for Tottenham Hotspur is rowspan 7, so it should be going one row further down, and thus shifting everything to the right location, but it seems something in the JavaScript is "fixing" this (I happened to notice due to a slower than usual page load which jumped the row one column to the left..). Any ideas if anything can be done to fix this? It's the same on a lot of other players too, and on some other tables I've seen that may be related to this issue. --Philk84 (talk) 21:48, 16 July 2018 (UTC)
 * I guess you have enabled "Make sure that headers of tables remain in view as long as the table is in view" under the "Testing and development" heading at Special:Preferences. This gadget does not work properly for tables where header rows use rowspan. See MediaWiki talk:Gadget-StickyTableHeaders.css and . The gadget is disabled by default and is only an option for logged in users. PrimeHunter (talk) 22:33, 16 July 2018 (UTC)
 * Thanks, I don't recall setting that option before, indeed many of the preferences that are enabled I don't remember setting, so I'm not sure what's going on there. I've disabled that option and it is indeed working. --Philk84 (talk) 06:54, 17 July 2018 (UTC)
 * Hah! Now, that's a really interesting case. The issue once again is, same as with the table that started that previous discussion, the table structure as rendered into HTML is invalid. But in this case it's because the entire last two rows are being subsumed into the table footer. This is actually a much trickier case, I'm not sure of exactly the right way to fix it... the table design needs some tweak to break the next-to-last row out of its "header row" status, so that only the very last row is considered the table footer. -- FeRD_NYC (talk) 17:15, 19 July 2018 (UTC)
 * Got it! I can fix the table layout, if you don't mind the Club entries being slightly off-center vertically. See the first section of User:FeRD_NYC/sandbox. They'll actually line up with the Division text, after this change, which arguably looks better anyway. I've only adjusted the Tottenham Hotspur block, in the example, but in the article I'd also fix up the rest of them (though it's not strictly necessary for this issue) so there's consistency with the vertical alignment. -- FeRD_NYC (talk) 17:24, 19 July 2018 (UTC)
 * Scratch that last statement, I adjusted the entire table to give a better idea of the final layout. -- FeRD_NYC (talk) 17:35, 19 July 2018 (UTC)

Table overlapping with text
For some reason, the tables at WP:Finland started overlapping with text? After a quick round of troubleshooting I have no idea what is wrong. Any help from more experienced editors? 86.115.14.101 (talk) 17:08, 22 July 2018 (UTC)
 * It wasn't the table, it was the fact that they were using Template:float to align it. I've switched that to Template:align, and the issue is corrected. -- FeRD_NYC (talk) 21:49, 24 July 2018 (UTC)

Row operations
I have been editing since 2006, with over 7,000 edits. The section "Row operations" contained three subsections each of which contained only a link to another section in this Help Page, the gave absolutely no help at all. E.g. row alignment points to table alignment. I removed it in the hope of getting the attention of an editor who knows why this is so and who will insert text explaining why, when they restore this section. Sorry for the blunt knife, but even now I do not know how to alert expert editors to something that definitely needs clarification. I hope I have not offended, nor crossed some frobidden boundary, but I really think it is important to improve the "Row operaions" section with some comment such as "all rows must share common features with the entire table, so there are no distinct 'row operators' rather these operators are all 'table operators'." I would insert that myself but I am not sure that is true. Nick Beeson (talk) 11:58, 20 November 2018 (UTC)

Scope failure
Could someone who knows edit this help page to describe why scope="row" style="font-weight: normal; text-align: center;" centers the first four columns' text content but does not center the last three columns' text content which contain only digits? I could not find any explanation, and I do not understand this behaviour. Thanks, Nick Beeson (talk) 11:58, 20 November 2018 (UTC)
 * @Nick Beeson: Please say which page it is about when you ask for help. I guess it is Mönchengladbach. The old version had the quoted code in the first cell of a row so the style only applied to that cell. The next three cells were left-aligned. You probably thought they were centered because the column was only as wide as the content in that row. I cleaned up some bad table code.[//en.wikipedia.org/w/index.php?title=M%C3%B6nchengladbach&diff=869841294&oldid=869794107]  identifies a row header cell. It does not mean that adjacent code applies to the whole row. Code for a whole row is placed in the row declaration. PrimeHunter (talk) 18:55, 20 November 2018 (UTC)

Problem with floated table
Hello,

I noticed a problem with the following table format: This table shows up nicely on the right side in Firefox (with text flow around it) but in Chrome the first row is extraordinaryly large and the table occupies the entire page width. Is there anything wrong with the syntax? I could not find an error. Thanks for any help! --Furfur &#8258; Diskussion 21:16, 20 February 2019 (UTC)
 * Confirmed here – I see the same thing as described above here in FF and Chrome, latest versions. -- Michael Bednarek (talk) 05:37, 21 February 2019 (UTC)

Help Request
Hi folks. I'm struggling a bit with a table. Could someone advise me where I may have gone wrong? Also, how would I get the text to show "pending" rather than the red nominated? User:Mark E/Sandbox. Thanks! Mark E (talk) 12:44, 6 March 2019 (UTC)
 * If nominated is on a line by itself, it needs just one  in front of it, as on the last line of your table. If you are placing it on the same line of wikitext as the previous table cells, it needs two:   . To make a cell say "pending" you write pending - if you follow that link and scroll down, you'll see a long list of similar templates. -- John of Reading (talk) 13:08, 6 March 2019 (UTC)

Horizontal row of tables
I'm copyediting Household, which has many, many tables running down the left side of the page. I'd like to arrange two or three narrow, related tables across the page to minimize whitespace, and haven't found instructions here or at WP:ADTABLE. Is there a way to do that? Thanks and all the best,  Mini  apolis  16:52, 15 March 2019 (UTC)
 * Help:Table says "You can also place tables side by side by adding  to the opening of your table." PrimeHunter (talk) 18:03, 15 March 2019 (UTC)
 * Thanks, ; I missed that. All the best,  Mini  apolis  14:03, 16 March 2019 (UTC)

Best practice for yes/no column?
Are there any best practices for how to represent true/false or yes/no values in a table? Some examples:  The first seems clearest, but I couldn't find any guidance and can't actually recall seeing any tables set up like that, so I just wanted to get others' opinions. Thanks! ╠╣uw [ talk ] 18:57, 24 April 2019 (UTC)
 * Yes and No are used a lot:

-- John of Reading (talk) 19:05, 24 April 2019 (UTC)

Make the header not go off the screen
Is there a way to make the top row not stay out of the screen in long tables? Is it possible to make it follow the scrolling? I hope you know what I mean --Bageense</b><sup style="color:#AA0000;">(disc.) 14:56, 31 May 2019 (UTC)
 * Not for others on a specific table. For your own account on all tables, Special:Preferences has "Make sure that headers of tables remain in view as long as the table is in view". Some tables are malformed by the gadget per MediaWiki talk:Gadget-StickyTableHeaders.css. PrimeHunter (talk) 15:11, 31 May 2019 (UTC)

How can edited a table
How can i get a full detail on how to created my own page Jomolado (talk) 19:03, 30 August 2019 (UTC)
 * The help page overleaf gives a very detailed explanation of the wikitext coding required. It also shows a side bar at the right top (Wikitext) with further links to helpful pages. -- Michael Bednarek (talk) 04:35, 31 August 2019 (UTC)

How may i understand that, without practice Jomolado (talk) 08:00, 31 August 2019 (UTC)

I need a practica that i can use to do my own to get more assurance Jomolado (talk) 08:02, 31 August 2019 (UTC)

I neeed a link on internet, that we bring more understand too me Jomolado (talk) 08:04, 31 August 2019 (UTC)

So that people i know may understand that, which we give me motivation to  teach them on how to it, an if there is knw understnd about it there we be know knowlege about, i need a goood idea Jomolado (talk) 08:08, 31 August 2019 (UTC)
 * See Help:Starting editing, Help:Getting started, Help:Guided tours, and further links found there. Maybe the introduction at Help:My sandbox or WP:SANDBOX will help. -- Michael Bednarek (talk) 11:13, 31 August 2019 (UTC)

Problem with two-line headers in a sortable, collapsible and collapsed table
Hello,

The following type of table worked at least in July, but not anymore as the second header line does not render (header that says Column 1, 2, and 3). Something seems to have changed in MediaWiki? This has nothing to do with a browser.

If you remove either "sortable" or "collapsed", it renders the sub-header:

However, the first type of table did work just fine in July. What gives? Zarex (talk) 14:55, 2 September 2019 (UTC)
 * It varies for me between page views (especially when previewing). Sometimes I see the row and sometimes not. This indicates it may depend on loading order of the JavaScript. This order can vary between views. PrimeHunter (talk) 19:49, 2 September 2019 (UTC)
 * I also noticed after posting my message that the first table worked fine on this talk page, but in preview while editing my message, it did not (and still does not work in preview). And the article I've been working on is still having this issue. So is there anything you can do, or is it pure luck when it happens? Zarex (talk) 21:51, 2 September 2019 (UTC)
 * I don't know enough JavaScript to do something. Village pump (technical)/Archive 86 from 2011 is also about problems combining sortable and collapsible like the discussed template did at the time [//en.wikipedia.org/w/index.php?title=Template:General_Category_(Unicode)&oldid=407663678]. Eight years is a long time but load order was also mentioned there by TheDJ who is still active. Help:Collapsing claims it works without difficulty but the example only has one header row. PrimeHunter (talk) 22:19, 2 September 2019 (UTC)

Chrome vs Firefox vs Edge in tables - help needed
Could someone using Chrome check out the discussion we are having at Talk:Bianca Andreescu career statistics? When looking at the performance table... specifically the "Hardcourt Win–Loss" row, or "Overall Win–Loss" row, we have a user using Chrome that says some of the columns wordwrap. I have Chrome, Firefox, and Edge, with standard settings, and they all look perfect... no wordwrap. He uses Chrome and items such as 34–13 wraps itself. Just trying to figure things out. Thanks. Fyunck(click) (talk) 04:07, 10 September 2019 (UTC)
 * The problem was buried in the Chrome regional settings. I had no idea it could affect table cell widths. Fyunck(click) (talk) 08:20, 10 September 2019 (UTC)

Years not sorting properly
I'm working on a table (User:Kaiser_matias/sandbox1), and for some reason the "Tournament" column is not sorting properly. It should work chronologically from the earliest/latest year, regardless of how many years are input, but for some reason it is messing up with the multiples. I have had this work before (see List_of_Olympic_men%27s_ice_hockey_players_for_the_Czech_Republic for a most recent example), but am at a loss here. Kaiser matias (talk) 22:29, 2 November 2019 (UTC)
 * "1960, 1964" is interpreted as an 8-digit number by the sort code. It happens in this table but not the other example because the first five rows only have normal numbers so the code tries to interprete all cells as numbers per Help:Sorting. In the other table, the third row "1998, 2002, 2006" does not look like a number so the code chooses to sort the column as text. 4-digit years sort correctly as text. The easiest solution is directly asking to sort the column as text with  in the column heading per Help:Sorting. PrimeHunter (talk) 22:58, 2 November 2019 (UTC)
 * Thanks a lot for your help with this, I really appreciate it. Kaiser matias (talk) 22:14, 4 November 2019 (UTC)

Long tables wrapped into multiple columns
At Automobile drag coefficient we have a rather long but narrow table that has been manually divided into 3 parts and each part put into a 3x1 side-by-side table. As entries have been added, each of the 3 parts has become a different height and it looks very unprofessional. I tried joining them back into a single table and wrapping it with and. See https://en.wikipedia.org/w/index.php?title=Automobile_drag_coefficient&oldid=899773674, I reverted this immediately. The results are passable but the headers are lost on the 2nd, 3rd, etc columns and multi-line cells are sometimes split between columns. Is there a better way to do this?  Stepho  talk 08:12, 1 June 2019 (UTC)


 * Apologies if this is stale.


 * I'm not quite sure exactly from reading the above what the desired end-state is. I checked the diff & scrolling did not observe anything split between columns, could you be a bit more specific? If the problem with the change you tried was loss of a different header for concept/experimental, that can be remedied by placing a second table below the first thereby preserving its header, or if they must be combined by inserting a new header row.


 * Alternatively if you want to preserve the compactness of having the three side-by-side instead of a single long table, there's probably some a way to get the cells to align with the right combination of parameter values and templates. However, I don't see how you expect to get the last table the same length as there are less than half as many experimental as production vehicles listed. That is unless your intent was to add empty rows to the third column. Would you mind clarifying for me, thanks. P.S. Please allow a few days for replies, I can usually respond within the week, thank you.  &#119980; &#120084;  02:08, 10 January 2020 (UTC)

Table not sorting correctly
This table doesn't sort correctly:

How can I fix it? Chrisnait (talk) 16:36, 28 January 2020 (UTC)


 * the problem is with, should've been  , I've fixed it below, and added pure wikicode below that so you can copy-paste the whole thing if desired. As a rule, incorrect rowspan numbers break sorting, and cause mix-ups in rows and columns, so it's good to start debugging by checking to make sure all such figures are correct. Feel free to ask any additional questions if you have them.


 *  &#119980; &#120084;  00:12, 4 February 2020 (UTC)


 * P.S. Please allow a few days for replies, I can usually respond within the week.

Column total
Is there any simple way to generate the total for a numeric column? GhostInTheMachine (talk) 10:09, 7 March 2020 (UTC)
 * No. If the whole table is made with a template or module then they can be coded to compute a sum but that is far from simple. Some tables use mw:Help:Extension:ParserFunctions to compute sums but you still have to manually enter and update all the numbers in the cell where the sum is computed. PrimeHunter (talk) 12:28, 7 March 2020 (UTC)
 * Thought so, but thanks. GhostInTheMachine (talk) 15:39, 7 March 2020 (UTC)

Caption on mobile with narrow screen
Hi, I'm maintaining this table and I noticed that on mobile when the screen is narrow the caption of the table uses only the first column. Basically if the width of the browser is less than 720px the caption uses only the first column. Otherwise, it spans all the columns. Any way to fix this? -- ChaTo (talk) 08:22, 1 April 2020 (UTC)


 * See: User:Timeshifter/Sandbox100. I removed various things to see if it helped. When I removed   the problem was solved on my iphone X in Safari browser in portrait mode. Latest version of iOS.


 * See this version of the page on your mobile phone in portrait mode:
 * https://en.wikipedia.org/w/index.php?title=User:Timeshifter/Sandbox100&oldid=948592209


 * Please do not edit that sandbox of mine. Please create your own user sandboxes: Special:MyPage/Sandbox, Special:MyPage/Sandbox2, Special:MyPage/Sandbox3. As many as you want. Share the link when asking for help. To find all your sandboxes: Special:PrefixIndex/User: – click link, add user name to the spot labeled "Display pages with prefix:".


 * See Help:Table. It has been updated today. It explains how to use  


 * It must be used outside the table wikitext. --Timeshifter (talk) 23:40, 1 April 2020 (UTC)

Rowspan in wikitable sortable plainrowheaders not spanning
What have I done wrong here? The table fields for year/artist/album collapse in a way that doesn't seem to happen when I've used this table elsewhere. --Prosperosity (talk) 23:48, 5 May 2020 (UTC)
 * I have seen problems before when a whole column has header cells in a sortable table. It works to end with a non-header cell, e.g. in a non-displayed row [//en.wikipedia.org/w/index.php?title=Phoebe_Bridgers&diff=955120232&oldid=955108092]:


 * style="display:none;" colspan="4" |
 * style="display:none;" colspan="4" |
 * PrimeHunter (talk) 02:08, 6 May 2020 (UTC)
 * Awesome, thank you! --Prosperosity (talk) 03:39, 6 May 2020 (UTC)

empty rows?
Under Help:Table, in the second example, the wikitext includes <pre style="display: inline-block;">
 * - style="text-align: center;"
 * - style="text-align: center;"

The first of those lines would seem to denote an empty row (no cells), but the accompanying prose doesn't say anything about it, and the generated HTML doesn't have an extra, empty tr element. So is it just a sort of 'spacer' in the source? Jmdyck (talk) 02:01, 20 May 2020 (UTC)


 * I think it was just a typo. I removed it. The table looks the same with and without it.


 * With:


 * Without:


 * --Timeshifter (talk) 09:08, 20 May 2020 (UTC)


 * Thanks, Jmdyck (talk) 13:14, 20 May 2020 (UTC)

Transpose tables
I cannot find anything about transposing (swap columns and rows). Is this even possible?--89.206.112.10 (talk) 18:47, 6 April 2020 (UTC)
 * See the last part of Help:Table. The section called "Tables and the Visual Editor". You can paste in new columns and rows. Then delete old columns and rows. You can also paste over existing columns and rows. --Timeshifter (talk) 09:37, 7 April 2020 (UTC)
 * I don't see the option for turning columns into rows or vice versa. I only manage to shift rows or columns around. But I try to turn e.g.
 * {| class="wikitable"

!Header 1 !Header 2 !Header 3
 * row 1 cell 1
 * row 1 cell 2
 * row 1 cell 3
 * row 2 cell 1
 * row 2 cell 2
 * row 2 cell 3
 * }
 * into
 * {| class="wikitable"
 * into
 * {| class="wikitable"

!Header 1 !Header 2 !Header 3
 * row 1 cell 1
 * row 2 cell 1
 * row 1 cell 2
 * row 2 cell 2
 * row 1 cell 3
 * row 2 cell 3
 * }
 * while not losing any references. Appreciate your help.--89.206.112.13 (talk) 08:08, 8 April 2020 (UTC)


 * I am not seeing anything in Mediawiki. Maybe others know of some tools within the Mediawiki world.
 * It can be done with freeware LibreOffice Calc. A free spreadsheet program. See:
 * https://www.google.com/search?q=libreoffice+calc++turning+columns+into+rows+or+vice+versa
 * --Timeshifter (talk) 17:16, 11 April 2020 (UTC)


 * Thaught as much. Unfortunately, I'm unable to export Wiki references into LibreOffice Calc. Thank you anyway.--89.206.112.11 (talk) 09:29, 15 April 2020 (UTC)


 * @89.206.112.11 Apologies if this is stale, I know IPs frequently change (and can't be pinged anyway) but just in case you drop back by; with jQuery transposition is fairly straightforward using table.Transpose.js see this for more details.  &#119980; &#120084;  23:48, 28 June 2020 (UTC)

captions should be included in default table
It the captions section it says "Wikipedia Manual of Style considers them a high priority for accessibility reasons" but when an editor uses the button on source editor to insert a table, there is no caption by default, and it's not even one of the checkbox options, they need to know to type in a "|+" line manually. Can the caption line be added to this, and checked by default or non-optional, please. Irtapil (talk) 13:06, 9 June 2020 (UTC)
 * I'm fairly certain that this should be moved to Village pump for wider discussion. Pinging for input however (picking on you because I noticed you're active on phabricator), in case something similar is already tracked and/or has been previously discussed and rejected.  &#119980;  &#120084;  23:48, 28 June 2020 (UTC)

Banding.
Dear Editors. Could you possibly help with how to set the banding for tables: i.e. should every 2nd line be red? (If I set the color line by line, I have to rewrite the rows one by one when expanding the table, so that there are no red rows next to each other, for example. There is such a function in Excel, I would like something like this: ) 12akd (talk) 05:52, 10 June 2020 (UTC)


 * allows for row highlighting. When a cursor hovers over the table, that row over which the cursor is on will be highlighted. This makes it easier to follow the data and info across a row, especially in wider tables.


 * See the section in Help:Table with mw-datatable in the section title. See an example here:
 * List of countries by incarceration rate. --Timeshifter (talk) 11:08, 10 June 2020 (UTC)

Thank you very much for your help! I wish you more good work! 12akd (talk) 12:38, 10 June 2020 (UTC)
 * There is an old discussion at MediaWiki talk:Common.css/Archive 15 but no action was taken to add the feature. PrimeHunter (talk) 16:31, 10 June 2020 (UTC)
 * It was added but quickly reverted in 2015 with discussion at MediaWiki talk:Common.css/Archive 16. PrimeHunter (talk) 16:40, 10 June 2020 (UTC)

It is only good for fairly short tables, but take a look at the Alternating rows table section template. &mdash; GhostInTheMachine talk to me 17:45, 10 June 2020 (UTC)

, I apologize for the late reply, but I haven’t looked at this page lately. I can’t fully follow the complicated discussions on the links above - but I think the last solution “Alternating rows table section” will be appropriate. In fact, banding is a widespread practice outside of Wikipedia that makes it easier to distinguish individual lines. I would use it in this table (so that you don't always have to color the rows one by one): https://hu.wikipedia.org/wiki/Magyar_lexikonok_list%C3%A1ja 12akd (talk) 04:05, 25 June 2020 (UTC)
 * Always say if a post is about another wiki. If hu:MediaWiki:Common.css adds


 * then you can color alternating rows with . It would be a sitewide feature with a fixed color. Similar code [//en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&curid=2213345&diff=671146047&oldid=670889659] was rejected here. The suggested color   was similar to the default background color in the wikitable class so it wouldn't have worked for them. PrimeHunter (talk) 07:55, 25 June 2020 (UTC)

Thanks for the feedback. Yes, it should be something (at least 1 variety) that 2 similar colors alternate. (Maybe they'll do it one day.) 12akd (talk) 08:02, 25 June 2020 (UTC)
 * The Alternating rows table section template has been updated and now has no row limit. &mdash; GhostInTheMachine talk to me 14:23, 5 July 2020 (UTC)

Multiple Column Table
I have been working on converting bare lists of aircraft on aircraft manufacturer articles to formatted tables. (e.g. before and after) This generally improves the article, but unfortunately the one problem I have been running into is that the table ends up creating a bunch of empty white space on the right side of the article on non-mobile versions. Is there a way to wrap the table into two or more columns so that there is not a waste of space? Essentially, I am thinking of some version of the div col template for tables that doesn't break the formatting. Ideally, it could stretch the title/caption across all the columns, but repeat the headers. For what it's worth, my problem is much the same as the one mentioned in the section above. –Noha307 (talk) 22:40, 25 March 2020 (UTC)
 * I'm pretty sure that a snaking table of the kind you imagine is not possible. The kind of table you show in your example is IMO perfectly acceptable (althought I don't see the need to reduce the font size or to bolden the names). -- Michael Bednarek (talk) 07:14, 26 March 2020 (UTC)
 * I was able to get this to work using a little bit of javascript. I'm also fairly certain there's a clever way to do this using only css, but I don't have the time to puzzle through this right now. You can see what I came up with here . I've also included the code below.

var someDiv = document.getElementById("cont"); var someTable = document.getElementById("tbl");

var addedTable = document.createElement("table"); someDiv.appendChild(addedTable);

addedTable.setAttribute("id", "addedTable"); addedTable.innerHTML = someTable.innerHTML;

var rows = someTable.getElementsByTagName("tr"); var rowsCopy = addedTable.getElementsByTagName("tr");

for(var i=1;i<rows.length;i++) //needs to be 1 instead of 0 to account for headers {   if(i>(rows.length/2)) {       rows[i].style.display = "none"; }else {       rowsCopy[i].style.display = "none"; } }


 * I'm not familiar with the procedure for requesting page specific JS, it may be best to consult a recently active sysop or inquire at the help desk on that matter. Other then that I'm going to try to drop back by at least once before the 3rd so if you have further questions I can probably get back to you by then.  &#119980;  &#120084;  23:48, 28 June 2020 (UTC)
 * I'm pretty sure that users cannot insert JavaScript into any Wikipedia pages. -- Michael Bednarek (talk) 01:28, 29 June 2020 (UTC)
 * There is no feature to add JavaScript to a single page. JavaScript for all pages can be added to MediaWiki:Common.js by interface administrators. It could test the page name and behave differently but I don't see support for that except for Main Page. Defining a general feature which could be invoked by code on a page is more realistic. PrimeHunter (talk) 08:59, 29 June 2020 (UTC)


 * Users can add JavaScript (and CSS) to their own account to change the display of all articles for just themselves but not directly into individual articles - that would be a dangerous security issue. The original bare list had a Div col template which added CSS to adjust the number of columns depending on the available space. Switching to a table makes sense as you are adding extra information, but the only way to re-flow like the original list would be to cut the table into several small tables and use the same Div col template to shuffle them around. All technically possible, but adds a crazy overhead and loses the ability to sort the full list. In short: You are stuck with a tall thin table. &mdash; GhostInTheMachine talk to me 09:28, 29 June 2020 (UTC)


 * Thanks for the responses; it's a little odd that sysops can modify JavaScript for all pages but not an individual page although I can't say I'm surprised either. Thus it appears there are two potential ways forward.One is to get this done using css only since page specific css doesn't seem to be an issue (thinking of Template:COVID-19 pandemic data/styles.css mentioned in another section but I'm not familiar with the procedure for gaining the necessary approvals). If I'm feeling ambitious and have some extra free time I might take a crack at it, but I'm sure there's some css gurus hanging around that could get it done in a hurry.The other option is to request modification of the sitewide js and css pages to enable this as an option; the effect could then be targeted at just certain new classes (or class combinations) created for this purpose. This would have the advantage of enabling this option for any table, as any user could just add the appropriate class(es). The disadvantage is that it would require a lengthy discussion on those talk pages, and there would be a valid objection on the grounds that it's undesirable to make changes to sitewide js that would only be applied to a handful of pages.  &#119980; &#120084;  18:16, 7 July 2020 (UTC)

List of top international men's football goal scorers by country
Hi all,

I recently edited this table to include rowspans but I must have broken something in the code as it no longer sorts. I've tried what I thought of as obvious fixes but nothing so far has worked.

I also edited List of top international men's football goal scorers by country and that doesn't have the same problem otherwise I'd just chalk it up to a rowspan error. Does anyone know (a) what I've done wrong and (b) how to fix it!?

Many thanks

Felixsv7 (talk) 15:22, 21 July 2020 (UTC)
 * It was a rowspan error. At least in Firefox, the error was easy to spot since part of the bottom edge of the table was missing. -- John of Reading (talk) 15:49, 21 July 2020 (UTC)


 * You hero. Thank you very much Felixsv7 (talk) 16:10, 21 July 2020 (UTC)

Centering of collapsible tables
With the centering style suggested in this article it seems to center the beginning of the text, instead of the middle, for collapsed tables of the wikitable mw-collapsible class. https://en.wikipedia.org/wiki/Hormone_replacement_therapy displays this issue quite well. What would be the appropriator styling for such collapsible tables? 8ya (talk) 05:15, 24 July 2020 (UTC)
 * , try removing this from the template:  - Then see how it transcludes.
 * Template:Risk of venous thromboembolism with hormone therapy and birth control pills (QResearch/CPRD)
 * In my preview it gets rid of the centering of the table. It is generally a bad idea to center tables. The wider the screen, the more of a problem it is. People scroll downwards a lot easier than horizontally. I am talking about the natural scanning of the eyes down a page. This is interrupted by tables farther to the right. --Timeshifter (talk) 18:10, 24 July 2020 (UTC)
 * , thanks for the reply. I wouldn't mind getting rid of the centering for them, but just in case it's ever needed somewhere else, how would one go about centering them properly?
 * 8ya (talk) 23:49, 24 July 2020 (UTC)
 * See: Help:Table
 * I am not sure if the centering will work after transclusion. You will have to test that. Here is more info via a Google search:
 * https://www.google.com/search?q=css+for+table+centering
 * --Timeshifter (talk) 20:19, 25 July 2020 (UTC)

Scope
The scope attributes for header cells are not optional on Wikipedia. By explicitly marking a cell as a header with a scope of either row or column, it helps ensure that as many screen readers as possible will correctly identify the header cell. There is a good example at H63: Using the scope attribute to associate header cells and data cells in data tables] which shows how the technique helps particularly in cases where the natural row header is not in the first column.

When the guidance in MOS:DTT was written, there were significant variations in how screen readers handled table headers and a useful survey can be read here: Although today the latest models of screen reader have much improved functionality and are generally more consistent among themselves, using scope is still a sensible markup because the cost of screen readers like JAWS means that many users still have older versions. We still have consistent advice across the web to use scope for the benefit of screen readers: The advice here is obliged to accurately reflect the guidance in MoS, not present an idiosyncratic alternate view. --RexxS (talk) 15:44, 13 August 2020 (UTC)
 * Screen reader support for HTML tables
 * Web Accessibility Tutorials - Guidance on how to create websites that meet WCAG - Tables Concepts
 * Accessible Tables (University of Washington)
 * Mozilla's Handling common accessibility problems and the example source code
 * Accessibility Handbook (O’Reilly)

Web Content Accessibility Guidelines and scope
Web Content Accessibility Guidelines. An editor, User:RexxS keeps deleting info from Web Content Accessibility Guidelines concerning scope. And also info from an admin who uses a screen reader. See diffs: and '

Here is the version of the article with that info.

RexxS links to Manual of Style/Accessibility/Data tables tutorial which is neither a guideline, nor a policy, according to the banner at the top.

Here is the section that RexxS keeps deleting:

RexxS wrote the remaining part of that scope section. --Timeshifter (talk) 16:15, 13 August 2020 (UTC)
 * See above. --RexxS (talk) 21:56, 13 August 2020 (UTC)


 * (who uses a screen reader) said today (at Wikipedia talk:Manual of Style/Accessibility/Data tables tutorial) ‎that he did not see a problem with the simple tables without scope tags or row headers in the latest table comparisons I created. In comparison to the same tables with scope tags and row headers. See:
 * User:Timeshifter/Sandbox112.
 * User:Timeshifter/Sandbox113.
 * RexxS. People are going to continue to ignore your pleas for scope tags and row headers until you show them the complex tables that actually need them. I am trying to figure out which complex tables need those scope tags and row headers.
 * You can leave dire admonitions in Help:Table that editors must use scope tags and row headers. Volunteer editors will continue to ignore it because they don't see the need, and because of the time involved.
 * Also, on a related topic there are thousands of tables on Wikipedia that need data cell text aligned to the right, and 1st column text aligned to the left. Editors are not going to do a lot of work to add scope=row to each cell in a header column just to be able to use class=plainrowheaders on simple tables. For those tables without scope tags there needs to be another way. Such as  and   - (when a rank column is the first column).
 * See discussions about the new table classes:
 * MediaWiki talk:Common.css
 * Village pump (technical)
 * RexxS. You shouldn't be trying to block these new classes in a futile effort to get volunteer editors to go back and add scope tags and rowheaders to tens of thousands of tables. In order to be able to use class=plainrowheaders.
 * Also, screen readers are a lot better than before according to the Wikipedia article on them. There are free and open source screen readers listed there too. One of them, NVDA, became the most popular screenreader in use throughout the world according to its Wikipedia article.
 * Concerning User:Timeshifter/Sandbox103 Graham87 wrote: "FWIW all those tables read identically to me on the latest version of JAWS and a fairly recent version of NVDA."
 * I want to emphasize that I am not against the use of scope tags and rowheaders. I only want to emphasize their use where they are needed most. If others want to also add them to every simple table on Wikipedia that is up to them. --Timeshifter (talk) 11:28, 14 August 2020 (UTC)
 * Yes, NVDA is fairly competitive now with its commercial cousin, JAWS, and people who can't afford JAWS can/will switch to NVDA. But there are reasons why screen reader users might want to use an earlier version of NVDA, such as a recent update that broke all add-ons, and not for the first time either ... to be fair the more frequently used add-ons get updated fairly quickly. I don't use NVDA because I'm extremely comfortable with my highly customised settings in JAWS and don't feel any need to switch ... that's an extremely weird position to take in certain parts of the blind community. Anyway, there are also mobile screen readers ... I know very little about those. I'd rather too many scope tags be used than too few ... and that the Manual of Style contain broadly applicable instructions rather than complex ones which are hard to follow ... Graham 87  12:29, 14 August 2020 (UTC)
 * Are you suffering from WP:IDIDNTHEARTHAT?
 * The point has never been whether some wiki-tables will be read accurately by a screen reader whether or not they are properly marked up with headers and scopes.
 * The point is that all wiki-tables will be read accurately by a screen reader when they are properly marked up with headers and scopes.
 * We therefore give the most straightforward advice: to mark up all tables with headers and scopes.
 * Nobody is going to ignore the MOS when it's pointed out to them, except you. Please review WP:DE and start to address the actual issues.
 * If you're having problems adding scope to row headers, learn how to use find and replace with regular expressions, or ask somebody to do the job for you.
 * You've been told that your new class won't be added to common.css because (1) it's not needed; and (2) you've not supplied an actual case where it would be useful.
 * How many times do you need to hear the same facts before you start to understand? The guidance in the MoS has community consensus and you haven't supplied any good reasons to change it just to fit in with your crusade to add unneeded classes to common.css. If you want me to show you how to use WP:TemplateStyles, just ask and I'll be glad to help you. --RexxS (talk) 15:53, 14 August 2020 (UTC)
 * You seem to be outnumbered in the discussions about the new class proposal. And you seem determined to hijack those threads in your crusade to have scope tags added to all tables. I am not stopping you from adding scope tags to all tables. Knock yourself out.
 * Rexxs. You wrote: "Nobody is going to ignore the MOS when it's pointed out to them, except you." It's been ignored now even though info on scope tags has been in Help:Table for a long time. I only added the WCAG info on May 5, 2020. I don't remember editing scope info before that. Here is the version before I consolidated the scope info to one section, and added the WCAG info.
 * Feel free to put back only your MOS info in Help:Table, with even bolder admonitions and dire warnings. Don't add the info from WCAG that I found that directly contradicts what you say. See how far it gets you. Most tables will remain without scope tags, because you haven't convinced volunteer editors, nor WCAG, of the need to do so. Adding scope tags is extra work. There are many table features that are recommended that table editors should do. And they don't get done. I have been editing Help:Table and Help:Sorting for a long time. I have reason to believe what I am saying. --Timeshifter (talk) 16:25, 14 August 2020 (UTC)
 * Your new class doesn't belong in Common.css and the sooner you realise that, the sooner you'll be able to move on and accept the advice you've been given. If you think that an editor has ignored the MoS after it's been pointed out to them, let's see the diff, otherwise you're just trolling.
 * Even though Help:Table isn't linked from any WP:PAG page, it still needs to accurately reflect the policies and guidelines that it offers advice on. I'm afraid that your present advice is simply terrible, as it risks confusion by adding a layer of complexity onto guidance that needs to be as simple as possible. If you think you can genuinely improve the advice in the page, please do so. I've just updated the sections on Using the toolbar and Basic table markup summary as captions are required for all data tables.
 * Nothing that the WCAG recommends directly contradicts the advice in the MoS. H.63 actually gives just one example on that page and it uses scope. Is that a simple table or not? If not, why does WCAG call it "A simple schedule"?
 * If you have headers/scopes where you don't need them, the tables are read properly by all screen readers. If you don't have headers/scopes where you do need them, the tables are not read properly by all screen readers. What's easier: mark up all tables in the same way? or ask editors to work out which tables can manage without scopes/headers?
 * You write "Adding scope tags is extra work". Yes it is. Adding captions is extra work. Marking up lists as lists is extra work. Observing MOS:LISTGAP is extra work (at least for you). Improving accessibility is extra work, and if you're unwilling to do that extra work, you need to keep away from accessibility issues. Fortunately, most editors are willing to do a little extra work if it means we ensure accessibility gains across the encyclopedia. --RexxS (talk) 21:35, 14 August 2020 (UTC)

Syntax used in the /* Nested tables */ paragraph
Is there any reason while the example use the | syntax is used on the page instead of the simple |. Surely Readability is the more important consideration on a Help page.--ClemRutter (talk) 13:07, 13 October 2020 (UTC)


 * yes there is a reason. Put simply '|' would not work in that example because the pipe needs to be escaped when used as part of a template argument or in table cell contents, so all nested tables must follow this format. Hope this answers your question.  &#119980; &#120084;  16:28, 25 October 2020 (UTC)
 * Yes I accept that is the reason, and suggest that a note is added below the example. The question is readability, the example above this one, and more importantly the example below uses straight pipe. So why is it necessary for this one to adopt the more robust method. Is it by design or by laziness. --ClemRutter (talk) 09:02, 26 October 2020 (UTC)
 * By design. Part of the issue was that I was a bit imprecise above, so if a table is nested directly within a template the pipes do need to be escaped but there are some tricks we can use to get around this for example by linking or transcluding within a single parmeter, or in the case of a table within a table just placing the nested table on a new line.To further elucidate, the key idea is that a user should be able to copy/paste the example wikitext directly to a sandbox and see the expected result; for the other examples you cite it is not neccessary to escape the pipe for this to happen, however for the original example you cited it is, and that's pretty much all there is to it.As for adding an explanatory note, I have no objection so long as it's not overly long.  &#119980; &#120084;  22:03, 28 October 2020 (UTC)P.S. be bold