Jump to content

Help talk:Table/Archive 4

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MiszaBot II (talk | contribs) at 09:32, 25 March 2011 (Archiving 3 thread(s) from Help talk:Table.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Archive 1Archive 2Archive 3Archive 4Archive 5Archive 6Archive 10

Text to be centered only in certain cell

Title Year Author and Notes
First text Second text Third text
First text Second text Third text

I want automatically the "year" cell to be centered, how can I do that? Except manually adding style="text-align: center;" to each separating sign ("|-"). Userpd (talk) 21:08, 9 July 2010 (UTC)

As far as I know, that's the only way it can be done:
Title Year Author and Notes
r1 c1 text r1 c2 text r1 c3 text
r2 c1 text r2 c2 text r2 c3 text
We'd all like column styles to be applied from the first row automatically, but there's some limitation which prevents that from working. I think I read about it in bugzilla several years ago. —EncMstr (talk) 22:17, 9 July 2010 (UTC)
«but there's some limitation which prevents that from working.» And I was wondering why can't I apply vertical align for the first row automatically. Also, why don't you use valign=top instead of style="vertical-align:top;"? Userpd (talk) 18:01, 10 July 2010 (UTC)

Display the value from one infobox in another one within the same article

{{A infobox
|par1 =
|par2 =
}}

{{B infobox
|par1 =
}}

I have two infoboxes in one article. I would like the value of the parameter "par1" from A infobox display as the parameter "par1" in B infobox. If the "par2" in A infobox is not empty, change the background color of B infobox. Is it possible to do it? --WlaKom (talk) 21:30, 10 July 2010 (UTC)

I don't think you can do that, unless you created a special template for it (which I don't think is a good idea), like {{A infobox|par1={{something}}}} {{B infobox|par1={{something}}}}. What exactly are you trying to do? Also, what does this have to do with tables? This is probably not the best page to discuss this issue. Svick (talk) 22:06, 10 July 2010 (UTC)

Footnotes

I need to insert footnotes into a table. Could anyone add a section in the text describing process. Or at least write me so I can do it.RonRodex (talk) 17:35, 25 July 2010 (UTC)

Footnotes would be added like any other text. See WP:FOOTNOTES for an overview of the process. ---— Gadget850 (Ed) talk 20:53, 25 July 2010 (UTC)

Problems with display

Resolved

I wasn't sure where to ask for help, so came here. I have a problem with the display of a centered table. There are two problems which may or may not be related. Also, I use old browsers, so others may not be seeing what I see; if not please tell me. The two problems are both displayed in the article 42 (number), in the table with the caption "In other languages".

  1. The first problem is that the table is centered, but the table caption is sort of half centered. The caption text is placed to the left of where it should be. I also see this problem in this article at Help:Table#Centering tables.
  2. The second problem is that the table insists on displaying at the end of the article, just before the Categories. This is despite the fact that the table markup is higher up than that. No matter where the markup is placed in the article, the table always displays at the end (which is not where I want it to be).

Thanks for any help you can give. (Please respond here.) HairyWombat 01:46, 7 August 2010 (UTC)

I saw that table apprearing at the bottom of the page too. And it's really weird. I don't have a clue how I fixed it, because at my first edit it went back to normal and I couldn't reproduce the bug.
The table is well centered. If your are using old browsers because your boss told you to, please slap him gently for me. If it's your own decision... well... just do something about it. ;-) Cheers, Dodoïste (talk) 08:33, 7 August 2010 (UTC)

Great, many thanks. I use the most recent browsers that my operating system can support. Upgrading to more recent browsers would require a whole new computer. HairyWombat 14:01, 7 August 2010 (UTC)

Oh, interesting case. I did not know that Firefox doesn't work with old operating systems. In this case, you can use Ubuntu (operating system). Ubuntu is free and works just fine with old computers. You'll be able to have the latest version of Ubuntu for free, and install the latest browsers. You may even find an install-party near your place and have someone do the job for you! :p Dodoïste (talk) 23:50, 7 August 2010 (UTC)

Centering a column

