Difference between revisions of "UniWiki:Manual of Style/Tables"

From EVE University Wiki
Jump to: navigation, search
(Created page with "{{hatnote|This page discusses when and how tables should be used on Wikipedia. For specific considerations of table style and accessibility, see [[Wikipedia:Manual of Style/Ac...")
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{hatnote|This page discusses when and how tables should be used on Wikipedia. For specific considerations of table style and accessibility, see [[Wikipedia:Manual of Style/Accessibility/Data tables tutorial]]. For technical guidance on how to create and edit tables, see [[Help:Table]].}}
+
{{UMoS guideline}}
{{style-guideline|MOS:TABLES|MOS:TABLE}}
+
{{hatnote|This page discusses when and how tables should be used on the UniWiki. For specific considerations of table style and accessibility, see [[Wikipedia:Wikipedia:Manual of Style/Accessibility/Data tables tutorial|Wikipedia's data tables tutorial]]. For technical guidance on how to create and edit tables, see [[Wikipedia:Help:Table]].}}
{{Style}}  
 
  
Tables are a way of presenting information in rows and columns. They can be useful for a variety of content presentations on Wikipedia, but should be used only when appropriate; sometimes the information in a table may be better presented as prose paragraphs or as an [[Wikipedia:Embedded lists|embedded list]].
+
Tables are a way of presenting information in rows and columns. They can be useful for a variety of content presentations on Wikipedia, but should be used only when appropriate; sometimes the information in a table may be better presented as prose paragraphs or as an [[UniWiki:Manual of Style/Embedded lists|embedded list]].
  
Avoid referring to tables as being located on the left or right of a display page. Placement is different for viewers of the mobile versions of Wikipedia, and is meaningless to people having pages read to them by assistive software. Instead, use captions to identify tables.
+
Avoid referring to tables as being located on the left or right of a display page. Placement can be different for mobile viewers, and is meaningless to people having pages read to them by assistive software. Instead, use captions to identify tables.
  
 
== Formatting ==
 
== Formatting ==
{{main|Help:Table}}
+
:''See also: [[Wikipedia:Help:Table]]''
It is recommended that [[Help:Wikitable|wikitables]] be used in place of [[HTML table]]s, as they are easier to customize and maintain. A standard "[[Wikipedia:Wikitable#Style classes|wikitable style]]" is available, by adding <code>class="wikitable"</code> to the top row of the table. The powerful and useful [[Help:Table#Sorting|sorting]] feature can be enabled by adding <code>class="sortable"</code> to the top row. Extreme caution should be applied if rowspan or colspan is used. It is also possible to combine classes, as in <code>class="wikitable sortable"</code>.
+
It is recommended that [[Wikipedia:Help:Wikitable|wikitables]] be used in place of [[Wikipedia:HTML table|HTML tables]], as they are easier to customize and maintain. A standard "[[Wikipedia:Wikipedia:Wikitable#Style classes|wikitable style]]" is available, by adding <code>class="wikitable"</code> to the top row of the table. The powerful and useful [[Wikipedia:Help:Table#Sorting|sorting]] feature can be enabled by adding <code>class="sortable"</code> to the top row. Extreme caution should be applied if rowspan or colspan is used. It is also possible to combine classes, as in <code>class="wikitable sortable"</code>.
  
 
=== Captions and headers ===
 
=== Captions and headers ===
[[Help:Table caption|Table captions]] and column and row headers should be succinct and self explanatory. In most cases, individual words or [[sentence fragment]]s should be used, and thus [[Article (grammar)|article]]s (''a'', ''an'', ''the'') and sentence-ending punctuation are unnecessary. Only the first word in the caption or header should be capitalized (except for [[proper noun]]s), in keeping with Wikipedia's conventions for [[MOS:CAP|capital letters]].  In some rare cases, judicious use of [[soft hyphen]]s may be helpful; see [[MOS:HYPHEN]] for details.
+
[[Wikipedia:Help:Table caption|Table captions]] and column and row headers should be succinct and self explanatory. In most cases, individual words or [[Wikipedia:Sentence fragment|sentence fragments]] should be used, and thus [[Wikipedia:Article (grammar)|articles]] (''a'', ''an'', ''the'') and sentence-ending punctuation are unnecessary. Only the first word in the caption or header should be capitalized (except for [[Wikipedia:Proper noun|proper nouns]]), in keeping with the UniWiki's conventions for [[UniWiki:Manual of Style/Capital letters|capital letters]].  In some rare cases, judicious use of [[Wikipedia:Soft hyphen|soft hyphens]] may be helpful.
  
Much of {{section link|WP:Manual of Style|Article titles, headings, and sections}} also pertains to table headers: Use [[sentence case]]; avoid redundantly including the subject's name in a header; do not put images in the header (including flag icons), unless this is the best way to present tabular information in a particular case; and do not use questions as headers.   Title headers are often suitable places for reference citations (e.g., to source a specific row or column of data). Unlike section headings, they often begin with or consist entirely of numbers (such as model numbers, dates, version numbers, etc.).  Table headers do not automatically generate link anchors the way section headings do; use the {{tlx|Vanchor}} template to turn a header's text (or part of it) into an anchor.
+
Much of {{section link|UniWiki:Manual of Style|Article titles, headings, and sections}} also pertains to table headers: Use [[Wikipedia:Sentence case|sentence case]] when appropriate; avoid redundantly including the subject's name in a header; do not put images in the header (including flag icons), unless this is the best way to present tabular information in a particular case; and do not use questions as headers. Title headers are often suitable places for reference citations (e.g., to source a specific row or column of data). Unlike section headings, they often begin with or consist entirely of numbers (such as model numbers, dates, version numbers, etc.).  Table headers do not automatically generate link anchors the way section headings do.
  
 
===Appearance===
 
===Appearance===
In general, styles for tables and other block-level elements should be set using CSS classes, not with inline style attributes.  This is because the site-wide CSS is more carefully tested to ensure compatibility with a wide range of browsers; it also creates a greater degree of professionalism by ensuring a consistent appearance between articles.  Deviations from standard conventions are acceptable where they create a semantic distinction (for instance, the infoboxes and [[Template:The Simpsons|navigational templates]] relating to ''[[The Simpsons]]'' use a yellow color-scheme instead of the customary mauve, to tie in with the dominant color in the series) but should not be used gratuitously.
+
In general, styles for tables and other block-level elements should be set using CSS classes, not with inline style attributes.  This is because it creates a greater degree of professionalism by ensuring a consistent appearance between articles.  Deviations from standard conventions are acceptable where they create a semantic distinction (for instance, the infoboxes and [[Wikipedia:Template:The Simpsons|navigational templates]] relating to ''[[Wikipedia:The Simpsons|The Simpsons]]'' use a yellow color-scheme instead of the customary mauve, to tie in with the dominant color in the series) but should not be used gratuitously.
  
See [[WP:Deviations]] and [[Wikipedia talk:Consensus/RfC]] for guidance on use of coloring or non-standard formatting, and for when MoS and WikiProjects guidance is at variance.  
+
See {{section link|UniWiki:Manual of Style/Accessibility|Styles and markup options}} for guidance on use of coloring or non-standard formatting.
  
Consideration may be given to [[Help:Collapsing|collapsing]] tables which [[MOS:COLLAPSE|consolidate information covered in the prose]].
+
Consideration may be given to [[Wikipedia:Help:Collapsing|collapsing]] tables which [[UniWiki:Manual of Style#Scrolling lists and collapsible content|consolidate information covered in the prose]].
  
 
===Accessibility===
 
===Accessibility===
{{Main|Wikipedia:Manual of Style/Accessibility#Tables}}
+
{{Main|UniWiki:Manual of Style/Accessibility#Tables}}
 
Screen readers and other web browsing tools make use of specific table tags to help users navigate the data contained within tables. Use the correct wikitable pipe syntax to take advantage of all the features available.  
 
Screen readers and other web browsing tools make use of specific table tags to help users navigate the data contained within tables. Use the correct wikitable pipe syntax to take advantage of all the features available.  
  
See [[MOS:COLOR]] for information about restrained use of color in tables, to avoid creating accessibility problems for visually-impaired as well as normal vision readers.
+
See {{section link|UniWiki:Manual of Style|Color coding}} for information about restrained use of color in tables, to avoid creating accessibility problems for visually-impaired as well as normal vision readers.
  
 
Do not separate items by leaving blank lines between them, even when using unordered or definition lists. The Wikipedia list templates explicitly identify lists for readers, rather than relying on visual formatting to indirectly imply the presence of a list.
 
Do not separate items by leaving blank lines between them, even when using unordered or definition lists. The Wikipedia list templates explicitly identify lists for readers, rather than relying on visual formatting to indirectly imply the presence of a list.
  
 
===Size===
 
===Size===
Splitting lists and tables per [[WP:Summary style|summary style]] is [[Wikipedia:Page_size#Readability_issues|advised against]].  Among other problems, arbitrarily splitting a wikitable effectively disables the powerful and useful sorting feature from working across the entire table.
+
Splitting lists and tables per [[Wikipedia:WP:Summary style|summary style]] is [[Wikipedia:Wikipedia:Page_size#Readability_issues|advised against]].  Among other problems, arbitrarily splitting a wikitable effectively disables the powerful and useful sorting feature from working across the entire table.
  
On the other hand, overloading tables with too much detailed statistical data is [[WP:NOT#STATS|against policy]].  Careful thought should be given to how a reader would use a table, and what level of detail is appropriate.
+
On the other hand, overloading tables with too much detailed statistical data is not always helpful.  Careful thought should be given to how a reader would use a table, and what level of detail is appropriate.
  
 
==Suitability==
 
==Suitability==
{{shortcut|WP:WHENTABLE}}
 
  
=== {{anchor|Appropriate}}Appropriate use ===
 
 
Tables are a way of presenting links, data, or information in rows and columns. They are a complex form of list, formatted into a systematic grid pattern. Tables might be useful for presenting mathematical data such as multiplication tables, comparative figures, or sporting results. They may also be useful for presenting equivalent words in two or more languages; for awards by type and year; complex discographies; etc.  
 
Tables are a way of presenting links, data, or information in rows and columns. They are a complex form of list, formatted into a systematic grid pattern. Tables might be useful for presenting mathematical data such as multiplication tables, comparative figures, or sporting results. They may also be useful for presenting equivalent words in two or more languages; for awards by type and year; complex discographies; etc.  
  
Line 48: Line 45:
 
Tables should not be misused to resolve visual layout problems. If the information you are editing is not tabular in nature, it probably does not belong in a table: Do not misuse tables for putting a caption under a photograph, arranging a group of links, or other strictly visual features. These practices make the article harder for other Wikipedians to edit, and will likely cause problems when viewed on different display sizes and aspect ratios. Also, when compared with tables, wikimarkup is more flexible, easier to use, and less arcane when used correctly for desktop publishing layout, page elements, and page orientation and positioning.
 
Tables should not be misused to resolve visual layout problems. If the information you are editing is not tabular in nature, it probably does not belong in a table: Do not misuse tables for putting a caption under a photograph, arranging a group of links, or other strictly visual features. These practices make the article harder for other Wikipedians to edit, and will likely cause problems when viewed on different display sizes and aspect ratios. Also, when compared with tables, wikimarkup is more flexible, easier to use, and less arcane when used correctly for desktop publishing layout, page elements, and page orientation and positioning.
  
Examples:
+
=== Prose ===
==== Multi-column sortable standard ====
+
Prose is preferred in articles as prose allows the presentation of detail and clarification of context, in a way that a table may not.  Prose flows, like one person speaking to another, and is best suited to articles, because their purpose is to explain.  Tables which are mainly [[UniWiki:Manual of Style/Linking|links]], which are most useful for browsing subject areas, should usually have their own entries: see  [[Wikipedia:Wikipedia:Stand-alone lists|Wikipedia:Stand-alone lists]] for detail. In an article, significant items should normally be mentioned naturally within the text rather than merely tabulated.
{{cot|Sporting results}}
 
  
{| class="sortable wikitable"
+
=== Page layout ===
|-
+
Page layouts (using multiple columns, positioning elements, adding borders, etc.) should be done via [[Wikipedia:Cascading Style Sheets|CSS]], not tables, whenever possible.
!width="80"|Outcome
 
!width="30"|No.
 
!width="50"|Year
 
!width="250"|Championship
 
!width="200"|Opponent in the final
 
!align="center" width="100"|Score
 
!width="30"|Ref
 
|- style="background:#e5d1cb;"
 
| style="background:#98FB98"|Winner
 
|  align=center | 1
 
|  align=center | [[1981 World Snooker Championship|1981]]
 
|  [[World Snooker Championship|World Championship]]
 
|  {{flagicon|WAL}} [[Doug Mountjoy]]
 
|  align="center"|18–12
 
|  align="center"|<ref name="Turner WSC">{{cite web|last=Turner|first=Chris|title=World Professional Championship|url=http://www.cajt.pwp.blueyonder.co.uk/world.html|work=cajt.pwp.blueyonder.co.uk|publisher=Chris Turner's Snooker Archive|accessdate=18 March 2011}}</ref>
 
|- style="background:#e5d1cb;"
 
| style="background:#98FB98"|Winner
 
|  align=center | 2
 
|  align=center | [[1983 World Snooker Championship|1983]]
 
|  [[World Snooker Championship|World Championship]] <small>(2)</small>
 
|  {{flagicon|CAN}} [[Cliff Thorburn]]
 
|  align="center"|18–6
 
|  align="center"|<ref name="Turner WSC"/>
 
|-
 
| style="background:#98FB98"|Winner
 
|  align=center | 3
 
|  align=center | 1983
 
|  [[Players Championship (snooker)|International Open]]
 
|  {{flagicon|CAN}} [[Cliff Thorburn]]
 
|  align="center"|9–3
 
|  align="center"|<ref name="Turner Int' Open">{{cite web|last=Turner|first=Chris|title=International Open Goya, Matchroom Trophy|url=http://www.cajt.pwp.blueyonder.co.uk/int.html|work=cajt.pwp.blueyonder.co.uk|publisher=Chris Turner's Snooker Archive|accessdate=18 March 2011}}</ref>
 
|-
 
| style="background:#98FB98"|Winner
 
|  align=center | 4
 
|  align=center | 1984
 
|  [[Classic (snooker)|Classic]]
 
|  {{flagicon|ENG}} [[Tony Meo]]
 
|  align="center"|9–8
 
|  align="center"|<ref name="Turner Classic">{{cite web|last=Turner|first=Chris|title=Classic|url=http://www.cajt.pwp.blueyonder.co.uk/classic.html|work=cajt.pwp.blueyonder.co.uk|publisher=Chris Turner's Snooker Archive|accessdate=18 March 2011}}</ref>
 
|- style="background:#e5d1cb;"
 
| style="background:#98FB98"|Winner
 
|  align=center | 5
 
|  align=center | [[1984 World Snooker Championship|1984]]
 
|  [[World Snooker Championship|World Championship]] <small>(3)</small>
 
|  {{flagicon|ENG}} [[Jimmy White]]
 
|  align="center"|18–16
 
|  align="center"|<ref name="Turner WSC"/>
 
|-
 
| style="background:#98FB98"|Winner
 
|  align=center | 6
 
|  align=center | 1984
 
|  [[Players Championship (snooker)|International Open]] <small>(2)</small>
 
|  {{flagicon|ENG}} [[Tony Knowles (snooker player)|Tony Knowles]]
 
|  align="center"|9–2
 
|  align="center"|<ref name="Turner Int' Open"/>
 
|-bgcolor="dfe2e9"
 
| style="background:#98FB98"|Winner
 
|  align=center | 7
 
|  align=center | [[1984 UK Championship (snooker)|1984]]
 
|  [[UK Championship (snooker)|UK Championship]]
 
|  {{flagicon|NIR}} [[Alex Higgins]]
 
|  align="center"|16–8
 
|  align="center"|<ref name="Turner UK">{{cite web|last=Turner|first=Chris|title=UK Championship|url=http://www.cajt.pwp.blueyonder.co.uk/uk.html|work=cajt.pwp.blueyonder.co.uk|publisher=Chris Turner's Snooker Archive|accessdate=18 March 2011}}</ref>
 
|- style="background:#e5d1cb;"
 
| style="background:#ffa07a;"|Runner-up
 
|  align=center | 1
 
|  align=center | [[1985 World Snooker Championship|1985]]
 
| [[World Snooker Championship|World Championship]]
 
| {{flagicon|NIR}} [[Dennis Taylor]]
 
| align="center"|[[1985 World Snooker Championship final|17–18]]
 
|  align="center"|<ref name="Turner WSC"/>
 
|-
 
| style="background:#98FB98"|Winner
 
| align=center | 8
 
|  align=center | [[1985 Grand Prix (snooker)|1985]]
 
|  [[World Open (snooker)|Grand Prix]]
 
|  {{flagicon|NIR}} [[Dennis Taylor]]
 
|  align="center"|10–9
 
|  align="center"|<ref name="Turner WSC"/>
 
|-bgcolor="dfe2e9"
 
| style="background:#98FB98"|Winner
 
|  align=center | 9
 
|  align=center | [[1985 UK Championship (snooker)|1985]]
 
|  [[UK Championship (snooker)|UK Championship]] <small>(2)</small>
 
|  {{flagicon|ENG}} [[Willie Thorne]]
 
|  align="center"|16–14
 
|  align="center"|<ref name="Turner UK"/>
 
|-
 
|}
 
  
{{cob}}
+
* Images and other embedded media should be positioned using [[Wikipedia:WP:EIS|standard image syntax]].
 
+
* There are several templates available that will create preformatted multi-column layouts: see [[Wikipedia:Help:Columns]].
==== Multi-column standard with subcolumns ====
+
* Other elements can be positioned or given special formatting through the use of the HTML <code>[[Wikipedia:span and div|&lt;div>]]</code> element and [[Wikipedia:Help:Cascading style sheets#CSS in wikitext|CSS styling]].
{{cot|Discographies}}
 
{|class="wikitable" style="text-align:center;font-size: 9pt"
 
|-
 
!rowspan="2"|Year
 
!width="210" rowspan="2"| Title
 
!colspan="10"|Peak chart positions
 
!colspan="2"| [[Music recording sales certification|Certifications]]
 
|-
 
!width="30"|[[Canada|CAN]]<br>
 
 
 
!width="30"|[[Australia|AUS]]<br>
 
 
 
!width="30"|[[Austria|AUT]]<br>
 
 
 
!width="30"|[[Germany|GER]]<br>
 
 
 
!width="30"|[[Netherlands|NLD]]<br>
 
 
 
!width="30"|[[Norway|NOR]]<br>
 
 
 
!width="30"|[[Sweden|SWE]]<br>
 
 
 
!width="30"|[[Switzerland|SWI]]<br>
 
 
 
!width="30"|[[UK Album Chart|UK]]<br>
 
 
 
!width="30"|[[Billboard 200|US]]<br>
 
 
 
!width="30"| [[North America]]<br>
 
!width="30"| [[Europe]]<br>
 
|-
 
|1993
 
|align=left|'''''[[So Far So Good (Bryan Adams album)|So Far So Good]]'''''
 
*Released: November 2, 1993
 
*Label: A&M
 
|align="center"|2<br><ref name="So far so good">{{cite web|url=http://www.collectionscanada.gc.ca/rpm/028020-119.01-e.php?&file_num=nlc008388.2353&type=1&interval=20&PHPSESSID=1eslr84up6jai4j6cngk0p4cu2|title=Top Albums/CDs – Volume 58, No. 25 | date = January 10, 1994| publisher = ''[[RPM (magazine)|RPM]]'' ([[Library and Archives Canada]]) | accessdate = August 15, 2010}}</ref>
 
|align="center"|1
 
|align="center"|1
 
|align="center"|1
 
|align="center"|1
 
|align="center"|1
 
|align="center"|1
 
|align="center"|1
 
|align="center"|1
 
|align="center"|6
 
|align="left"|CA:&nbsp;6×&nbsp;Platinum<br>US:&nbsp;5×&nbsp;Platinum
 
|align="left"|SW:&nbsp;4×&nbsp;Platinum<br>UK:&nbsp;3×&nbsp;Platinum
 
|-
 
|1999
 
|align=left|'''''[[The Best of Me (Bryan Adams album)|The Best of Me]]'''''
 
*Released: November 15, 1999
 
*Label: A&M
 
|align="center"|14
 
|align="center"|18
 
|align="center"|4
 
|align="center"|7
 
|align="center"|13
 
|align="center"|2
 
|align="center"|20
 
|align="center"|3
 
|align="center"|12
 
|align="center"|—
 
|align="left"|CA:&nbsp;3×&nbsp;Platinum
 
|align="left"|EU:&nbsp;2×&nbsp;Platinum<ref>{{cite web | url=http://www.ifpi.org/content/section_news/plat2002.html | title = IFPI Platinum Europe Awards: 2002 Awards | publisher = [[International Federation of the Phonographic Industry|International Federation of the Phonographic Industry (IFPI) – Europe]] | accessdate=August 15, 2010 }}</ref><br>SW: Platinum<br>UK: Platinum
 
|-
 
|2005
 
|align=left|'''''[[Anthology (Bryan Adams album)|Anthology]]'''''
 
*Released: October 18, 2005
 
*Label: A&M
 
|align="center"|4
 
|align="center"|—
 
|align="center"|28
 
|align="center"|30
 
|align="center"|—
 
|align="center"|—
 
|align="center"|—
 
|align="center"|39
 
|align="center"|29
 
|align="center"|65
 
|align="left"|CA: 2×&nbsp;Platinum
 
|align="left"|UK: Gold
 
|-
 
|2010
 
|align=left|'''''[[Icon (Bryan Adams album)|Icon]]'''''
 
*Released: August 31, 2010
 
*Label: [[Universal Music Group|Universal]]
 
|align="center"|—
 
|align="center"|—
 
|align="center"|—
 
|align="center"|—
 
|align="center"|—
 
|align="center"|—
 
|align="center"|—
 
|align="center"|—
 
|align="center"|—
 
|align="center"|—
 
|align="left"|
 
|align="left"|
 
|-
 
|align="center" colspan="30" style="font-size: 8pt"| "—" denotes releases that did not chart.
 
|}
 
{{cob}}
 
 
 
==== Multi-column mixed sortable unsortable ====
 
{{cot|Filmographies}}
 
{| class="wikitable sortable plainrowheaders"
 
|+ List of acting performances in film and television
 
|-
 
! scope="col" | Year
 
! scope="col" | Title
 
! scope="col" | Role
 
! scope="col" class="unsortable" | Notes
 
|-
 
| align="center"| 1961
 
! scope="row" | ''[[Barabbas (1961 film)|Barabbas]]''
 
| Patrician in Arena
 
| uncredited
 
|-
 
| align="center"| 1962
 
! scope="row" | ''[[Hemingway's Adventures of a Young Man]]''
 
| undetermined role
 
| uncredited
 
|-
 
| align="center"| 1963
 
! scope="row" | ''{{sortname|The|Beverly Hillbillies}}''
 
| Janet Trego
 
| TV series, 15 episodes
 
|-
 
| align="center"| 1963
 
! scope="row" | ''[[Mister Ed]]''
 
| {{plainlist|
 
* Telephone Operator
 
* Sailor's Girl
 
}}
 
| {{plainlist|
 
* TV series, episodes:
 
* "Love Thy New Neighbor"
 
* "Ed Discovers America"
 
}}
 
|-
 
| align="center"| 1964
 
! scope="row" | ''{{sortname|The|Americanization of Emily}}''
 
| Beautiful Girl
 
| uncredited
 
|-
 
| align="center"| 1965
 
! scope="row" | ''{{sortname|The|Man from U.N.C.L.E.}}''
 
| Therapist
 
| TV series, episode: "The Girls of Nazarone Affair"
 
|-
 
| align="center"| 1966
 
! scope="row" | ''[[Eye of the Devil]]''
 
| Odile de Caray
 
|
 
|-
 
| align="center"| 1967
 
! scope="row" | ''{{sortname|The|Fearless Vampire Killers}}''
 
| Sarah Shagal
 
|
 
|-
 
| align="center"| 1967
 
! scope="row" | ''[[Don't Make Waves]]''
 
| Malibu
 
|
 
|-
 
| align="center"| 1967
 
! scope="row" | ''[[Valley of the Dolls (film)|Valley of the Dolls]]''
 
| Jennifer North
 
|
 
|-
 
| align="center"| 1968
 
! scope="row" | ''[[Rosemary's Baby (film)|Rosemary's Baby]]''
 
| Girl at Party
 
| uncredited
 
|-
 
| align="center"| 1968
 
! scope="row" | ''{{sortname|The|Wrecking Crew|The Wrecking Crew (1969 film)}}''
 
| Freya Carlson
 
|
 
|-
 
| align="center"| 1969
 
! scope="row" | ''{{sortname|The|Thirteen Chairs}}''<br />(also known as ''12+1'')
 
| Pat
 
| released posthumously
 
|}
 
{{cob}}
 
 
 
==== Multi-column unsortable ====
 
{{cot|Academy Awards}}
 
{| class="wikitable" border="1"
 
|-
 
! Year
 
! Award
 
! Title
 
! Result
 
|-
 
| [[5th Academy Awards|1932]]
 
| [[Academy Award for Best Picture|Outstanding Production]]
 
| ''[[Arrowsmith (film)|Arrowsmith]]''
 
| {{nom}}
 
|-
 
| [[8th Academy Awards|1935]]
 
|  [[Academy Award for Best Picture|Outstanding Production]]
 
| ''[[The Informer (1935 film)|The Informer]]''
 
| {{nom}}
 
|-
 
| [[8th Academy Awards|1935]]
 
| [[Academy Award for Best Director|Best Director]]
 
| ''[[The Informer (1935 film)|The Informer]]''
 
| {{won}}
 
|-
 
| [[12th Academy Awards|1939]]
 
| [[Academy Award for Best Director|Best Director]]
 
| ''[[Stagecoach (1939 film)|Stagecoach]]''
 
| {{nom}}
 
|-
 
| [[13th Academy Awards|1940]]
 
| [[Academy Award for Best Picture|Outstanding Production]]
 
| ''[[The Long Voyage Home]]''
 
| {{nom}}
 
|-
 
| [[13th Academy Awards|1940]]
 
| [[Academy Award for Best Director|Best Director]]
 
| ''[[The Grapes of Wrath (film)|The Grapes of Wrath]]''
 
| {{won}}
 
|-
 
| [[14th Academy Awards|1941]]
 
| [[Academy Award for Best Picture|Best Motion Picture]]
 
| ''[[How Green Was My Valley (film)|How Green Was My Valley]]''
 
| {{won}}
 
|-
 
| [[14th Academy Awards|1941]]
 
| [[Academy Award for Best Director|Best Director]]
 
| ''[[How Green Was My Valley (film)|How Green Was My Valley]]''
 
| {{won}}
 
|-
 
| [[15th Academy Awards|1942]]
 
| [[Academy Award for Best Documentary Feature|Best Documentary]]
 
| ''[[The Battle of Midway]]''
 
| {{won}}
 
|-
 
| [[16th Academy Awards|1943]]
 
| [[Academy Award for Best Documentary (Short Subject)|Best Documentary, Short Subjects]]
 
| ''[[December 7th (film)|December 7th]]''
 
| {{won}}
 
|-
 
| [[25th Academy Awards|1952]]
 
| [[Academy Award for Best Picture|Best Motion Picture]]
 
| ''[[The Quiet Man]]''
 
| {{nom}}
 
|-
 
| [[25th Academy Awards|1952]]
 
| [[Academy Award for Best Director|Best Director]]
 
| ''[[The Quiet Man]]''
 
| {{won}}
 
|}
 
{{cob}}
 
 
 
==== Multi-column unsortable all numeric right justified====
 
{{cot|Mathematical tables}}
 
{| class="wikitable" style="text-align: right;"
 
|+ Multiplication table
 
! ×
 
! scope="col" | 1  || 2  || 3  || 4  || 5  || 6  || 7  || 8  || 9  || 10 
 
|-
 
! scope="row" | 1
 
| 1  || 2  || 3  || 4 || 5  || 6  || 7  || 8  || 9  || 10 
 
|-
 
! scope="row" | 2
 
| 2  || 4  ||6 || 8  || 10 || 12 || 14 || 16 || 18  || 20 
 
|-
 
! scope="row" | 3
 
| 3  || 6  || 9  || 12 || 15 || 18 || 21 || 24 || 27  || 30 
 
|-
 
! scope="row" | 4
 
| 4  || 8  || 12 || 16 || 20 || 24 || 28 || 32 || 36  || 40 
 
|-
 
! scope="row" | 5
 
| 5  || 10 || 15 || 20 || 25 || 30 || 35 || 40 || 45  || 50 
 
|-
 
! scope="row" | 6
 
| 6  || 12 || 18 || 24 || 30 || 36 || 42 || 48 || 54  || 60
 
|-
 
! scope="row" | 7
 
| 7  || 14 || 21 || 28 || 35 || 42 || 49 || 56 || 63  || 70 
 
|-
 
! scope="row" | 8
 
| 8  || 16 || 24 || 32 || 40 || 48 || 56 || 64 || 72  || 80 
 
|-
 
! scope="row" | 9
 
| 9  || 18 || 27 || 36 || 45 || 54 || 63 || 72 || 81  || 90 
 
|-
 
! scope="row" | 10
 
| 10 || 20 || 30 || 40 || 50 || 60 || 70 || 80 || 90  || 100
 
|}
 
{{cob}}
 
 
 
==== Tree (cladogram) left rooted====
 
{{cot|[[Cladogram]]s}}
 
{{clade| style=font-size:90%;line-height:85%
 
|label1=&nbsp;[[Crocodylinae]]&nbsp;
 
  |1={{clade
 
                        |1=''[["Crocodylus" megarhinus]]''
 
                        |label2=&nbsp;[[Mekosuchinae]]&nbsp;
 
                        |2={{clade
 
                          |1=''[[Kambara]]''
 
                          |2=''[[Australosuchus]]''
 
                          |3=''[[Trilophosuchus]]''}}
 
                        |3={{clade
 
                          |label1=&nbsp;[[Osteolaeminae]]&nbsp;
 
                          |1={{clade
 
                              |1={{clade
 
                                |1=''[[Rimasuchus]]''
 
                                |2={{clade
 
                                    |1=''[["Crocodylus" pigotti]]''
 
                                    |2=''[[Euthecodon]]''}}}}
 
                              |2=''[[Voay]]''
 
                              |3={{clade
 
                                |1=''[[Osteolaemus|Osteolaemus osborni]]''
 
                                |2=''[[Osteolaemus|O. tetraspis]]''}}}}
 
                          |2={{clade
 
                              |1=''[[Mecistops]]''
 
                              |2={{clade
 
                                |1=''[[Crocodylus anthropophagus]]''
 
                                |2=''[[Crocodylus|C. palaeindicus]]''
 
                                |3={{clade
 
                                    |1=''[[Mugger Crocodile|C. palustris]]''
 
                                    |2={{clade
 
                                      |1=''[[Siamese Crocodile|C. siamensis]]''
 
                                      |2={{clade
 
                                          |1=''[[Freshwater Crocodile|C. johnsoni]]''
 
                                          |2=''[[New Guinea Crocodile|C. novaeguineae]]''
 
                                          |3=''[[Philippine Crocodile|C. mindorensis]]''}}}}}}
 
                                |4={{clade
 
                                    |1=''[[Nile Crocodile|C. niloticus]]''
 
                                    |2={{clade
 
                                      |1=''[[American Crocodile|C. acutus]]''
 
                                      |2=''[[Orinoco Crocodile|C. intermedius]]''
 
                                      |3=''[[Cuban Crocodile|C. rhombifer]]''
 
                                      |4=''[[Morelet's Crocodile|C. moreletii]]''
 
 
 
}}}}}}}}}}}}}}
 
{{cob}}
 
 
 
====Gant (bar graph linear horizontal) with color====
 
{{cot|Flow data}}
 
<timeline>
 
ImageSize = width:700 height:270
 
PlotArea = left:100 bottom:60 top:0 right:50
 
Alignbars = justify
 
DateFormat  = mm/dd/yyyy
 
Period = from:01/01/1965 till:12/05/1996
 
TimeAxis = orientation:horizontal format:yyyy
 
 
 
Colors =
 
  id:Drums              value:purple    legend:Drums
 
  id:Guitars            value:green      legend:Guitars
 
  id:Bass                value:gray(0.40) legend:Bass
 
  id:Keyboards          value:orange    legend:Keyboards
 
 
 
 
 
Legend = orientation:horizontal position:bottom
 
 
 
ScaleMajor = increment:2 start:01/01/1965
 
 
 
LineData =
 
 
 
  at:08/04/1967 color:black layer:back
 
  at:06/28/1968 color:black layer:back
 
  at:06/13/1969 color:black layer:back
 
  at:11/07/1969 color:black layer:back
 
  at:10/02/1970 color:black layer:back
 
  at:11/05/1971 color:black layer:back
 
  at:06/02/1972 color:black layer:back
 
  at:03/23/1973 color:black layer:back
 
  at:11/12/1975 color:black layer:back
 
  at:01/21/1977 color:black layer:back
 
  at:11/30/1979 color:black layer:back
 
  at:03/21/1983 color:black layer:back
 
  at:11/07/1987 color:black layer:back
 
  at:03/28/1994 color:black layer:back
 
 
 
BarData =
 
 
 
  bar:Mason text:"Nick Mason"
 
  bar:Barrett text:"Syd Barrett"
 
  bar:Gilmour text:"David Gilmour"
 
  bar:Klose  text:"Bob Klose"
 
  bar:Waters text:"Roger Waters"
 
  bar:Wright text:"Richard Wright"
 
 
 
PlotData=
 
 
 
  width:10 textcolor:black align:left anchor:from shift:(10,-4)
 
  bar:Mason from:01/01/1965 till:end color:Drums
 
  bar:Barrett from:01/01/1965 till:06/04/1968 color:Guitars
 
  bar:Gilmour from:12/01/1967 till:end color:Guitars
 
  bar:Klose from:01/01/1965 till: 12/05/1965 color:Guitars
 
  bar:Waters from:01/01/1965 till:01/20/1985 color:Bass
 
  bar:Wright from:01/01/1965 till:01/01/1980 color:Keyboards
 
  bar:Wright from:01/01/1987 till:end color:Keyboards
 
 
 
</timeline>
 
{{cob}}
 
 
 
=== Inappropriate use ===
 
==== Simple lists ====
 
If a list is simple, it is generally better to use one of the standard [[Wikipedia:Lists|Wikipedia list formats]] instead of a table. Lists are easier to maintain than tables, and are often easier to read.
 
 
 
Here is an example of a simple list using list formatting:
 
 
 
<pre>* 1980: Ultra Wave
 
* 1988: What's Bootsy Doin'?
 
* 1994: Blasters of the Universe
 
* 1994: Fresh Outta 'P' Uni</pre>
 
 
 
Which produces:
 
 
 
* 1980: Ultra Wave
 
* 1988: What's Bootsy Doin'?
 
* 1994: Blasters of the Universe
 
* 1994: Fresh Outta 'P' Uni
 
 
 
versus table formatting:
 
 
 
<pre>{|
 
|1980
 
|Ultra Wave
 
|-
 
|1988
 
|What's Bootsy Doin'?
 
|-
 
|1994
 
|Blasters of the Universe
 
|-
 
|1994
 
|Fresh Outta 'P' Uni
 
|}</pre>
 
 
 
Which produces:
 
 
 
{|
 
|1980
 
|Ultra Wave
 
|-
 
|1988
 
|What's Bootsy Doin'?
 
|-
 
|1994
 
|Blasters of the Universe
 
|-
 
|1994
 
|Fresh Outta 'P' Uni
 
|}
 
 
 
==== Prose ====
 
Prose is preferred in articles as prose allows the presentation of detail and clarification of context, in a way that a table may not.  Prose flows, like one person speaking to another, and is best suited to articles, because their purpose is to explain.  Tables which are mainly [[Wikipedia:Linking|links]], which are most useful for browsing subject areas, should usually have their own entries: see  [[Wikipedia:Stand-alone lists]] for detail. In an article, significant items should normally be mentioned naturally within the text rather than merely tabulated.
 
 
 
==== Page layout ====
 
Page layouts (using multiple columns, positioning elements, adding borders, etc.) should be done via [[Cascading Style Sheets|CSS]], not tables, whenever possible.
 
 
 
* Images and other embedded media should be positioned using [[WP:EIS|standard image syntax]].
 
* There are several templates available that will create preformatted multi-column layouts: see [[Help:Columns]].
 
* Other elements can be positioned or given special formatting through the use of the HTML <code>[[span and div|&lt;div>]]</code> element and [[Help:Cascading style sheets#CSS in wikitext|CSS styling]].
 
  
 
== See also ==
 
== See also ==
* [[Wikipedia:Table dos and don'ts]], a summary of the key points in this guideline
+
* [[Wikipedia:Wikipedia:Table dos and don'ts|Wikipedia:Table dos and don'ts]], a summary of the key points in this guideline
* [[Help:Table]], extensive help
+
* [[Wikipedia:Help:Table]], extensive help
* [[Help:Table/Introduction to tables]], a quick guide to using tables
+
* [[Wikipedia:Help:Table/Introduction to tables]], a quick guide to using tables
* [[Help:Collapsing]] (show/hide button)
+
* [[Wikipedia:Help:Collapsing]] (show/hide button)
* [[Wikipedia:Conditional tables]]
+
* [[Wikipedia:Wikipedia:Conditional tables|Conditional tables]]
* [[Wikipedia:Table namespace]], an inactive proposal
+
* [[Wikipedia:Table (HTML)|Table (HTML)]]
* [[Table (HTML)]]
 
 
 
==References==
 
{{Reflist}}
 
 
 
{{Style wide}}
 
 
 
[[Category:UniWiki Manual of Style]]
 

Latest revision as of 03:05, 17 January 2017

This page is a part of the UniWiki's Manual of Style. It is a general guideline intended to harmonize article style across the UniWiki, though it is best treated with common sense, and exceptions may apply. Any substantive edit to this page should be approved by the Wiki Manager. When in doubt, discuss first on the talk page.
This page discusses when and how tables should be used on the UniWiki. For specific considerations of table style and accessibility, see Wikipedia's data tables tutorial. For technical guidance on how to create and edit tables, see Wikipedia:Help:Table.

Tables are a way of presenting information in rows and columns. They can be useful for a variety of content presentations on Wikipedia, but should be used only when appropriate; sometimes the information in a table may be better presented as prose paragraphs or as an embedded list.

Avoid referring to tables as being located on the left or right of a display page. Placement can be different for mobile viewers, and is meaningless to people having pages read to them by assistive software. Instead, use captions to identify tables.

Formatting

See also: Wikipedia:Help:Table

It is recommended that wikitables be used in place of HTML tables, as they are easier to customize and maintain. A standard "wikitable style" is available, by adding class="wikitable" to the top row of the table. The powerful and useful sorting feature can be enabled by adding class="sortable" to the top row. Extreme caution should be applied if rowspan or colspan is used. It is also possible to combine classes, as in class="wikitable sortable".

Captions and headers

Table captions and column and row headers should be succinct and self explanatory. In most cases, individual words or sentence fragments should be used, and thus articles (a, an, the) and sentence-ending punctuation are unnecessary. Only the first word in the caption or header should be capitalized (except for proper nouns), in keeping with the UniWiki's conventions for capital letters. In some rare cases, judicious use of soft hyphens may be helpful.

Much of UniWiki:Manual of Style § Article titles, headings, and sections also pertains to table headers: Use sentence case when appropriate; avoid redundantly including the subject's name in a header; do not put images in the header (including flag icons), unless this is the best way to present tabular information in a particular case; and do not use questions as headers. Title headers are often suitable places for reference citations (e.g., to source a specific row or column of data). Unlike section headings, they often begin with or consist entirely of numbers (such as model numbers, dates, version numbers, etc.). Table headers do not automatically generate link anchors the way section headings do.

Appearance

In general, styles for tables and other block-level elements should be set using CSS classes, not with inline style attributes. This is because it creates a greater degree of professionalism by ensuring a consistent appearance between articles. Deviations from standard conventions are acceptable where they create a semantic distinction (for instance, the infoboxes and navigational templates relating to The Simpsons use a yellow color-scheme instead of the customary mauve, to tie in with the dominant color in the series) but should not be used gratuitously.

See UniWiki:Manual of Style/Accessibility § Styles and markup options for guidance on use of coloring or non-standard formatting.

Consideration may be given to collapsing tables which consolidate information covered in the prose.

Accessibility

Main article: UniWiki:Manual of Style/Accessibility#Tables

Screen readers and other web browsing tools make use of specific table tags to help users navigate the data contained within tables. Use the correct wikitable pipe syntax to take advantage of all the features available.

See UniWiki:Manual of Style § Color coding for information about restrained use of color in tables, to avoid creating accessibility problems for visually-impaired as well as normal vision readers.

Do not separate items by leaving blank lines between them, even when using unordered or definition lists. The Wikipedia list templates explicitly identify lists for readers, rather than relying on visual formatting to indirectly imply the presence of a list.

Size

Splitting lists and tables per summary style is advised against. Among other problems, arbitrarily splitting a wikitable effectively disables the powerful and useful sorting feature from working across the entire table.

On the other hand, overloading tables with too much detailed statistical data is not always helpful. Careful thought should be given to how a reader would use a table, and what level of detail is appropriate.

Suitability

Tables are a way of presenting links, data, or information in rows and columns. They are a complex form of list, formatted into a systematic grid pattern. Tables might be useful for presenting mathematical data such as multiplication tables, comparative figures, or sporting results. They may also be useful for presenting equivalent words in two or more languages; for awards by type and year; complex discographies; etc.

The sortability of multiple columns in a table is a powerful tool that helps the reader to understand relationships and find patterns in large lists. The sortability of tables makes them very useful for "List of..." articles in Wikipedia, which are intended to give an overview of the subject area, and to allow easy comparisons among many similar items. Avoid cramming too much detailed information into individual table entries; if appropriate, the reader should be able to click a Wikilink to read a full, detailed article corresponding to a concise table entry.

Often a list is best left as a list. Before reformatting a list into table form, consider whether the information will be more clearly conveyed by virtue of having rows and columns. If so, then a table is probably a good choice. If there is no obvious benefit to having rows and columns, then a table is probably not the best choice.

Tables should not be misused to resolve visual layout problems. If the information you are editing is not tabular in nature, it probably does not belong in a table: Do not misuse tables for putting a caption under a photograph, arranging a group of links, or other strictly visual features. These practices make the article harder for other Wikipedians to edit, and will likely cause problems when viewed on different display sizes and aspect ratios. Also, when compared with tables, wikimarkup is more flexible, easier to use, and less arcane when used correctly for desktop publishing layout, page elements, and page orientation and positioning.

Prose

Prose is preferred in articles as prose allows the presentation of detail and clarification of context, in a way that a table may not. Prose flows, like one person speaking to another, and is best suited to articles, because their purpose is to explain. Tables which are mainly links, which are most useful for browsing subject areas, should usually have their own entries: see Wikipedia:Stand-alone lists for detail. In an article, significant items should normally be mentioned naturally within the text rather than merely tabulated.

Page layout

Page layouts (using multiple columns, positioning elements, adding borders, etc.) should be done via CSS, not tables, whenever possible.

  • Images and other embedded media should be positioned using standard image syntax.
  • There are several templates available that will create preformatted multi-column layouts: see Wikipedia:Help:Columns.
  • Other elements can be positioned or given special formatting through the use of the HTML <div> element and CSS styling.

See also