Help talk:Table/Archive 7
![]() | This is an archive of past discussions about Help:Table. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | ← | Archive 5 | Archive 6 | Archive 7 | Archive 8 | Archive 9 | Archive 10 |
Sortable table with white background and lines?
Hi
Is there a way of having a sortable table but in the same style of a simple table with no background colour or lines?
Thanks
John Cummings (talk) 09:15, 11 October 2015 (UTC)
- Just omit the
wikitable
class. Withclass="wikitable sortable"
:
Alphabetic | Numeric | Date | Unsortable |
---|---|---|---|
d | 20 | 2008-11-24 | This |
b | 8 | 2004-03-01 | column |
a | 6 | 1979-07-23 | cannot |
c | 4 | 1492-12-08 | be |
e | 0 | 1601-08-13 | sorted. |
- With only
class="sortable"
:
Alphabetic | Numeric | Date | Unsortable |
---|---|---|---|
d | 20 | 2008-11-24 | This |
b | 8 | 2004-03-01 | column |
a | 6 | 1979-07-23 | cannot |
c | 4 | 1492-12-08 | be |
e | 0 | 1601-08-13 | sorted. |
- Hi PrimeHunter, thanks so much, you've saved me a lot of time :) John Cummings (talk) 11:08, 11 October 2015 (UTC)
Multidimensional tables
Is there any way to create tables with more than two dimensions? E.g. select the third dimension from a dropdown or radio-button list, which updates the table showing the first two dimensions. Irfan (talk) 10:34, 13 October 2015 (UTC)
- @Irfanadilovic: The English Wikipedia does not support that and I don't know of other wikis that do. A drop-down list should be possible to code with JavaScript but it will only work for users with JavaScript in their browsers. MediaWiki:Gadget-charinsert-core.js makes the drop-down list below the edit box where you can select Insert, Wiki markup, Symbols, Latin and so on. I'm not a JavaScript coder. PrimeHunter (talk) 12:40, 13 October 2015 (UTC)
PLEASE HELP. DO YOU KNOW HOW TO PUT TWO TABLES PARALLEL TO EACH OTHER?? one beside the other???
PLEASE HELP. DO YOU KNOW HOW TO PUT TWO TABLES PARAREL TO EACH OTHER?? one beside the other??? EXAMPLES
Gundam Wing | |
---|---|
Origen | ![]() |
Producer | Cloverway, Inc. |
ADR | Intertrack, S.A. Gradoca |
Licence | Xystus |
Director | Adriana Rodríguez |
Translation | Brenda Nava |
Cast | See Here |
Transmision |
Transmision | |
---|---|
Origen | ![]() |
Puerto Rico | 2 am |
Mars | 8pm |
My house | 2 pm |
Director | Dantes inferno |
The toilet | captain kanguroo |
The Sky | sweet |
I do not want one below the other. please help i need this for my work on the proyect im writing here in wikipedia. blessings --Cheposo (talk) 03:21, 14 November 2015 (UTC)
- Please do not SHOUT! ;)
- Wrap the 2 tables inside another table:
|
|
- Note: style="vertical-align:top;"
- It aligns the top of both tables.
- --Timeshifter (talk) 18:26, 14 November 2015 (UTC)
MY FRIEND THANKS THANKS THANKS THANKS THANKS A LOT!!!!!!!!!!!! Cheposo (talk) 21:43, 14 November 2015 (UTC)
- Note: Section below started on user talk page, and moved here to help others too.
first i want to thank you for helping me with the tables , but i have another problem my friend, i geb you:
i want this two tables as they are, one near de other, but located in the center of the page. PLEASE PLEASE MY FRIEND!!! this king of info should be in the table tutorials on wiki. PLease show me the code!!!!Cheposo (talk) 13:30, 15 November 2015 (UTC)
- You're welcome. This centers the tables: style="margin:auto;"
|
|
THANKLS MY FRIEND!!!! REALLY REALLY REALYY THANKS!!!!!!! THANK YOU!!!! Cheposo (talk) 17:35, 14 December 2015 (UTC)
HEY TIME SHIFTER MY FRIEND!!!!! THANKS FOR THE HELP. I HAVE ANOTHER REQUEST OF HELP. I WANT TO MAKE THIS TABLE, BUT I DONT KNOW HOW TO MAKE THE CODE, SO I WENT TO PAINT AND I PAINTED THE TABLE I NEED FOR KEEP WORKING: LOOK AT IT

