View Full Version : How to add tables into your posts
Mitsuko
4th July 2006, 08:52 AM
Are they easy to make? :confused:
snookersfun
4th July 2006, 09:25 AM
...and I thought, you'd be the person to ask. Excell apparently has a function to save portions of a table as html format, but I didn't find it yet.
So, as you see, I am trying to figure that thing out at the moment...
Robert602
4th July 2006, 09:26 AM
Here's a crash course.
I've added spaces after all of the < and before the > brackets below so that I can write this up in a post without the forum interpreting it as an actual table. When you're doing it for real, take the spaces out.
1. First, write some table tags. Every table has to go inside these:
< table border=1 > < /table >
2. Inside the table, there are rows, which are started with < tr > (table row) and ended with < /tr >
eg: a table with three rows would look like this:
< table border=1>
< tr >< /tr >
< tr >< /tr >
< tr >< /tr >
< /table >
3. Inside each row, there are cells for your table data, these are started with < td > and ended with < /td >. Your actual data goes between these tags.
eg: a table with three rows and two columns would look like this:
< table border=1>
< tr >< td >Row 1, Col 1< /td >< td >Row 1, Col 2< /td >< /tr >
< tr >< td >Row 2, Col 1< /td >< td >Row 2, Col 2< /td >< /tr >
< tr >< td >Row 3, Col 1< /td >< td >Row 3, Col 2< /td >< /tr >
< /table >
Note: I've split this up onto different lines to make it easier to see what's going on. When you're ready to post, you should take the line breaks out:
< table border=1>< tr >< td >Row 1, Col 1< /td >< td >Row 1, Col 2< /td >< /tr >< tr >< td >Row 2, Col 1< /td >< td >Row 2, Col 2< /td >< /tr >< tr >< td >< /td >Row 3, Col 1< td >Row 3, Col 2< /td >< /tr >< /table >
Removing the spaces from the tags to show what this looks like:
<table border=1><tr><td>Row 1, Col 1</td><td>Row 1, Col 2</td></tr><tr><td>Row 2, Col 1</td><td>Row 2, Col 2</td></tr><tr><td>Row 3, Col 1</td><td>Row 3, Col 2</td></tr></table>
snookersfun
4th July 2006, 10:00 AM
OK! So now the next question, how can one copy and add to the table (once it comes up in table format, I mean).
Robert602
4th July 2006, 10:10 AM
If you use 'quote post' you'll be able to see the table code, you can copy and add to it from there.
snookersfun
4th July 2006, 10:21 AM
<table border=1><tr><td>1</td><td>Mitsuko</td><td>4</td></tr><tr><td>2</td><td>cessy</td><td>4</td></tr><tr><td>3</td><td>snookersfun</td><td>3</td></tr>><tr><td>4</td><td>Lindea</td><td>3</td></tr>
</table>
so how is that, did I pass? :D Quite cumbersome though for big amounts of data, isn't it?
forgot: thank you Robert, I learned something new today...
Robert602
4th July 2006, 10:35 AM
Glad to help.
It is a bit clumsy for lots of data. I think things like the BDE scoreboard are best kept simple because everybody needs to be able to update them. Tables do have their uses though.
The code you now know how to use by the way is standard HTML, so you can use the same method to add tables to your own webpage.
Mitsuko
4th July 2006, 11:21 AM
Crucible frames
<table border=1><tr><td>Year</td><td>Frames<tr><td>1977</td><td>375</td><tr><td>1978</td><td>372</td><tr><td>1979</td><td>363</td><tr><td>1980</td><td>465</td><tr><td>1981</td><td>455</td><tr><td>1982</td><td>487</td><tr><td>1983</td><td>585</td><tr><td>1984</td><td>569</td><tr><td>1985</td><td>567</td><tr><td>1986</td><td>587</td><tr><td>1987</td><td>585</td><tr><td>1988</td><td>567</td><tr><td>1989</td><td>568</td><tr><td>1990</td><td>594</td><tr><td>1991</td><td>583</td><tr><td>1992</td><td>580</td><tr><td>1993</td><td>558</td><tr><td>1994</td><td>596</td><tr><td>1995</td><td>576</td><tr><td>1996</td><td>583</td><tr><td>1997</td><td>615</td><tr><td>1998</td><td>598</td><tr><td>1999</td><td>594</td><tr><td>2000</td><td>598</td><tr><td>2001</td><td>578</td><tr><td>2002</td><td>581</td><tr><td>2003</td><td>589</td><tr><td>2004</td><td>594</td><tr><td>2005</td><td>605</td><tr><td>2006</td><td>579
</table>
crucible77
27th October 2008, 01:37 PM
Is there a secret for doing big tables fairly quickly?
The Statman
27th October 2008, 01:48 PM
Is there a secret for doing big tables fairly quickly?Yes: cheat! This is how I do it:
Have an Excel spreadsheet with every column of data you need to use, with a blank column between each one. (So, you will use columns B, D, F, H etc.)
Then, in the in-between columns put in the relevant code, which will be:
<tr><td> for column A
</td><td> for all the mid columns
</td></tr> for the final right-hand column.
Then copy the whole thing and Paste Special it into Word (select "Unformatted Text" on the Edit>Paste Special menu).
Now, do a find/replace for all Tab characters (Find: ^t and Exchange: [leave blank])
Do the same for all Paragraph characters (Find: ^p and Exchange: [leave blank])
You now have your one continuous string of text which is ready to go into your post.
In the post itself, have this typed in:
<table border=1></table>. Copy the text from the Word document and paste it between the > and the < (shown in red above) and your table will be splendid.
mushka
29th April 2010, 08:14 PM
Belated thank you, Statman. :)
mushka
19th July 2010, 04:39 PM
Anyone has an idea where I have made a mistake?
<table border="1"><tbody><tr><td> spike </td><td> Hendry </td></tr> <tr><td> HunRon </td><td> XiaoGuodong </td></tr> <tr><td> mushka </td><td> Allen </td></tr> <tr><td> hotpot </td><td> Maguire </td></tr> <tr><td> stebed </td><td> Fu </td></tr> <tr><td> cally </td><td> Wenbo </td></tr> <tr><td> MrP </td><td> Carter </td></tr> <tr><td> erezpa </td><td> TianPengfei </td></tr> <tr><td> Wim </td><td> JinLong </td></tr> <tr><td> Mignon </td><td> Day </td></tr></tbody></table>
ferret
19th July 2010, 04:49 PM
Where are you trying to post this and how! only some sections allow HTML and you have to click the double A icon top right of The WYSIWYG editor when making a new post to add HTML you can not just pop it in a message like how you would do for replying to a post.
EDIT: Example click the A/A icon and, paste your code and you get the table;
<table border=1><tr><td> spike </td><td> Hendry </td></tr> <tr><td> HunRon </td><td> XiaoGuodong </td></tr> <tr><td> mushka </td><td> Allen </td></tr> <tr><td> hotpot </td><td> Maguire </td></tr> <tr><td> stebed </td><td> Fu </td></tr> <tr><td> cally </td><td> Wenbo </td></tr> <tr><td> MrP </td><td> Carter </td></tr> <tr><td> erezpa </td><td> TianPengfei </td></tr> <tr><td> Wim </td><td> JinLong </td></tr> <tr><td> Mignon </td><td> Day </td></tr></table>
mushka
19th July 2010, 04:53 PM
Thank you, Kevin. I didn't know.
The post was meant for a Lucky Dip thread in the international forums section. Nothing serious then and can be left without it. :)
Edit: I see it works here. I've forgotten the A/A thing and the advanced editor. :) (And to ditch Opera.)
ferret
19th July 2010, 06:01 PM
If it does not work in the section you want it to just send me a PM and I will enable HTML in that section as it is not allowed in all sections on the site.
Mr P
19th July 2010, 06:27 PM
I have been wondering how to create these things for a long time. Thanks for the help Kevin, and hopefully I'll now have them for my lucky dips in the future.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.