New BBCode (Pardon Our Dust Beta Version)

New BBCode (Pardon Our Dust Beta Version)
#1
New BBCode (Pardon Our Dust Beta Version)
As some folks may know, part of the recent forum overhaul involved adding some shiny new BBCode Formatting Tags and features. They're all coded up for the most part, but we'll be rolling out new features a bit at a time, to make sure they're in good working order. If you want to make use of 'em, keep your eyes on this thread!

NOTE 1: The rich-text editor doesn't currently recognize these tags, and gets confused parsing them (especially when not in Source Mode). If you plan to use them, I'd suggest editing your posts in an external notepad and copypasting them in to preview, since it has a bad habit of eating posts sometimes. At very least, edit in Source Mode by clicking on the page button on the editor (you can also set Source Mode to be default in your user settings). And keep backups as you work, because the editor might eat posts because of this. Also, keep an eye out for the editor auto-replacing tags with tags you don't want. Hoping to get tags fixed in the editor ASAP, but it's a big fix. Bear with it for now, please. It'll get better.

NOTE 2: Apologies for any broken or borked features. Bug will need to be ironed out, old tags may be messed up for a bit, and it's possible that some of these tags may change how they look/work in the next few weeks. I'll do my best not to break anything if they get redesigned extensively. Also, if you have any trouble with these tags, please leave a note here


Expanded Text Styling:

First of all, here are some returning tags, which have been enhanced with handy new features. Also, anything given in all caps is a parameter; for example COLOR is a hex color code or name, while ### represents a number up to 3 digits long. If you have any questions about how these are used, please ask!
  • Overlines: Text can now have overlines drawn using [o]TEXT[/o].
  • Colored Text Lines: Underline, Strike-through, and Overline tags can now have colors, using [u=COLOR], [s=COLOR], or [o=COLOR] respectively. NOTE: These seem to be kinda tempermental, and caused this post to be eaten a few times when editing, so keep backups when using them for now!
  • Color Shorthand: [c=COLOR]TEXT[/c] is a compact alternative to writing color tags for text.
  • Outlining: [outline=COLOR]TEXT[/outline] will draw a 1-pixel outline around text of a given color.

Neutral outlines help Light Text show on light bgs, and Dark Text show on dark bgs!


New Fonts:

We're test-driving a series of new fonts. These might get pared down a bit in time, and others are still to be added. They're applied with [font=NAME]TEXT[/font] as before. The full list of potential new fonts can be found here!

Acme
Audiowide
Caveat Brush
Creepster
Dancing Script
Delius Swash Caps
Electrolize
Flavors
Glass Antiqua
Grand Hotel
Indie Flower


Kelly Slab
Lato
Lobster Two
MedievalSharp
Mina
Monoton
Montserrat Alternates
Mystery Quest
Nanum Pen Script
Nova Square
Open Sans
Oregano


Pacifico
Poiret One
Princess Sofia
Redressed
Righteous
Roboto
Share
Special Elite
Sunshiney
Ubuntu Mono
Unica One
VT323




Enhanced Background Tags:
Usage Reference:Show

