Thread: BBCode Updates!
View Single Post
Coda Coda is offline
Developer
Default BBCode Updates!   #1  
We've got new bbcode! Some of them you may have seen. Others aren't so obvious.

First we have something that will let me write this post: the new [nobb] tag! It's easy to use: just put [nobb] and [/nobb] around the block of text you don't want bbcode to affect.

Next we have long-awaited [imgl] and [imgr] tags, which will float an image to the left or right and wrap the text around it.

Next we have [h], for "heading". This provides a preformatted heading. Usage is simple; you use [h=s1]Section 1[/h] to define a heading with the name "s1" that says "Section 1" on the screen. It on its own isn't particularly useful, until...

... the [to] bbcode! You can use [to=s1]Section 1[/to] to create a link that jumps to one of the headings on the current page! The heading can be in the same post or a different post as long as it's on the same screen.

And if you don't like the formatting of the [h] tag, you can make your own using the [section] tag: [section=s1]Section 1[/section] will create the same section as the [h] tag described above, except it won't apply any special formatting, so you can style it however you want.

We've also got a new [table] bbcode. It works sort of like the one from MediaWiki (e.g. Wikipedia); you use | to separate cells and |- to separate rows. This one's still a work in progress -- there isn't any styling on it yet so it kinda looks ugly -- but it works.

I don't remember if [hr] was around before or not, but here's some official documentation -- [hr]100[/hr] will add a horizontal line that spans across the post. Numbers less than 100 will center a smaller line.

We've got [comment] now, which just hides the contents. Mostly useful for leaving notes to yourself if you're going to edit a post later.

We've got [spacing] now to control line spacing! But don't overdo it please. Try to stay between [spacing=80%] and [spacing=200%].

And finally, you might have noticed the [wiki] tag in the post editor. It doesn't work yet, so don't mess with it. ;) We're trying to put together the Trisphee Storybook in a format that's easier to read than forum threads, and when that's done the [wiki] tag will be used to create links to those pages.

So now, my apologies for the wall of text, but there's a lot of new stuff for you!
Old Posted 01-10-2012, 04:38 PM