Wikipedia:Manual of Style/Accessibility/Data tables tutorial: Difference between revisions

Content deleted Content added
Caption: still have to say whose appearances this is; +links
Caption: update "The Equalizer" episode links (in preparation for pointing to new Season Articles)
 
(2 intermediate revisions by one other user not shown)
Line 101:
All data tables need a table ''caption'' that succinctly describes what the table is about.<ref name="H39" group="WCAG" /> It plays the role of a table heading, and is recommended as a best practice.<ref name="WebAccessibility 415">{{cite web |title=Ensure table captions are provided explicitly |at="Best Practices" section |author=<!--Staff writer(s); no by-line.--> |work=Accessibility Management Platform (AMP) |year=2015 |publisher=SSB BART Group |___location=San Francisco, California |url= https://www.webaccessibility.com/best_practices.php?best_practice_id=415 |accessdate=13 July 2015}} GSA Schedule 70. Cites multiple standards besides WCAG, including: JIS X 8341-3: 2004 - Technical Standards Subpart 5; KWCAG; 47 CFR 14. Advanced Communication Services, §14.21 Performance Objectives; HHS HTML 508 Checklist; and US Telecommunications Act Accessibility Guidelines 1193.41&ndash;43.</ref> You would usually need some kind of heading or description introducing a new table anyway, and this is what the caption feature exists for. Table captions are made with <code>|+</code>.<ref group="note" name="cap and sum">Table captions can also be made with {{tag|caption|content={{var|Caption here}}}}, and summaries with {{tag|table|o|params=summary="{{var|Summary text here.}}"}}, but wiki syntax should be preferred in articles.</ref> A caption can be styled with CSS, and may include wikilinks, reference citations, etc. It may be explicitly put to the left like other Wikipedia headings with <code>style="text-align: left;"</code> (a good idea especially on wide tables). Captions are not used for layout tables (these are deprecated on Wikipedia as well as more broadly, but some editors temporarily resort to them until later editors wikicode whatever it was they were trying to achieve.)
 
A temporary case for not using the <code>|+</code> caption is in certain situations when using a [[Help:Table/Advanced#Collapsible tables|collapsible table]]. {{As of|2010|09}}, the {{nowrap|"[hide]" / "[show]"}} collapse control has to be inside a table header (until the collapsibility script is improved), and it must be large enough to contain it. If the table has no header, or only a very small header, a common solution has been to put the caption text in a table header to which the collapse controller may attach.{{clarify|date=July 2015|reason=Has this problem been resolved yet? It's been almost 5 years.}}
 
Example of a proper caption from [[Special:PermanentLink/1272858269#Television|Tobin Bell#Credits]]:
Line 115:
| 1987–1988
! scope="row" | ''{{sortname|The|Equalizer|The Equalizer (1985 TV series)}}''
| {{hlist|Cronin/Weber<!--Actual Screen Cred from "Mission: McCall", Weberverbatim (One is an Alias)-->, Deputy Secretary<!--Day of the Covenant-->}}
| {{ubl|Episodes: "[[List of The Equalizer (1985 TV series) episodesseason 3#ep50|Mission: McCall: Part 1]]", "[[List of The Equalizer (1985 TV series) episodesseason 3#ep51|Mission: McCall: Part 2]]", "[[List of The Equalizer (1985 TV series) episodesseason 4#ep71|Day of the Covenant]]"}}
|-
| 1989