Is there an easier way to center all of the entries for an entire column, rather than putting align=center or {{center|text}} for every entry? Cmcnicoll (talk) 23:08, 30 April 2010 (UTC)

This is my PRECISE question. Can someone please answer? Smashman2004 (talkcontribsemail) 09:18, 12 May 2010 (UTC)
No, there is no other way. If you have a complex table, you can edit it in Excel or OpenOffice Calc and convert it to wikimarkup and retain the formatting. http://excel2wiki.net/wikipedia.php ---— Gadget850 (Ed) talk 13:14, 12 May 2010 (UTC)
Is there a way of using a template or wikitable class to make whole columns right aligned (or centred)? This is for simple tables, just with some columns left aligned and some right aligned. It is very cumbersome to have to put align=right in every cell. --Pakaraki (talk) 20:36, 17 September 2010 (UTC)

Needs update

Hi. This help page should be updated according to Wikipedia:Manual of Style (accessibility)#Data tables. Tables headers should be made using "! scope="col" |" and "! scope="row" |", instead of only "!". The scope attribute tells the browser and screen reader that everything under the column is related to the header at the top, and everything to the right of the row header is related to that header. It's a straightforward concept. Yours, Dodoïste (talk) 11:17, 28 July 2010 (UTC)

I've done part of it, but this page is long, I need help! ;-) Dodoïste (talk) 03:51, 29 July 2010 (UTC)
Why don't we add this to the wikitable class instead of updating a gazillion tables? ---— Gadget850 (Ed) talk 15:38, 2 August 2010 (UTC)
Because it's impossible. The scope attribute of the <tr> tag can contain 4 values: row, col, rowgroup and colgroup. Those are used to determine what kind of header "<tr>" is. With CSS we can only add one attribute to all headers. With CSS we could decide that "headers are all column headers" for example. But that would be wrong in at least half of the cases, and completely useless. And this attributes can't be added by a bot as well, because it can't be automated.
Providing information about the headers is important for accessibility, and for reuse of the data as well. See Creating Accessible Tables, 2) Data Tables, WebAIM techniques.
Most important parts of this help page are updated now. A few things could be improved here and there, but the priorities are done. Yours, Dodoïste (talk) 00:26, 3 August 2010 (UTC)
See MediaWiki_talk:Common.css#some wikitable ideas. ---— Gadget850 (Ed) talk 12:23, 16 August 2010 (UTC)

Repeating Headers, possible?

Would there be a way to have the header of the table appear automatically every X (lets say 20 in this case) entries? It can't be done manually with a sorted table without having the headers sorted with the rest of the entries can it? This is needed as in a table with many columns the viewer may lose track of which column is which if the headers don't show up every X amount of entries.

Lets say header every 5 entries for this table, is there any way to make it so the headers stay in place and are not sorted (or a way to automate this)?

Header 1 Header 2 Header 3
1 a a
2 b b
3 c c
4 d d
5 d d
Header 1 Header 2 Header 3
6 e e
7 e e
8 f f
9 g g
10 h h

Repeating headers in the middle of the table causes accessibility issues. See Data tables tutorial#Avoiding column headers in the middle of the table. You'd better split the tables in several smaller tables. Dodoïste (talk) 01:53, 26 September 2010 (UTC)

Sorting tables with NA values (On VPT)

Please take a look at this VPT discussion regarding tables and NA values. Thanks. Protonk (talk) 20:28, 23 September 2010 (UTC)

Thoughts

The edit interface shown in the screenshot is for the Monobook skin only, since not all users use the Monobook skin shouldn't other screenshots be added? Regards, —Ғяіᴆaз'§ĐøøмChampagne?9:37pm 11:37, 25 September 2010 (UTC)

You're right. Here is a screenshot found on commons. I believe this page is not the only one concerned. Could you add this screenshot to the related pages? Thanks. :-) Dodoïste (talk) 16:01, 25 September 2010 (UTC)
 Done Dodoïste (talk) 20:34, 25 September 2010 (UTC)
Sorry I couldn't do it, I was asleep at the time. Thanks for putting it up Dodo :) Regards, —Ғяіᴆaз'§ĐøøмChampagne?11:27am 01:27, 26 September 2010 (UTC)