Announcement

Collapse
No announcement yet.

How to add tables into your posts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to add tables into your posts

    Are they easy to make?
    You play a long slow deadweight red to a corner pocket. As it approaches the pocket, a kamikaze woodlouse crawls out from under the cushion and makes its way across the table, conflicting with the path of the red precisely at the point the red gets there. The red, needless to say, veers off course, and the future of the woodlouse is uncertain. - The Statman

  • #2
    ...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...

    Comment


    • #3
      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:

      Row 1, Col 1Row 1, Col 2
      Row 2, Col 1Row 2, Col 2
      Row 3, Col 1Row 3, Col 2

      Comment


      • #4
        OK! So now the next question, how can one copy and add to the table (once it comes up in table format, I mean).

        Comment


        • #5
          If you use 'quote post' you'll be able to see the table code, you can copy and add to it from there.

          Comment


          • #6
            >
            1Mitsuko4
            2cessy4
            3snookersfun3
            4Lindea3



            so how is that, did I pass? Quite cumbersome though for big amounts of data, isn't it?

            forgot: thank you Robert, I learned something new today...

            Comment


            • #7
              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.

              Comment


              • #8
                Crucible frames
                YearFrames
                1977375
                1978372
                1979363
                1980465
                1981455
                1982487
                1983585
                1984569
                1985567
                1986587
                1987585
                1988567
                1989568
                1990594
                1991583
                1992580
                1993558
                1994596
                1995576
                1996583
                1997615
                1998598
                1999594
                2000598
                2001578
                2002581
                2003589
                2004594
                2005605
                2006579
                You play a long slow deadweight red to a corner pocket. As it approaches the pocket, a kamikaze woodlouse crawls out from under the cushion and makes its way across the table, conflicting with the path of the red precisely at the point the red gets there. The red, needless to say, veers off course, and the future of the woodlouse is uncertain. - The Statman

                Comment


                • #9
                  Is there a secret for doing big tables fairly quickly?
                  2009 Shanghai Masters Predict the Qualifiers Champion

                  2008 Grand Prix Final Prediction Champion


                  http://ryan147.com

                  Comment


                  • #10
                    Originally Posted by crucible77 View Post
                    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:

                    for column A
                    for all the mid columns
                    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>. Copy the text from the Word document and paste it between the > and the < (shown in red above) and your table will be splendid.

                    Comment


                    • #11
                      Belated thank you, Statman.
                      Robbo's potting is so good he doesn't need to bother with positional play like the rest of the players. He laughs in the face of those who spend hours on the practice table perfecting their cue ball control! ~ Forman
                      2009 Grand Prix Fantasy Game winner

                      Comment


                      • #12
                        Anyone has an idea where I have made a mistake?

                      • spike Hendry
                        HunRon XiaoGuodong
                        mushka Allen
                        hotpot Maguire
                        stebed Fu
                        cally Wenbo
                        MrP Carter
                        erezpa TianPengfei
                        Wim JinLong
                        Mignon Day
                        Last edited by mushka; 19 July 2010, 04:05 PM.
                        Robbo's potting is so good he doesn't need to bother with positional play like the rest of the players. He laughs in the face of those who spend hours on the practice table perfecting their cue ball control! ~ Forman
                        2009 Grand Prix Fantasy Game winner

                        Comment


                        • #13
                          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;
                          spike Hendry
                          HunRon XiaoGuodong
                          mushka Allen
                          hotpot Maguire
                          stebed Fu
                          cally Wenbo
                          MrP Carter
                          erezpa TianPengfei
                          Wim JinLong
                          Mignon Day
                          Last edited by ferret; 19 July 2010, 03:53 PM.

                          Comment


                          • #14
                            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.)
                            Last edited by mushka; 19 July 2010, 04:11 PM.
                            Robbo's potting is so good he doesn't need to bother with positional play like the rest of the players. He laughs in the face of those who spend hours on the practice table perfecting their cue ball control! ~ Forman
                            2009 Grand Prix Fantasy Game winner

                            Comment


                            • #15
                              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.

                              Comment

                              Working...
                              X