Jump to content

BB codes - tables


Trifletraxor

Recommended Posts

For those who didn't know it allready:

Tables: Tables can be made with the BB Code [noparse][table][/table][/noparse], . Use the | mark to separate columns, and lineshift to separate rows.

This piece of code for example:

[noparse][table]weapon|SR|damage|base%|AP

broadsword|2|1d8+1|10%|10

knife|3|1d3+1|15%|4[/table][/noparse]

...will create this table:

[table]weapon|SR|damage|base%|AP

broadsword|2|1d8+1|10%|10

knife|3|1d3+1|15%|4[/table]

Options for the table can be added to the first piece of the table code:

[table=width=100%] will create a table with a width of 100% (however, due to a bug in the table code, tables with a set width % with must be edited in the advanced edit mode to stay at that width).

[table=head] will make the first row into a head for the table.

[table=autonum=1] will add a first column containing numbers.

Several table options may be combined within the apostrophes, separated by semicolons: [table=width=100%;head;autonum=1], which would have the following effect on the table above:

[table=width=100%;head;autonum=1]weapon|SR|damage|base%|AP

broadsword|2|1d8+1|10%|10

knife|3|1d3+1|15%|4[/table]

(Disabling BB Code: Encasing the codes in [noparse][noparse][/noparse][/noparse] will allow you to show the BB Codes without setting off their effects.)

Ef plest master, this mighty fine grub!
b1.gif 116/420. High Priest.

Link to comment
Share on other sites

Thanks,

Very useful.

This post is however likely to get lost and buried before long. Maybe a subforum on board help and tips like this where things like this and the dice roller can be stickied so they can be found easily would be in order?

Help kill a Trollkin here.

Link to comment
Share on other sites

[table=head]

Character|SR |Current Action

Rurik| 3 |Screwin around with tables

Trollkin| 4 |Screwin around with Rurik

[/Table]

Doh. Did something wrong. I had more columns than that.

[table=head]Character|SR |Current Action

Rurik| 3 |Screwin around with tables

Trollkin| 4 |Screwin around with Rurik[/Table]

OK. Figured it out. In the first one I put the table header and footer on their own lines, like this:

[noparse]

[table=head]

Character|SR |Current Action

Rurik| 3 |Screwin around with tables

Trollkin| 4 |Screwin around with Rurik

[/Table]

BB doesn't like that. In the second (good table) I put the columns on the same line as the table tag:

[table=head]Character|SR |Current Action

Rurik| 3 |Screwin around with tables

Trollkin| 4 |Screwin around with Rurik[/Table]

[/noparse]

There, and I even got to use [noparse][noparse][/noparse][/noparse]. Do I get extra credit? :)

Help kill a Trollkin here.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...