please my friend i depend on you to keep working Cheposo (talk) 17:45, 14 December 2015 (UTC)
- OK. Is this what you want?:
Gundam Wing | |||
---|---|---|---|
Origen | Origen | Origen | Origen |
Transmision |
Or collapsed to begin with:
Gundam Wing | |||
---|---|---|---|
Origen | Origen | Origen | Origen |
Transmision |
--Timeshifter (talk) 23:36, 14 December 2015 (UTC)
TIME SHIFTER!!!! YOU ARE THE GOD OF TABLESSS!!!!! THANKS A LOT!!!!!!!!!!!!! :) Cheposo (talk) 00:26, 15 December 2015 (UTC)
Any chance to collapse columns or rows?
It would be so helpful to be able, when you create a table, to define a button that can collapse for example columns 2,4,6 or some rows that you need to collapse. Is there any way to do this? If not, did anyone think about implementing such a thing? Thanks. — Ark25 (talk) 00:28, 22 December 2015 (UTC)
uneven rowspans
is there any easy way to make a table with the following layout?
+-----+-----+ | | | | 1.1 | | | | 1.2 | +-----+ | | | | | 2.1 +-----+ | | | +-----+ | | | 2.2 | | 3.1 | | | | | +-----+-----+
my attempts to do this with rowspans summing to 6 have failed for some reason. thank you. Frietjes (talk) 17:14, 11 May 2015 (UTC)
- follow up, very odd but this
{| class="wikitable" | rowspan=2 | 1.1 | style="display:none"| | rowspan=3 | 1.2 |- | style="display:none"| |- | rowspan=2 | 2.1 | style="display:none"| |- | style="display:none"| | rowspan=3 | 2.2 |- | rowspan=2 | 3.1 | style="display:none"| |- | style="display:none"| |}
- works, but if I remove the fake cells, it doesn't work. Frietjes (talk) 17:20, 11 May 2015 (UTC)
- Have a look at how I did it at
{{rail line three to two}}
. Basically, you need to have six rows. --Redrose64 (talk) 18:35, 11 May 2015 (UTC)- I have a similar problem with a table. This is how it looks now:
- Have a look at how I did it at
Team A | Team B |
---|---|
Cliff Morgan (1970–75) | Henry Cooper (1970–79) |
Fred Trueman (1976–77) | |
Brendan Foster (1977–79) | |
Gareth Edwards (1979–81) | Emlyn Hughes (1979–81) |
Bill Beaumont (1982–96) | Willie Carson (1982–83) |
Emlyn Hughes (1984–88) | |
Ian Botham (1988–96) | |
John Parrott (1996–2002) | Ally McCoist (1996–2007) |
Frankie Dettori (2002–04) | |
Matt Dawson (2004–present) | |
Phil Tufnell (2008–present) |
- It should look like this:
+--------------------------+---------------------------+ | '''Team A''' | '''Team B''' | +--------------------------+---------------------------+ |Cliff Morgan (1970–75) | | +--------------------------+ | |Fred Trueman (1976–77) |Henry Cooper (1970–79) | +--------------------------+ | |Brendan Foster (1977–79) | | +--------------------------+---------------------------+ |Gareth Edwards (1979–81) |Emlyn Hughes (1979–81) | +--------------------------+---------------------------+ | |Willie Carson (1982–83) | | +---------------------------+ |Bill Beaumont (1982–96) |Emlyn Hughes (1984–88) | | +---------------------------+ | | | +--------------------------+Ian Botham (1988–96) | | | | |John Parrott (1996–2002) +---------------------------+ | | | +--------------------------+ | |Frankie Dettori (2002–04) |Ally McCoist (1996–2007) | +--------------------------+ | | | | |Matt Dawson (2004–present)+---------------------------+ | |Phil Tufnell (2008–present)| +--------------------------+---------------------------+
- My efforts to achieve this were all in vain, even with the fake cells. Tvx1 21:04, 28 May 2015 (UTC)
- Please give a link to where you carried out your testing. --Redrose64 (talk) 21:52, 28 May 2015 (UTC)
- My efforts to achieve this were all in vain, even with the fake cells. Tvx1 21:04, 28 May 2015 (UTC)
- Ian Botham and John Parrott share a row in your code but that row renders with height 0 for me. Same for the row shared by Ally McCoist and Matt Dawson. The below looks OK for me in a Firefox test but may change display in other circumstances. It uses
height
to force some multi-row cells to a certain height. PrimeHunter (talk) 22:31, 28 May 2015 (UTC)
- Ian Botham and John Parrott share a row in your code but that row renders with height 0 for me. Same for the row shared by Ally McCoist and Matt Dawson. The below looks OK for me in a Firefox test but may change display in other circumstances. It uses
Team A | Team B |
---|---|
Cliff Morgan (1970–75) | Henry Cooper (1970–79) |
Fred Trueman (1976–77) | |
Brendan Foster (1977–79) | |
Gareth Edwards (1979–81) | Emlyn Hughes (1979–81) |
Bill Beaumont (1982–96) | Willie Carson (1982–83) |
Emlyn Hughes (1984–88) | |
Ian Botham (1988–96) | |
John Parrott (1996–2002) | |
Ally McCoist (1996–2007) | |
Frankie Dettori (2002–04) | |
Matt Dawson (2004–present) | |
Phil Tufnell (2008–present) |
- I use Firefox: and the above comes out uneven. Setting an explicit height makes assumptions, which you shouldn't do when laying out a table. The characteristics of your system are not the same as everybody else's.
{{rail line three to two}}
works by having a column (two in fact) with no rowspans at all, each of the six cells in that column contain a
to force some height into each row. They appear to be a single 6-high cell because the top five cells have the bottom border removed, and the bottom five cells have the top border removed, so that the five common borders are absent. --Redrose64 (talk) 22:57, 28 May 2015 (UTC)- The table I pasted here is just one attempt I made to make it work (and it seems I didn't even correctly coded the Parrot-Botham row). This is how it was originally coded:
{| class="wikitable" |- ! Team A ! Team B |- | [[Cliff Morgan]] (1970–75) | rowspan=3|[[Henry Cooper]] (1970–79) |- | [[Fred Trueman]] (1976–77) |- | [[Brendan Foster]] (1977–79) |- | [[Gareth Edwards]] (1979–81) | [[Emlyn Hughes]] (1979–81) |- | rowspan=3|[[Bill Beaumont]] (1982–96) | [[Willie Carson]] (1982–83) |- | [[Emlyn Hughes]] (1984–88) |- | [[Ian Botham]] (1988–96) |- | [[John Parrott]] (1996–2002) | rowspan=3|[[Ally McCoist]] (1996–2007) |- | [[Frankie Dettori]] (2002–04) |- | rowspan=2|[[Matt Dawson]] (2004–present) |- | [[Phil Tufnell]] (2008–present) |}
- I tried to apply the "fake cells" to that, but it didn't work obviously. I didn't test in any sandbox or so. I just edited it and used the preview button to check whether it worked and cancelled the edit altogether when I noticed it didn't. That means I can't provide a link to anything, unfortunately. Any of course in this one too the Parrot-Botham row isn't correctly coded yet. Tvx1 23:40, 28 May 2015 (UTC)
- The fake cell approach leads to something like this. Not particularily better I think, or at least not how I worked it.
Team A | Team B |
---|---|
Cliff Morgan (1970–75) | |
Fred Trueman (1976–77) | Henry Cooper (1970–79) |
Brendan Foster (1977–79) | |
Gareth Edwards (1979–81) | Emlyn Hughes (1979–81) |
Willie Carson (1982–83) | |
Bill Beaumont (1982–96) | Emlyn Hughes (1984–88) |
Ian Botham (1988–96) | |
John Parrott (1996–2002) | |
Frankie Dettori (2002–04) | Ally McCoist (1996–2007) |
Matt Dawson (2004–present) | Phil Tufnell (2008–present) |
--Jules (Mrjulesd) 00:07, 29 May 2015 (UTC)
- Well at least that table is correct. The only issue that one has is that some cells are larger than needed. Tvx1 22:05, 29 May 2015 (UTC)
- Using style heights, but tweaking slightly gives this:
Team A | Team B |
---|---|
Cliff Morgan (1970–75) | Henry Cooper (1970–79) |
Fred Trueman (1976–77) | |
Brendan Foster (1977–79) | |
Gareth Edwards (1979–81) | Emlyn Hughes (1979–81) |
Bill Beaumont (1982–96) | Willie Carson (1982–83) |
Emlyn Hughes (1984–88) | |
Ian Botham (1988–96) | |
John Parrott (1996–2002) | |
Ally McCoist (1996–2007) | |
Frankie Dettori (2002–04) | |
Matt Dawson (2004–present) | |
Phil Tufnell (2008–present) |
- Perhaps a slight improvement. --Jules (Mrjulesd) 11:28, 31 May 2015 (UTC)
- Indeed, but now the Dawson-McCoist shared row is hardly noticable. Tvx1 13:52, 31 May 2015 (UTC)
- Perhaps a slight improvement. --Jules (Mrjulesd) 11:28, 31 May 2015 (UTC)
- @Tvx1: how about this?
Team A | Team B |
---|---|
Cliff Morgan (1970–75) | Henry Cooper (1970–79) |
Fred Trueman (1976–77) | |
Brendan Foster (1977–79) | |
Gareth Edwards (1979–81) | Emlyn Hughes (1979–81) |
Bill Beaumont (1982–96) | Willie Carson (1982–83) |
Emlyn Hughes (1984–88) | |
Ian Botham (1988–96) | |
John Parrott (1996–2002) | |
Ally McCoist (1996–2007) | |
Frankie Dettori (2002–04) | |
Matt Dawson (2004–present) | |
Phil Tufnell (2008–present) |
- Not improved probably. I would try to tweak the height until is seems correct, but it's a little difficult to get exactly right, it doesn't seem to work how I predict for some reason. May also vary between browsers. --Jules (Mrjulesd) 16:16, 31 May 2015 (UTC)
- No. now the McCoist, Dawson and Tufnell cells are way to large and Parrot and McCoist no longer share a row. I highly appreciate your efforts but I'm not sure this is the right way to solve this. I still wonder why the original table doesn't appear the way it's coded? It has a rowspan of 2 for Matt Dawson, but only one row appears. Similarly it has a rowspan of 3 for Ally McCoist, but only two appear. Tvx1 16:36, 31 May 2015 (UTC)
- Not improved probably. I would try to tweak the height until is seems correct, but it's a little difficult to get exactly right, it doesn't seem to work how I predict for some reason. May also vary between browsers. --Jules (Mrjulesd) 16:16, 31 May 2015 (UTC)
- Parrot and McCoist do share a cell, at least on my system, but you're right it probably isn't an improvement.
- I think the reason rowspan doesn't work correctly is that whoever programmed it didn't envisage this overlapping of cells, and did it purely as perfectly lined up cells, but cells lining up with more than one cell. They should have really, there was no reason for this not to work as originally envisaged, but I don't think they basically thought of this situation, and didn't implement it properly. Or at least that's a probably explanation.
- Having said, I would just pick whichever one you like best and go with it. Or maybe the help desk / village pump would have more luck. --Jules (Mrjulesd) 16:56, 31 May 2015 (UTC)
- Having fiddled with it some more myself I finally achieved the intended result. A wholehearted thanks. Tvx1 17:58, 23 December 2015 (UTC)
Team A | Team B |
---|---|
Cliff Morgan (1970–75) | Henry Cooper (1970–79) |
Fred Trueman (1976–77) | |
Brendan Foster (1977–79) | |
Gareth Edwards (1979–81) | Emlyn Hughes (1979–81) |
Bill Beaumont (1982–96) | Willie Carson (1982–83) |
Emlyn Hughes (1984–88) | |
Ian Botham (1988–96) | |
John Parrott (1996–2002) | |
Ally McCoist (1996–2007) | |
Frankie Dettori (2002–04) | |
Matt Dawson (2004–present) | |
Phil Tufnell (2008–present) |
Maximum number of rows
Is there a limit to the number of rows in a table. It would be a sortable table with 3 columns and potentially about 2,000 rows. Is that possible? Piriczki (talk) 18:40, 15 January 2016 (UTC)
- There is no intrinsic limit and what you want to do is likely possible. See List of canals in Oregon (660+ rows) and User:EncMstr/List of Oregon GNIS features (2186 rows) for extreme examples. Some computers/browsers may not work correctly with a large number of rows, but that is due to individual system limitations, not a limit of a table. —EncMstr (talk) 00:59, 16 January 2016 (UTC)
- There is a limit in a page (table or not table). It's called template_include_size_limit. That's the reason why User:EncMstr/List of Oregon GNIS features (2186 rows) is on trouble: so many calls to template {{coord}} are above the TISL. Obviously, this would not apply to a text-only table. Pldx1 (talk) 10:21, 23 February 2016 (UTC)
Sticky table header
Please provide a sticky header while scrolling long tables (longer than a screen height), like in this example. It will be very useful. 79.191.252.28 (talk) 13:16, 3 March 2016 (UTC)
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 (talk • contribs) 15:50, 4 December 2011
Clean up table of contents // Restructure
This help page has too many unordered information in it. I'd suggest a massive clean-up. If you dont want to delete whole sections, just improve nesting of headlines. Check these headlines - very hard to understand IMHO (sections 9-16):
9 Other table syntax
9.1 Comparison of table syntax
10 Pipe syntax in terms of the HTML produced
10.1 Tables
10.2 Rows
10.3 Cells
10.4 Headers
10.5 Captions
10.6 Summaries
11 Square monitors
12 Vertically oriented column headers
13 Wikitable as image gallery
13.1 Shifting/centering
14 Generate a chart with a table
15 Converting spreadsheet to wikitable format
16 Tables and WYSIWYG -- — Preceding unsigned comment added by Jesus Presley (talk • contribs) 19:31, 25 November 2012