Argonath RPG - A World of its own

Argonath RPG Community => Hardware/Software support => Resolved issues => Topic started by: Mandam on August 18, 2012, 04:27:21 am

Title: How to use [td] and [table] and that
Post by: Mandam on August 18, 2012, 04:27:21 am
i been trying to figure out How do u use [  td ] and [ table ] and that, is there anyone who can help me?

Title: Re: How to use [td] and [table] and that
Post by: Reece on August 18, 2012, 12:02:14 pm
This isa4 column table
This isa4 column table
This isa4 column table
This isa4 column table

[table] to start the table then use a [tr] to make a row, then use a [td] for each field you want, closing it with [/td]

Code: [Select]
[table][tr][td]This[/td][td] is[/td] [td]a[/td] [td]4 column table[/td][/tr]
[tr][td]This[/td][td] is[/td] [td]a[/td] [td]4 column table[/td][/tr]
[tr][td]This[/td][td] is[/td] [td]a[/td] [td]4 column table[/td][/tr]
[tr][td]This[/td][td] is[/td] [td]a[/td] [td]4 column table[/td][/tr][/table]
Title: Re: How to use [td] and [table] and that
Post by: Mandam on August 18, 2012, 05:53:50 pm
This isa4 column table
This isa4 column table
This isa4 column table
This isa4 column table

[table] to start the table then use a [tr] to make a row, then use a [td] for each field you want, closing it with [/td]

Code: [Select]
[table][tr][td]This[/td][td] is[/td] [td]a[/td] [td]4 column table[/td][/tr]
[tr][td]This[/td][td] is[/td] [td]a[/td] [td]4 column table[/td][/tr]
[tr][td]This[/td][td] is[/td] [td]a[/td] [td]4 column table[/td][/tr]
[tr][td]This[/td][td] is[/td] [td]a[/td] [td]4 column table[/td][/tr][/table]

Confusing :/
Title: Re: How to use [td] and [table] and that
Post by: b2311e on August 18, 2012, 09:05:26 pm
It's exactly the same as HTML, except HTML uses <table > and BB uses [table ]

You start with the [table ] tag. You don't close this, until you've finished writing all of your table's code.

The next step is a row. This is the [tr ] tag. This is the first row of your table.

Inside this row, you use the [td ] tag to create a cell. You must close your TDs individually, and before you use the [/tr ] tag.

When you're finished, you use the [/table ] tag and it's done!
Note, I put spaces in my tags so you could see them, but the forum not try to automatically use them.

Using this code:

Code: [Select]
[table]
[tr]
[td]Column 1   [/td]
[td]Column 2   [/td]
[td]Column 3   [/td]
[/tr]
[tr]
[td]Column 1, Row 2   [/td]
[td]Column 2, Row 2   [/td]
[td]Column 3, Row 2   [/td]
[/tr]
[/table]

Would give me a table looking like this:

Column 1Column 2Column 3
Column 1, Row 2Column 2, Row 2Column 3, Row 2
Title: Re: How to use [td] and [table] and that
Post by: Hamza. on August 18, 2012, 11:12:39 pm
I'm also always confused with this :D
Title: Re: How to use [td] and [table] and that
Post by: Woka on August 19, 2012, 07:11:41 pm
I'm also always confused with this
Title: Re: How to use [td] and [table] and that
Post by: Hamza. on August 19, 2012, 08:16:55 pm

Haha. Looking like we are up for classes of this :D
Title: Re: How to use [td] and [table] and that
Post by: Teddy on August 20, 2012, 05:48:37 am
It's exactly the same as HTML, except HTML uses <table > and BB uses [table ]

Chances are, if this is confusing to them then they don't know and/or understand HTML.

Here is a BBCode Table Generator (http://www.teamopolis.com/tools/bbcode-table-generator.aspx)
Here is a reference of [tables]  (http://www.bbcode.org/examples/?id=14)

In a quick explination:

The table tag is just that, will tell the forum to process whats inside of it as a table.

The 'TR', meaning table row, is a row. This tells the forum to do just that, make a new row.

The 'TD' tag, meaning table data. This is the actual data/text to be outputed in the row provided.

Green, the table is as listed above the tag to tell SMF we're making a table.
Our first teal block, is a table row. We will use this as our header. We will use 2 red table data tags, or td to fill our data; In my example it is Age, and Name.
Our next teal block, also a table row contains 2 table data tags, this is our table information data, Its 19 for age, and Teddy for name.
Our last teal block table row is another information data for the table, it has 11 for the age, and Reece for the name.

[table]
    [tr]
        [td][b]Age[/b][/td]
        [td][b]Name[/b][/td]
    [/tr]
    [tr]
        [td]19[/td]
        [td]Teddy[/td]
    [/tr]
    [tr]
        [td]11[/td]
        [td]Reece[/td]
    [/tr]
[/table]

All of which, will produce this:
AgeName
19Teddy
11Reece

Plain Code:
Code: [Select]
[table]
[tr]
[td][b]Age[/b][/td]
[td][b]Name[/b][/td]
[/tr]
[tr]
[td]19[/td]
[td]Teddy[/td]
[/tr]
[tr]
[td]11[/td]
[td]Reece[/td]
[/tr]
[/table]
Title: Re: How to use [td] and [table] and that
Post by: Reece on August 20, 2012, 06:44:14 pm
AgeName
19Teddy
11Reece

A big middle finger to you sir.
SimplePortal 2.3.7 © 2008-2025, SimplePortal