Backgrounds have several new features! They now expand to cover all of the content they're placed around, allowing you to put background colors behind images, spoilers, code blocks, and more! In addition, there are new image backgrounds, which allow you to put stretched or tiled images behind your content, to create graphical text elements and such.
  • Classic: [background=COLOR]CONTENT[/background] or [bg=COLOR]CONTENT[/bg] work as before. Both BG and Background should be interchangeable with all new tags too.
  • Image Background: Using [bg=URL]CONTENT[/bg] will apply the image at the URL as a stretched image in the background of the content.
  • Tiling Image: If you want the image to tile in the background, [bg=URL style=tile]CONTENT[/bg] will tile the image background instead of stretching it. You can also use "style=tile-x" and "style=tile-y" to limit image tiling to the X or Y direction only. Other valid styles are "tile-top", "tile-bottom", "tile-left", and "tile-right". These tile parallel to that edge.
  • Resizing Tiles: If you need to resize the tiles, [bg=URL style=tile size=###x###]CONTENT[/bg] allows you to resize the dimensions manually, similar to images.
  • Resizing Border Margins: You can expand the background to be larger than the content it wraps around, using [bg border=###]CONTENT[/bg]. This works for images or color backgrounds, and expands the edge of the background by that many pixels. On the below image, it's used to extend the black background past the edge of the quote.

https://en.wikipedia.org/wiki/Dancing_baby Wrote:The Dancing Baby animation spread quickly on popular web forums, individual web sites, international e-mail, demo videos, commercials, and eventually mainstream television. Awareness of the baby most significantly increased when featured on CBS, CNN, and Fox's Ally McBeal comic drama series. The animation was shown on several episodes of Ally McBeal as a recurring hallucination, suggesting a metaphor for the ticking of Ally's biological clock. On that show, it was curiously accompanied by Blue Swede's cover of the B. J. Thomas song "Hooked on a Feeling." Various commercial advertisements presented the Dancing Baby animation to international markets continuing the mainstream media attention. This particular manifestation of the video, bound to the song, is widely distributed and referred to as the "Ugachaka (or Oogachaka) Baby."


This case used "style=tile-bottom" to tile the fire only along the bottom of the text. Also, the [bg] tag is 2 lines of text tall, so the fire can extend beyond the top of the text.


I lit this text on fire for you. I hope you like it.



Box Tags:
Usage Reference:Show

A new tag for organizing and styling content. By default, it draws a box that shrinks around whatever's inside it, and fits in the same line as other content, making highly customizable containers similar to quote or code boxes.[box]CONTENT[/box] is the simplest form of box tag.

Behold!
I am a normal box!
And I'm some text that's in the same line as the box, but I figure I'll just wrap around to the next line or so when we're done running parallel? Like, I'm lined up with the bottom, not the top of the box, so... this is just where I is, I guess.

Box tags can also be given color and border size parameters, like [box=grey border=2]CONTENT[/box]. NOTE: If you want to make a box invisible, just use the color "transparent"; this is a color value that works on other tags too, if you didn't know!

I'm a pink box that's given a border size of 4 pixels! :O

Normally, boxes shrink to fit their content, but if given a size they will constrain their content to fit within that size instead. Much like images, boxes can be resized by [box width=### height=###]CONTENT[/box] parameters. You can also use size=###x### to define both dimensions at once, or use x=### and y=###.

I am a box that's been told to be 250 pixels wide by 100 pixels tall. When there's too much content like text or big images, I get scrollbars all up in my business, which lets users scan around. Works horizontally or vertically, though only goes horizontal if it's gotta. Images that are too wide, for example.

When giving a box a width=full or size=full parameter, the box is set to be full-width, and stretch to fill whatever content it's inside.

My text is much smaller than full width!

Also note that tags like [url] or [bg] affect all the content inside them, so you can make these apply to the entire box, and all it's contents. It might not seem like much on it's own, but when combined together, this tag can create some fun content wrappers, like this boy right here.

What is Lorem Ipsum? Why should I care? Original Text Quit

> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.


And, for what might be my favorite feature, the box tag can also be given an image to turn into a border for it. This can create textboxes, faux UI elements, buttons, word bubbles, or other graphical text elements. [box=URL]CONTENT[/box] will chop up the image URL you give it into 3x3 equal pieces, and use it to create the edges, corners, and background for a graphical box!

[Image: dNiP06K.png] <-- This is the raw image, which gets chopped up into 3x3 tiles...

...and this is the box that gets drawn using the edges, corners, and background tiles made from it. And if you feel really sassy, you can make it a gif, and it'll be animated.

NOTE: You can still give it a width=###, height=###, and/or border=### like above too, which looks like [box=URL width=### height=### border=###]CONTENT[/box]. Since the border parameter resizes the border thickness of the image, if it's important to match the scale of the raw image as closely as possible, the border=### should be equal to 1/3 of the image size, or the width of one of the 3x3 tiles.


Layout Tags:

Layouts are a powerful new tag for arranging content. Think of them like invisible tables, with rows and columns. They can be used to make grids, stick content that can't normally be side-by-side next to each other, or even make a boring old data table. NOTE: For now, layouts can be at most 5x5 cells. Bigger layouts coming soon.

Like lists, Layouts are built with multiple tags:
  • Layout Tags: The [#x#]CONTENT[/#x#] tags are the outer tags that define a new layout, where # is the number of cells in the layout, horizontal by vertical. Currently handles layouts up to 5x5.
  • New Column: The [|] tag divides cells horizontally, marking a new cell in the column.
  • New Row: The [-] tag divides cells vertically, marking the start of a new row.
  • Fixed Width: Put a pair of [fixed][/fixed] tags outside any layout to make it Fixed Width; all cells will be equal width instead of shrinking to fit content, and are as wide as the page. (NOTE: These will probably be changed, since layouts will hopefully eventually get a width/style parameter. Keep that in mind when using them!).

Example of a 3-by-3 layout:
Code:
[3x3]
Cell 1A [|] Cell 2A [|] Cell 3A
[-]
Cell 1B [|] Cell 2B [|] Cell 3B
[-]
Cell 1C [|] Cell 2C [|] Cell 3C
[/3x3]

Layouts can be used to do all sorts of things, like create textboxes that resize to fit their content...


Hi there. It's me, famous game director Todd Howard. We here at Bethesda Game Studios have heard what you've been saying, and I'm very excited to announce that we are finally porting Skyrim to Eagle Time. Soon, you'll be able to share interactive text and graphics-based adventures featuring all your favorite vikings, lizards, and wizards in a living, breathing message board environment.


...put normally full-width content like quotes and spoilers side-by-side in even-sized [fixed] tables...

My Left Brain Wrote:Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs Dogs
My Right Brain Wrote:Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats Cats


...and whatever else you crazy kids get up to these days. I'm not your boss.


Web Embed Tags:

PLEASE USE RESPONSIBLY!!! This is a test-drive of a new feature; allowing users to embed an external webpage inside a frame in their post. This is intended for use in creating interactive content, minigames, or animations to go with adventures using HTML, to fill the sort of role older content like Flash used to. For now, you'll need an external place to host HTML; if you don't have a server, places like free Github Pages work well too. If it's useful and people are good about it, we may be able to make hosting interactive content like this easier in the future. NOTE: It's equivalent to forcing someone to automatically open a new tab on their browser, so don't abuse it or overdo it!
  • Basic Embedded Webpage: [web=URL] or [web]URL[/web] will create a simple full-width frame to put the linked webpage into your post.
  • Resized Page: Use [web size=###x###]URL[/web], or [web width=### height=###] if you need the content frame to be locked to a specific size. As with images, you can omit either width=### or height=###, and the other will be calculated automatically.

Here's an example, inside a spoiler:Show
Quote
#2
RE: New BBCode (Pardon Our Dust Beta Version)
GOSH THIS IS ALL SO COOL
YOU DID SUCH A GOOD JOB SUNSPIDER!!!
[Image: Cmh4iZA.png] [Image: z8yQvca.png] [Image: REdv8VX.png]
Quote
#3
RE: New BBCode (Pardon Our Dust Beta Version)
I am appreciating the Toddposting
sea had swallowed all. A lazy curtain of dust was wafting out to sea
Quote
#4
RE: New BBCode (Pardon Our Dust Beta Version)
Wow that's, a lot. You did an outstanding job here.

(09-11-2018, 01:59 AM)Sunspider Wrote: »PLEASE USE RESPONSIBLY!!!

SpoilerShow
[Image: 933hfLL.png][Image: aCQpT7Z.png][Image: iRoHjKM.png]
Quote
#5
RE: New BBCode (Pardon Our Dust Beta Version)

AAAAAAAAAAAAAAAAAAAAAAAAA
SpoilerShow

[Image: 8L9RKuo.png] [Image: tnkzT4L.png]
\☆/
Quote
#6
RE: New BBCode (Pardon Our Dust Beta Version)
Wow wow wow WOW WOW WOW! Sunspider, you are awesome! Thank you for all this new stuff!
Sig:
SpoilerShow
Quote