Help talk:Table

This is an old revision of this page, as edited by MiszaBot II (talk | contribs) at 04:09, 14 June 2012 (Robot: Archiving 2 threads (older than 180d) to Help talk:Table/Archive 4.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


WikiProject iconWikipedia Help NA‑class
WikiProject iconThis page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
NAThis page does not require a rating on the project's quality scale.

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 (talkcontribs) 15:50, 4 December 2011‎

Sort table headers

"Do not divide a table into sections by subheaders spanning several rows. Instead, an extra column can be made showing the content of these headers on each row, in a short form."

An alternative is to make sure that the first row of the header has a single cell per column. You can then add multi-column headers on the second row, and it will still sort okay. For example:

Cluster
identifier
R. A. Dec. Constellation
Epoch J2000
Hyades 04h 26.9m +15° 52′ Taurus
Coma 12h 22.5m +25° 51′ Coma Berenices
Pleiades 03h 47.4m +24° 07′ Taurus

or even:

Cluster
identifier
Constellation
Epoch J2000
R. A. Dec.
Hyades 04h 26.9m +15° 52′ Taurus
Coma 12h 22.5m +25° 51′ Coma Berenices
Pleiades 03h 47.4m +24° 07′ Taurus

Regards, RJH (talk) 20:46, 5 January 2012 (UTC)Reply

MediaWiki 1.19

Per the 1.19 release notes: "Style rules for wikitable are now more specific and prevent inheritance to nested tables which caused various issues."[1] ---— Gadget850 (Ed) talk 00:18, 15 January 2012 (UTC)Reply

Thank you for the notice. This will hopefully fix the following where the nested table should not inherit the cell border property from its parent:
 
Screenshot of the code under MW 1.18
{| class="wikitable"
|Row 1 Col 1||
 {|
 |Nest Col1||Nest Col2
 |}
|-
|Row 2 Col 1||Row 2 Col2
|}
Row 1 Col 1
Nest Col1 Nest Col2
Row 2 Col 1 Row 2 Col2
-- Michael Bednarek (talk) 10:51, 15 January 2012 (UTC)Reply
Then we will see what this looks like when 1.19 is implemented. Screen shot so we can compare old and new? ---— Gadget850 (Ed) talk 12:11, 15 January 2012 (UTC)Reply
Tested under 1.19 at http://labs.wikimedia.beta.wmflabs.org/wiki/Talk:Test_cases ; seems to work properly now. -- Michael Bednarek (talk) 04:42, 16 January 2012 (UTC)Reply

Thead, tbody and tfoot now supported?

From the article: "Thead, tbody and tfoot are supported from Mediawiki version 1.18 on." Is this true? And how do we use them? --V111P (talk) 19:54, 14 February 2012 (UTC)Reply

Sort arrows

I apologize because this may be a stupid question. I can't seem to find the answer on the help page or the talk page archives. Why won't the sorting arrows appear at the top of the table in List of National Historic Sites of Canada in New Brunswick and related lists? Cheers, --Skeezix1000 (talk) 19:59, 3 March 2012 (UTC)Reply

I think you've run into the bug described at Help:Sorting#Header styling, links, and markup. "Styling workaround 1" seems to work, using just background-color instead of background. -- John of Reading (talk) 22:14, 3 March 2012 (UTC)Reply
That's it exactly. Thanks so much. --Skeezix1000 (talk) 18:18, 4 March 2012 (UTC)Reply

Questions

How do I change the font size or the font color in a table? Also, how do I add or change the borders, whether inside or outside the table? Allen (talk) 22:44, 10 March 2012 (UTC)Reply

The standard Wikipedia borders are added by putting class="wikitable" after the table start marker as advised at Help:Table#Classes. --Redrose64 (talk) 00:46, 11 March 2012 (UTC)Reply

Edit toolbar

The "customize edit toolbar" is no longer available on the page linked to. AmericanLeMans (talk) 20:52, 13 April 2012 (UTC)Reply

What is "the page linked to"? --Redrose64 (talk) 21:20, 13 April 2012 (UTC)Reply

|-class=unsortable

Adding |-class=unsortable to a row used to fix it within a sortable table. For example:

Header 1 Header 2
Entry 1 Entry B
Fixed 1 Fixed 2
Entry 2 Entry A

A year or so ago, the code used for this table would have fixed the fourth row down, so that it would have remained in that position if the other rows were sorted. This is obviously no longer the case. Any idea what's happened? Thanks, A Thousand Doors (talk | contribs) 16:31, 17 April 2012 (UTC)Reply

The whole method for making tables sortable was altered with MediaWiki 1.18 in October 2011. Some of the undocumented kludges that had previously worked stopped working at that time. --Redrose64 (talk) 20:56, 17 April 2012 (UTC)Reply
Ah, okay, thank you very much for the response. Do you happen to know if this will be readded into a later version of MediaWiki, or do you know of any other way to fix a row within a sortable table? A Thousand Doors (talk | contribs) 18:09, 18 April 2012 (UTC)Reply
No, sorry, I don't make amendments to the MediaWiki software - I just observe the effects of changes. You'd probably need to raise a bugzilla ticket. --Redrose64 (talk) 20:07, 18 April 2012 (UTC)Reply
Thanks for bringing Bugzilla to my attention. It would seem that this a problem that has been raised there before, but, as of yet, there is no solution. I'll keep my eye on it. Thanks again. A Thousand Doors (talk | contribs) 22:51, 30 April 2012 (UTC)Reply
Yes, bugzilla:31060 is the right one. I note in particular that comment 7 from Krinkle (talk · contribs) contains text "It was an undocumented feature that might very well be a bug in the original code" which pretty much confirms my suspicion of 17 April above "Some of the undocumented kludges that had previously worked stopped working at that time". --Redrose64 (talk) 15:09, 1 May 2012 (UTC)Reply

Section 3.16 : Tiny Tables within a text line

In Section 3.16 : Tiny Tables within a text line

I believe the wiki-code example, while working, is incorrect. It is missing several "close" commands -- </td> and </tr>.

I realize that this is "wiki-code" and that it works as presented, but it LOOKS like legitimate HTML, and therefore, to my way of thinking, should BE legitimate HTML. But since I don't edit at Wikipedia very often, I'll let others make that call.

Original version

Wikicode (table-within-table):
* <table style="background-color: #fafeff"><tr><td>This is a test table here<td><table height=11px><tr><td style="border: 1px solid black; font-size:60%">HELLO WORLD</table></td><td>followed by this text afterward.</table> This line is more text after the outer table.
Result:
  • This is a test table here
    HELLO WORLD
    followed by this text afterward.
    This line is more text after the outer table.

Corrected version

*<table style="background-color: #fafeff"><tr><td>This is a test table here</td><td><table height=11px><tr><td style="border: 1px solid black; font-size:60%">HELLO WORLD</td></tr></table><td>followed by this text afterward.</td></tr></table>This line is more text after the outer table.
Result:
  • This is a test table here
    HELLO WORLD
    followed by this text afterward.
    This line is more text after the outer table.

--William H. Magill 01:02, 18 May 2012 (UTC) — Preceding unsigned comment added by Whmagill (talkcontribs)

You are correct regarding the faulty HTML usage. However, I think the whole section should be removed because it describes a kludge. Boxed text is better implemented as <span style="border-style:solid; border-width:1px">boxed text</span> which gives boxed text, although a proper use for such ornamentation in Wikipedia escapes me. -- Michael Bednarek (talk) 14:40, 18 May 2012 (UTC)Reply
And {{divbox}}. I think this should be removed. ---— Gadget850 (Ed) talk 15:52, 18 May 2012 (UTC)Reply
Removed. -- Michael Bednarek (talk) 07:46, 19 May 2012 (UTC)Reply

Scrollable tables with titles allways on top, is this possible?

Sometimes, tables are bigger then my screen. Here's an example: Comparison_of_Intel_graphics_processing_units#Intel_HD_Graphics. Is it possible to make them scrollable, so that the title is always on top and visible, even when scrolling the page down? --95.208.204.253 (talk) 05:05, 5 June 2012 (UTC)Reply

  NODES
Idea 1
idea 1
Note 2
Project 5