Jump to content

Wikipedia talk:Manual of Style/Accessibility/Data tables tutorial

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconAccessibility
WikiProject iconThis page is within the scope of WikiProject Accessibility, a group of editors promoting better access for disabled or otherwise disadvantaged users. For more information, such as what you can do to help, see the main project page.

Row with blank data

[edit]

I created a table, which has became the subject of an edit war between admins and an anon editor. The table is as below (prior to the edit war):

List of special service brigades
Formation name Date formed Wartime date ceased to exist Location(s) served Notable campaign(s) Notes Source(s)
1st Special Service Brigade November 1943 N/A Italy, UK, France, Belgium, Netherlands, Germany Allied invasion of Sicily, Normandy, Allied advance from Paris to the Rhine, Western Allied invasion of Germany Redesignated as 1 Commando Brigade, on 6 December 1944. Source info here

The following is the edit that is made, which has been reverted.

List of special service brigades
Formation name Date formed Wartime date ceased to exist Location(s) served Notable campaign(s) Notes Source(s)
1st Special Service Brigade November 1943 Italy, UK, France, Belgium, Netherlands, Germany Allied invasion of Sicily, Normandy, Allied advance from Paris to the Rhine, Western Allied invasion of Germany Redesignated as 1 Commando Brigade, on 6 December 1944. Source info here


Does the template {{N/A}} conform to the MOS for a table such as this? Should it be used or not?EnigmaMcmxc (talk) 11:55, 8 July 2022 (UTC)[reply]

@EnigmaMcmxc: I couldn't find any recommended styles for empty cells. Maybe someone else might find something? I found a similar unanswered question here: Wikipedia talk:Manual of Style/Tables#Empty cells. If the intention is to indicate that the data wasn't overlooked as a blank cell might suggest, then using either one seems sufficient to me. Template:N/a, which displays an em dash, is used on approximately 47,000 pages, so in a way you could say it is an acceptable option. I don't know the number of "N/A" uses, but N/A indicates that it is a "common abbreviation in tables". Using one over the other seems more like a preference since to me they both indicate the same thing. Regardless of which one is used, it should match the same usage in other tables found on the same page and follow consensus.
Just to see what other manuals of style suggest, I searched and found the Chicago Manual of Style suggested using an em dash, ellipsis, n/a, or n.d. with some rules around the latter two abbreviations (see [1]). Note, the Chicago MoS doesn't dictate Wikipedia's MoS.
Section 3.65: Empty cells. If a column head does not apply to one of the entries in the stub, the cell should either be left blank or, better, filled in by an em dash or three unspaced ellipsis dots. If a distinction is needed between "not applicable" and "no data available," a blank cell may be used for the former and an em dash or ellipsis dots for "no data" ... If this distinction is not clear from the text, a note may be added to the table. (Alternatively, the abbreviations n/a and n.d. may be used, with definitions given in a note.) A zero means literally that the quantity in a cell is zero.... Jroberson108 (talk) 13:46, 8 July 2022 (UTC)[reply]
As an added note, the "N/a" template uses the "data-sort-value" attribute, so sorting it versus the "N/A" text may order them differently unless the same attribute is used on the text version. Jroberson108 (talk) 14:14, 8 July 2022 (UTC)[reply]
Thank you for the in-depth response on this. I played around with the table, although it is very limited, and both seem to sort in the same manner. I guess with the widespread use of the template and outside style manuals saying that is more preferable, I think I can end the edit war with using that template.EnigmaMcmxc (talk) 17:25, 9 July 2022 (UTC)[reply]

MOS:COLHEAD potential workaround?

[edit]

Can MOS:COLHEAD violation in this case be worked around by adding "id=colX is empty. In row13 you can found...." or a hidden comment with a similar message to indicate to screen readers that more content can be found in the next row instead of rearranging the rows? Qwerty284651 (talk) 23:55, 2 June 2024 (UTC)[reply]

That whole table is messed up so trying to workaround one bad part of it, won't really "fix" it. Look at the "Career statistics" section, 5 of the 9 rows have cell content unrelated to the column headers. Separate the tables, make better column headers, remove bad usage of bold. Not everything needs to be in one giant table. Gonnym (talk) 06:30, 3 June 2024 (UTC)[reply]
@Gonnym, I proposed an improved version (pinging those involved in creating the new design @Fyunck(click) and Unnamelessness:) which passes MOS:COLHEAD in my project's community, but people are used to one design, prevalent in 100s of tennis BLPs. The new look meets accessibility criteria WCAG for screen reader users but offsets the sighted who are used to the old design...a balancing act.
Maybe remove the rows and replace them with {{notes}} or {{efn}}? Qwerty284651 (talk) 16:42, 3 June 2024 (UTC)[reply]
Yeah, not surprised. There are some places I'll never touch just because I don't want to deal with that type of editors. Gonnym (talk) 16:48, 3 June 2024 (UTC)[reply]
@Gonnym, I get you. I am going to make a push in favor of the visually impaired. Hopefully, it sticks. The minority needs to be tended to as well not just the ones blessed with the gift to see. Qwerty284651 (talk) 16:54, 3 June 2024 (UTC)[reply]
That is something I originally proposed, but you know, some kinds of compromise have to take as this is Wikipedia. :) Unnamelessness (talk) 06:08, 4 June 2024 (UTC)[reply]
I know. It is the bitter sweet truth. You can't please everybody. Qwerty284651 (talk) 10:21, 4 June 2024 (UTC)[reply]

Cells on multiple rows

[edit]

Hi, are the cells spanned on multiple rows accessible? E.g., DC Extended Universe#Films: the correct way is to split the "Zack Snyder" cell into two cells with the same date or are they just fine as they are? Redjedi23 (talk) 14:43, 21 June 2024 (UTC)[reply]

I state that because if I try to read the Batman v Superman row, the Apple VoiceOver skips the director's name Redjedi23 (talk) 15:41, 21 June 2024 (UTC)[reply]
They're fine as they are. VoiceOver isn't that good with this kind of thing. Graham87 (talk) 15:51, 21 June 2024 (UTC)[reply]
@Graham87 I get the same result with NVDA Redjedi23 (talk) 16:01, 21 June 2024 (UTC)[reply]
@Redjedi23: Same, but also those sorts of tables aren't meant to be read linearly ... they're supposed to be read with table navigation commands (control+alt+arrows in NVDA's case), which works as expected. Graham87 (talk) 17:39, 21 June 2024 (UTC)[reply]
But in this way the header column loses its meaning, right? Redjedi23 (talk) 18:01, 21 June 2024 (UTC)[reply]
Not really. Screen reader users will just get used to having a blank cell (with information hopefully about the row spans) and things will be fine. Graham87 (talk) 18:16, 21 June 2024 (UTC)[reply]

Colgroups and rowgroups

[edit]

In Wikipedia:Manual of Style/Accessibility/Data tables tutorial#Complex tables it says "To clearly define relationships and avoid accessibility issues, use ! scope="colgroup" colspan="2" | when a column header spans two columns and ! scope="rowgroup" rowspan="2" | when a row header spans two rows..." Can a combination of those be used when a column spans multiple rows scope="rowgroup" colspan="2" and when a row spans multiple columns scope="colgroup" rowspan="2" in complex tables? Qwerty284651 (talk) 12:00, 13 August 2024 (UTC)[reply]