PDA

View Full Version : Feature Overview: Tables


Havoc
06-28-2009, 07:06 AM
This new bbcode transforms this text:

- title 1 |- title 2 |- title 3
-cell 1 |> cell 2 | cell 3
>cell 4 | cell 5 | cell 6
cell 7 |- cell 8 |> cell 9
more more text | more more text | more more text

into this:

- title 1 |- title 2 |- title 3
-cell 1 |> cell 2 | cell 3
>cell 4 | cell 5 | cell 6
cell 7 |- cell 8 |> cell 9
more more text | more more text | more more text

How to use:
- Every pipe character (ascii 124) is a cell delimiter (<td></td>)
- Every Carriage Return character (ascii 13) is a row delimiter (<tr></tr>)
- If the first character of a cell is ">", then the cell is right alignment
- If the first character of a cell is "-", then the cell is center
- Always, the first row are the headers.
- The format of tag is [table X Y Z], where X is the border, Y is the cellspacing and Z is the cellpadding of the table.
- X, Y, and Z are integer numbers >= 0.

Young Ned
06-28-2009, 07:58 AM
The > characters don't seem to work -- all the cells in your example that use > are still left-justified.

Just tried it myself -- the cells are properly right-justified when you preview the post, but not when you actually post it. Odd.

Havoc
06-28-2009, 11:11 AM
You're right. That's a rather odd thing to be happening, but I'll look into it later, as I doubt people will be significantly affected.

Young Ned
07-19-2009, 12:29 AM
Have you had a chance to look into this yet?

Elrond
09-23-2009, 04:08 AM
So, how do you put a table in this forum? Would one of the forum experts put a formula in for me to use? Thanks in advance!

Joddelle
09-23-2009, 09:47 AM
Heading 1|Heading 2|Heading 3
c1r1|c2r1|c3r1
c1r2|c2r2|c3r2
c1r3|c2r3|c3r3

Quote this post for the code

thingirl
09-23-2009, 01:25 PM
Like this with no spaces in the [].

[tabl e]- this makes it centered | this doen't make it centered |> this makes it right aligned
press enter to start a new row |> Let's see if right align is fixed | cell 6
you can go on for as long as you want | But this tutorial is through | so I hope this helped[/table]

- this makes it centered | this doen't make it centered |> this makes it right aligned
press enter to start a new row |> Let's see if right align is fixed | cell 6
you can go on for as long as you want | But this tutorial is through | so I hope this helped

Oldschool
09-23-2009, 11:42 PM
Thanks and repped to both of you. Now I should be able to make a table.

EDIT:

Although in retrospect Havoc's example is straight forward I got confused by his "how to use" as it contained math. No offense Havoc (overdue rep delivered) as; 1. I don't have the head for such things, and 2. I tend to over analyze things - even those I have trouble understanding in the first place.

Young Ned
09-24-2009, 12:00 AM
:confused: Where do you see any math in Havoc's post? Using X, Y, and Z to stand for the table tag's parameters isn't math.

And no, the right alignment is not fixed yet.

thingirl
09-24-2009, 12:08 AM
It's the integers. I learned that last year. In 7th grade.

Oldschool
09-24-2009, 12:18 AM
:confused: Where do you see any math in Havoc's post? Using X, Y, and Z to stand for the table tag's parameters isn't math.

And no, the right alignment is not fixed yet.


How to use:[/B]
- Every pipe character (ascii 124) is a cell delimiter (<td></td>)
- Every Carriage Return character (ascii 13) is a row delimiter (<tr></tr>)
- If the first character of a cell is ">", then the cell is right alignment
- If the first character of a cell is "-", then the cell is center
- Always, the first row are the headers.
- The format of tag is [table X Y Z], where X is the border, Y is the cellspacing and Z is the cellpadding of the table.
- X, Y, and Z are integer numbers >= 0.

Well maybe math terms, although I'm not 100% sure about delimiter, would be more appropriate. Plus, we won't even get into the "cellspeak".

However, keep in mind this is coming from the guy that has trouble "helping" his fifth grader with math homework. :rolleyes: Checking over it is more like it - luckily I'm still able to cipher out what I can't figure out by use of the textbook and most of the time everything's correct to start with. However, that dog ain't going to hunt much longer I'm afraid.

I'm able to do simple equations, even complex ones of a simple nature, in my head fairly easy but when it gets into equations with letters and negatives - stick a fork in me I'm done. Fairly basic stuff of that nature I can get the answer to but as far as knowing if the "work" is right or doing it - forget it.

For example, in regards to "And no, the right alignment is not fixed yet." :confused:

thingirl
09-24-2009, 12:22 AM
Say it: "You are not smarter than a 5th grader."

I can do simple "find the value of x" problems in my head. Although, in 20 years, unless I go into a carrier teaching math, I probably won't remember half the stuff I'm learning now.

Oldschool
09-24-2009, 12:28 AM
Say it: "You are not smarter than a 5th grader."

I can do simple "find the value of x" problems in my head. Although, in 20 years, unless I go into a carrier teaching math, I probably won't remember half the stuff I'm learning now.

Same here I have forgot some although even when I was in school I had to work at a lot of it. The big difference in now and then is that I think a lot more math is required to further your studies even in high school and especially college even if you're not going into a field "heavy" in math.

Young Ned
09-24-2009, 12:29 AM
Ah, I see. Delimiter is more of a computer science term, I think, although it may have a mathematical origin. (I hit the wall when I got to calculus, but I don't remember anything in math involving delimiters up until then.)

Now that I know where you're coming from, I can see how Havoc's post could be confusing.

Edit: Oh, and "left alignment" versus "right alignment" just means the items in the cells line up along their left sides or right sides, respectively. You see it in text, too.


This
text
is
left
aligned

This
text
is
right
aligned

Sometimes called "left justified" or "right justified", too, especially with text.

thingirl
09-24-2009, 12:30 AM
Math is easy for me. Now, spelling on the other hand... And typing...