Jump to content

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

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RexxS (talk | contribs) at 14:47, 10 September 2010 (New section: Unbulleted lists). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Unbulleted lists

At the risk of increasing the number of templates in an article, there is a space-saving template called {{Unbulleted list}} which might be useful when tables become wide. It produces the correct semantic markup for a list, which is exactly what is needed when a data cell contains a lower hierarchy of data (in this case a list). Here's an example:

List of albums
Title Album details Peak chart positions Sales Certifications
US AUS AUT FIN NLD NZ NOR SWE SWI UK
Bleach 89 34 26 24 30 33 1.7 million (US) Platinum (US)
Nevermind
  • Released: September 24, 1991
  • Label: DGC (DGC #24425)
  • Format: CD, CS, LP
1 2 2 1 5 2 2 1 2 7 10 million(US)
26 million (worldwide)
Diamond (US)
2× Platinum (UK)

would become:

List of albums
Title Album details Peak chart positions Sales Certifications
US AUS AUT FIN NLD NZ NOR SWE SWI UK
Bleach
89 34 26 24 30 33 1.7 million (US) Platinum (US)
Nevermind
  • Released: September 24, 1991
  • Label: DGC (DGC #24425)
  • Format: CD, CS, LP
1 2 2 1 5 2 2 1 2 7
  • 10 million (US)
  • 26 million (worldwide)
  • Diamond (US)
  • 2× Platinum (UK)

This also removes some of the the superfluous column widths (if you must have them, use ems because you don't know the metrics of the client's browser font) as well as the deprecated <br /> tags that are being used to visually mimic a list. Also, style="text-align:center" is much better than setting a td to the deprecated align=center. As usual, this isn't compulsory, but it is much better practice. The extra whitespace indenting in the unbulleted lists is only there to help make the structure clearer. I don't expect every editor to cope with this sort of markup, but there's no reason why experienced editors can't improve this as they clean-up tables. --RexxS (talk) 14:47, 10 September 2010 (UTC)[reply]