New Stuff!!
- GOTO and ANCHOR tags
- ALIGN tag
- BACKGROUND tag
- FONT tag
- SPACER tag
- TABLE tags
GOTO and ANCHOR tags
We now have GOTO and ANCHOR tags. These two work together to allow you to give links to jump around the page.
Code: Select all
[goto=anchor_name]Whatever text here[/goto]
and
[anchor]anchor_name[/anchor]There is an anchor in front of this post
Will give you:
Whatever text here
and
There is an anchor in front of this post
However, the better example is probably the "Table of Contents" list at the top of this post. Each of those "links" are GOTO tags that will jump to the associated anchor, which is at the beginning of each section. I just now learned you cannot include an ampersand within the anchor; it fails to render. I'm not sure what other characters will have that same effect. I can also tell you from experience while playing with the tag that they are case sensitive. If you put "TAG" in your goto and "tag" in your anchor, it won't work. If you click on a goto link and it goes nowhere, that means that the corresponding anchor doesn't exist. Double-check your spelling, capitalization, etc.
At the moment, I don't know if a goto / anchor combo will jump posts or not.
But I'm about to find out, by trying to make this text here jump to the next post.
I figured these were great tags for those who maintain various lists, or for large posts containing things such as multiple monsters or multiple prestige classes.
ALIGN tag
The CENTER tag I created originally still exists, but is now "hidden" from view on the posting screen. I did that so anybody who used it won't end up with broken tags. This is the same as the format we had previously.
Code: Select all
[align=right]This text is right justified[/align]
[align=center]This text is left justified[/align]
[align=left]This text is left justified, though it's also the default so you probably will never use it.[/align]
[align=justify]And finally, this text will be justify aligned, so that the text goes from margin to margin. However, to fully demonstrate it, I need to ramble on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on ....[/align]
Will give you:
This text is right justified
This text is left justified
This text is left justified, though it's also the default so you probably will never use it.
And finally, this text will be justify aligned, so that the text goes from margin to margin. However, to fully demonstrate it, I need to ramble on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on ....
At the moment, existing posts with the ALIGN tag in them will
NOT render correctly when you view them. If the post is yours, you should be able to edit and then submit without changing anything and have the post update. I'll be scheduling a small maintenance window in the very near future where I'll run a backend command to reprocess every post.
BACKGROUND tag
This one changes the background color of text.
Fair Warning: If this gets abused, as determined by fbmf, I will remove it.
Code: Select all
[background=yellow]This text will be highlighted in yellow.[/background]
[background=#9acd32]This text will be highlighted in "yellow-green".[/background]
Gives:
This text will be highlighted in yellow.
and
This text will be highlighted in "yellow-green".
The tag takes a color parameter, which can be entered either by name or hex code. The name must be a valid HTML name for a color. You can find a list of color names and their hex codes
Here among many other places on the web.
FONT tag
This one sets your font. Again,
Fair Warning: abuse, at the sole discretion of our great and mighty fence building overlord, will result in the tag being removed.
Code: Select all
[font=ariel]This line will be in ariel font[/font]
[font=Brush Script MT]This font will be in cursive[/font]
[font=Courier New]And this one is monospace[/font]
Gives:
This line will be in ariel font
This font will be in cursive
And this one is monospace
A list of web-safe fonts can be found
here among many other places on the web.
SPACER tag
This one is similar to the tag we had previously; however, it's now a fixed length - currently set at 5 spaces, though if consensus says a different number is better I can easily change it.
Code: Select all
[spacer]This sentence has 5 spaces at the beginning, making for a nice "indent".
Gives:
This sentence has 5 spaces at the beginning, making for a nice "indent".
Old posts with the spacer tag will not render correctly; when I do the backend mojo mentioned above, these will fix. Any old post that used the optional number (spacer=3 for example) will have that part stripped from the post. As above, you can edit your own post prior to me doing the backend voodoo; if you have the spacer= format, you'll want to remove the "={number}" to get it to render correctly.
TABLE tags
And finally, the tags to make tables. There are four tags: TABLE, TR, TH, and TD. Those are the actual table (duh), a table row, a column header, and a data cell.
A plain, basic table is done as such:
Code: Select all
[table][tr][th]Header 1[/th][th]Header 2[/th][th]Header 3[/th][/tr]
[tr][td]Entry 1[/td][td]Entry 2[/td][td]Entry 3[/td][/tr]
[tr][td]Row 2, Entry 4[/td][td]Entry 5[/td][td]Entry 6[/td][/tr]
[/table]
Gives:
Header 1 | Header 2 | Header 3 |
Entry 1 | Entry 2 | Entry 3 |
Row 2, Entry 4 | Entry 5 | Entry 6 |
The biggest difference is that I needed to add closing tags because of the way custom BbCodes are created in v3 versus v2. I found it easier to use different lines and indents to make sure I had all my tags where they needed to be, like this:
Code: Select all
[table]
[tr]
[th]Header 1[/th]
[th]Header 2[/th]
[th]Header 3[/th]
[/tr]
[tr]
[td]Entry 1[/td]
[td]Entry 2[/td]
[td]Entry 3[/td]
[/tr]
[tr]
[td]Row 2, Entry 4[/td]
[td]Entry 5[/td]
[td]Entry 6[/td]
[/tr]
[/table]
That still renders the same::
Header 1 |
Header 2 |
Header 3 |
Entry 1 |
Entry 2 |
Entry 3 |
Row 2, Entry 4 |
Entry 5 |
Entry 6 |
You should be able to use any tag within a cell to format that text. However, there are some options built into the tags. The TABLE tag itself has no options at the moment, but I'm looking to add a couple that I'll document in another post. The TH tag also has no options. I'm likely to add some options there as well.
The TR tag has two options: COLOR and FCOLOR
COLOR sets the background color for the entire row; FCOLOR sets the font color for the entire row.
Code: Select all
[table]
[tr color=SlateGray fcolor=#F5F5F5]
[th]Header 1[/th]
[th]Header 2[/th]
[th]Header 3[/th]
[/tr]
[tr]
[td]Entry 1[/td]
[td]Entry 2[/td]
[td]Entry 3[/td]
[/tr]
[tr]
[td]Row 2, Entry 4[/td]
[td]Entry 5[/td]
[td]Entry 6[/td]
[/tr]
[/table]
Header 1 |
Header 2 |
Header 3 |
Entry 1 |
Entry 2 |
Entry 3 |
Row 2, Entry 4 |
Entry 5 |
Entry 6 |
The TD tag has the same two options as the TR tag; hopefully it's obvious, however, that for the TD tag it applies only to that specific table cell.
Code: Select all
[table]
[tr color=SlateGray fcolor=#F5F5F5]
[th]Header 1[/th]
[th]Header 2[/th]
[th]Header 3[/th]
[/tr]
[tr]
[td]Entry 1[/td]
[td]Entry 2[/td]
[td]Entry 3[/td]
[/tr]
[tr]
[td color=Turquoise]Row 2, Entry 4[/td]
[td fcolor=RebeccaPurple]Entry 5[/td]
[td fcolor=#FFA500]Entry 6[/td]
[/tr]
[/table]
Header 1 |
Header 2 |
Header 3 |
Entry 1 |
Entry 2 |
Entry 3 |
Row 2, Entry 4 |
Entry 5 |
Entry 6 |
You can use one or both options for both TR and TD, and you can use the color name or the color hex code.
As with the other tags here, previous posts that include tables will not render correctly. I'm 98% certain I have the SQL replace commands all set to cycle through the database and update
MOST of the previous tables to render correctly. There are some that I haven't figured out yet -
Josh's Tome Armor is one example. That one is difficult because Josh took advantage of some of the options in the old tag, such as background colors. I'm hoping the exceptions end up under 50 total; I'm likely to go ahead and try to update them manually after the automated stuff is done. If you have a post with a table, you are certainly free to go ahead and manually update it before I do the automation. If you do, the automation will exclude your post. (Well, technically, it'll exclude it whether you updated the table or not, as I'm specifically ignoring any posts with a "Last Updated Date" that's greater than 11-May-2021, so that I specifically don't fuck up this post or anything anybody else adds or edits. So if you edit a post with a table to do something
other that update the table (or SPACER tag for that matter) just be aware that after I run the updates and re-parse the posts, your post still won't render correctly.
So, I think that's it for now. Any questions about a tag, of course, just ask.