The BBCode Topic (Updated 1/21/09)

The BBCode Topic

Why are you in here? Did someone link you to this topic or did it just catch your eye and you felt like checking it out for some reason? Well, whatever reason it may be, welcome to the BBCode Topic! I s'pose the main purpose of this topic is to help new members out when it comes to bbcodes. It's also there to draw attention and encourage members to use cool new bbcodes such as imgzoom, thumb and a few others. For the bbcodes listed, I will provide examples on how to use it and how they're used.

Basics. (Bold, Italics, Underline and Strikethrough) Spoiler
Bold
To use, wrap the bold bbcode ([b[background=#222222][/background]][/b]) around the desired portion of the text to create bold text.
Usage: [b[background=#222222][/background]]Value[/b]
Example Usage: [b[background=#222222][/background]]This text is bold.[/b]
Example Output: This text is bold.
________________________________________

Italics
To use, wrap the italics bbcode ([i[background=#222222][/background]][/i]) around the desired portion of the text to create italicized text.
Usage: [i[background=#222222][/background]]Value[/i]
Example Usage: [i[background=#222222][/background]]This text is italic.[/i]
Example Output: This text is italic.
________________________________________

Underline
To use, wrap the underline bbcode ([u[background=#222222][/background]][/u]) around the desired portion of the text to create underlined text.
Usage: [u[background=#222222][/background]]Value[/u]
Example Usage: [u[background=#222222][/background]]This text is underlined.[/u]
Example Output: This text is underlined.
________________________________________

Strikethrough
To use, wrap the strikethrough bbcode ([s[background=#222222][/background]][/s]) around the desired portion of the text to create strikethrough text. (It's supposed to be a line going across the text.)
Usage: [s[background=#222222][/background]]Value[/s]
Example Usage: [s[background=#222222][/background]]This text is wrapped in strikethrough bbcode.[/s]
Example Output: This text is wrapped in strikethrough bbcode.

Color Spoiler
Color
The [color] tag allows you to change the color of your text. To use, specify a recognized color name (blue, red, yellow, green for example) or the hexadecimal triplet alternative (#ff0000, #ffff00, #00ff00, #0000ff for example).
Usage: [color=Option]Value[/color]
Example Usage: [color=blue[background=#222222][/background]]This text is blue.[/color]
Example Usage (2): [color=#0000ff[background=#222222][/background]]This text is blue.[/color]
Example Output: This text is blue.

Background Spoiler
Background Color
The background tag allows you to highlight your text. Like color, specify a recognized color name (e.g.: red) or a hexadecimal triplet alternative (e.g.: #ff0000).
Usage: [background=[background=#222222][/background]Option]Value[/background]
Example Usage: [background=#660000[background=#222222][/background]]This text is highlighted in a dark red color.[/background]
Example Output: [background=#660000]This text is highlighted in a dark red color.[/background]

Size Spoiler
Size
The [size] tag allows you to change the size of your text. The way it works here is something you'll have to get used to. The numerical value represents the text size in percent. (Example: 100 is normal text size, 200 is 2 times the normal text size, 50 is half of the normal text size)
Usage: [size=Option]Value[/size]
Example Usage: [size=50[background=#222222][/background]]This text is smaller than normal text size by 50 percent.[/size]
Example Output: This text is smaller than normal text size by 50 percent.

Font Spoiler
Font
The [font] tag allows you to change the font of your text.
Usage: [font=Option]Value[/font]
Example Usage: [font=Courier[background=#222222][/background]]This text is in courier font.[/font]
Example Output: This text is in courier font.

Alignment-related BBCodes (Center, Right, Justify) Spoiler
Center
The [center[background=#222222][/background]][/center] tag allows you to center your text.
Usage: [center[background=#222222][/background]]Value[/center]
Example Usage: [center[background=#222222][/background]]This text is centered.[/center]
Example Output:
This text is centered.

________________________________________

Right
The [right[background=#222222][/background]][/right] tag allows you to align your text to the right.
Usage: [right[background=#222222][/background]]Value[/right]
Example Usage: [right[background=#222222][/background]]This text is aligned to the right.[/right]
Example Output:
This text is aligned to the right.

________________________________________

Justification
The [justify[background=#222222][/background]][/justify] tag allows you to justify your text. To quote Wikipedia, "Justification is the typographic alignment setting of text or images within a column or "measure" to align along both the left and right margin."
Usage: [justify[background=#222222][/background]]Value[/justify]
Example Usage: [justify[background=#222222][/background]]This text is being justified. Extra spaces are between these words. Oh no![/justify]
Example Output:
This text is being justified. Extra spaces are between these words. Oh no!

URL and Email Linking (URL, Email) Spoiler
URL Linking
The [url[background=#222222][/background]] tag allows you to link to other websites and files. You can include an optional parameter to 'name' your link.
Usage: [url[background=#222222][/background]]Value[/url] or [url=Option]Value[/url]
Example Usage: [url[background=#222222][/background]]http://rmxp.org[/url] or [url=http://rmxp.org[background=#222222][/background]]RMXP.ORG RPG Maker Forums[/url]
Example Output: http://rmxp.org or RMXP.ORG RPG Maker Forums
________________________________________

Email Linking
The [email]tag allows you to link to an email address. You can include an optional parameter to 'name' your link.
Usage: [email[background=#222222][/background]]Value[/email] or [email=Option]Value[/email]
Example Usage: [email=[background=#222222][/background]][email hidden][/email] or [email=[email hidden][background=#222222][/background]]Click here to email an admin.[/email]
Example Output: [email hidden] or Click here to email an admin.

Lists-related BBCodes (List, List= and *) Spoiler
Bulleted Lists
The [list[background=#222222][/background]] tag allows you to create simple, bulleted lists without specifying an option. Within the value portion, each bullet is denoted by the [*] tag.
Usage: [list[background=#222222][/background]]Value[/list]
Example Usage: [list[background=#222222][/background]][*]List Item 1[*]List Item 2[/list]
Example Output:
  • List Item 1
  • List Item 2
________________________________________

Advanced Lists
The [list[background=#222222][/background]] tag allows you to create advanced lists by specifying an option. The option should have a value of 1 (for a numbered list) or A (for an alphabetic with capital letters list) or a (for an alphabetic with lowercase letters list) or I (for a numbered with capital Roman numeral list) or i (for a numbered with small Roman numeral list).
Usage: [list=Option]Value[/list]

Image-related BBCodes (IMG, IMGZoom, Thumb) Spoiler
Images
The [img[background=#222222][/background]] tag allows you to embed images within your posts. You can also combine this tag with the [url[background=#222222][/background]] tag to make images become links.
Usage: [img[background=#222222][/background]]Value[/img]
Example Usage (image only): [img[background=#222222][/background]]http://rmxp.org/forums/images/smilies/FappingEmoteAnim.gif[/img]
Example Usage (image + link): [url=http://rmxp.org/forums/memberlist.php?mode=viewprofile&u=848[background=#222222][/background]][img[background=#222222][/background]]http://rmxp.org/forums/images/smilies/FappingEmoteAnim.gif[/img][/url]
Example Output (image only): Image
Example Output (image + link): Image
________________________________________

Thumbnail
The [thumb[background=#222222][/background]] tag shrinks embedded images. Clicking on an image wrapped in a tag like this opens a pop-up window showing it's full size.
Usage: [thumb[background=#222222][/background]]Value[/thumb]
Example Usage: [thumb[background=#222222][/background]]http://rmxp.org/forums/styles/aqua/imageset/logo.gif[/thumb]
Example Output:
________________________________________

IMGZoom
The BBCode for an aspiring pixel artist, please use these whenever you want critique on a sprite. [imgzoom[background=#222222][/background]] allows images to be blown up in 1x, 2x, 4x or 8x it's size.
Usage: [imgzoom[background=#222222][/background]]Value[/imgzoom]
Example Usage: [imgzoom[background=#222222][/background]]http://rmxp.org/forums/images/smilies/BoxingEmoteAnim.gif[/imgzoom]
Example Output:

Code BBCode (without syntax highlighting) Spoiler
Code
The [code[background=#222222][/background]] tag switches to a fixed-width (monospace) font and preserves all spacing.
Usage: [code[background=#222222][/background]]Value[/code]
Example Usage: [code[background=#222222][/background]]echo "This is some code <br />";[/code]
Example Output:
  1. echo "This is some code <br />";
Expand to see the code.

NEW!
Code BBcode (with syntax highlighting) Spoiler
Code with Syntax Highlighting
The [code[background=#222222][/background]] tag switches to a fixed-width (monospace) font and preserves all spacing. Including an option parameter to the code bbcode (must be a supported programming language) enables it to highlight syntax from your code. Also note, this new bbcode supports over 70 different programming languages!
Note: Anyone who's a scripter, please make use of [code[background=#222222][/background]=rgss][/code] bbcode.

Content Hidden Spoiler
Usage: [code[background=#222222][/background]=Option]Value[/code]
Example Usage:
  1. [code[background=#222222][/background]=rgss]
  2. #==============================================================================
  3. # ** Main
  4. #------------------------------------------------------------------------------
  5. #   After defining each class, actual processing begins here.
  6. #==============================================================================
  7.  
  8. begin
  9.   # Prepare for transition
  10.   Graphics.freeze
  11.   # Make scene object (title screen)
  12.   $scene = Scene_Title.new
  13.   # Call main method as long as $scene is effective
  14.   while $scene != nil
  15.      $scene.main
  16.   end
  17.   # Fade out
  18.   Graphics.transition(20)
  19. rescue Errno::ENOENT
  20.   # Supplement Errno::ENOENT exception
  21.   # If unable to open file, display message and end
  22.   filename = $!.message.sub("No such file or directory - ", "")
  23.   print("Unable to find file #{filename}.")
  24. end[[background=#222222][/background]/code]
  25.  
Expand to see the code.


Example Output:
  1. #==============================================================================
  2. # ** Main
  3. #------------------------------------------------------------------------------
  4. #   After defining each class, actual processing begins here.
  5. #==============================================================================
  6.  
  7. begin
  8.   # Prepare for transition
  9.   Graphics.freeze
  10.   # Make scene object (title screen)
  11.   $scene = Scene_Title.new
  12.   # Call main method as long as $scene is effective
  13.   while $scene != nil
  14.      $scene.main
  15.   end
  16.   # Fade out
  17.   Graphics.transition(20)
  18. rescue Errno::ENOENT
  19.   # Supplement Errno::ENOENT exception
  20.   # If unable to open file, display message and end
  21.   filename = $!.message.sub("No such file or directory - ", "")
  22.   print("Unable to find file #{filename}.")
  23. end  
Expand to see the code.


As mentioned earlier, this bbcode supports over 70 different programming languages. Find out which languages are supported by clicking the spoiler below.
Content Hidden Spoiler
  1. ABAP
  2. ActionScript
  3. Ada
  4. Apache Configuration Type apache in the option parameter of code.
  5. AppleScript
  6. ASM
  7. ASP
  8. Autoit
  9. Bash
  10. Blitzbasic
  11. bnf
  12. C
  13. C for Macs Type c_mac in the option parameter of code.
  14. CAD DCL Type caddcl in the option parameter of code.
  15. CAD Lisp Type cadlisp in the option parameter of code.
  16. CFDG
  17. ColdFusion Type cfm in the option parameter of code.
  18. C++ Type cpp in the option parameter of code.
  19. C# Type csharp in the option parameter of code.
  20. CSS
  21. D
  22. Delphi
  23. DIV
  24. DOS
  25. DOT
  26. Eiffel
  27. Fortran
  28. FreeBasic
  29. Genero
  30. GML
  31. Groovy
  32. Haskell
  33. HTML
  34. IDL
  35. INI
  36. Inno
  37. IO
  38. Java
  39. Java(TM) 2 Platform Standard Edition 5.0 Type java5 in the option parameter of code.
  40. JavaScript
  41. LaTeX
  42. Lisp
  43. Lua
  44. Motorola 68000k Assembler Type m68k in the option parameter of code.
  45. Matlab M Type matlab in the option parameter of code.
  46. mIRC Scripting Type mIRC in the option parameter of code.
  47. Microchip Assembler Type mpasm in the option parameter of code.
  48. MySQL
  49. NSIS
  50. Objective-C Type objc in the option parameter of code.
  51. OCaml
  52. Pascal
  53. Per
  54. Perl
  55. PHP
  56. PL/SQL Type plsql in the option parameter of code.
  57. Python
  58. QuickBasic Type qbasic in the option parameter of code.
  59. Ruby on Rails Type rails in the option parameter of code.
  60. Robots.txt Type robots in the option parameter of code.
  61. Ruby Alternatively, you can type rgss in the option parameter of code.
  62. SAS
  63. Scheme
  64. sdlBasic
  65. SmallTalk
  66. Smarty
  67. SQL
  68. TCL
  69. Teraterm
  70. Text
  71. thinBasic
  72. T-SQL Type tsql in the option parameter of code.
  73. Visual Basic Type vb in the option parameter of code.
  74. VB.net Type vbnet in the option parameter of code.
  75. VHDL
  76. Visual Fox Pro Type visualfoxpro in the option parameter of code.
  77. Winbatch
  78. XML
  79. X++ Type xpp in the option parameter of code.
  80. ZiLOG Z80 Assembler Type z80 in the option parameter of code.

Quote BBCode (Quote and Quote=) Spoiler
Quote
The quote tag allows you to attribute text to someone else.
Usage: [quote[background=#222222][/background]]Value[/quote]
Usage 2: [quote=[background=#222222][/background]"Option"]Value[/quote]
Example Usage: [quote[background=#222222][/background]] :fap: [/quote]
Example Usage 2: [quote=[background=#222222][/background]"You"] :fap: [/quote] (Quotation marks are not optional.)
Example Output:
Quote:
:fap:

Example Output 2:
You wrote:
:fap:

Spoiler (Spoiler and Spoiler=) Spoiler
Spoiler
Hides a section of text in a collapsible box.
Usage: [spoiler[background=#222222][/background]]Value[[background=#222222][/background]/spoiler]
Example Usage: [spoiler[background=#222222][/background]]You looked![[background=#222222][/background]/spoiler]
Example Output:
Content Hidden Spoiler
You looked!


To give your spoiler a name, use [spoiler=[background=#222222][/background]Option][[background=#222222][/background]/spoiler].
Also note that the same kind of spoiler cannot be nested. For example, a titled spoiler cannot be nested into a titled spoiler, however, an untitled spoiler can be nested into a titled spoiler and vice versa. Also, you can't nest a spoiler into a nested spoiler.

Youtube Spoiler
Youtube
The [youtube[background=#222222][/background]] tag allows you to embed a youtube video onto a post. To use it, wrap the youtube tag around the youtube video url.
Usage: [youtube[background=#222222][/background]]Value[/youtube]
Example Usage: [youtube[background=#222222][/background]]http://www.youtube.com/watch?v=xifmDDU8HDM[/youtube]
Example Usage:
Punk, nice!

Soph did one of these in the Global Rules thread. (Listed in the announcements on every forum).
I had suggested making the BBcode guide it's own thread. Just so people would notice it's there.
(we know no one reads the rules. :scruff: )

Although I know a few things have changed with the new server. (e.g. font size)
maybe you 2 could collaborate & get it updated.

Thanks for the effort

Be Well
Thanks, Brew. :D

Update: Code BBCode with Syntax Highlighting has it's own spoiler. Also, in case you didn't know, the Code BBCode has been revamped.
I have a question
What is the BBCode for stopping BBCode from parsing?

Edit:
To The Mods: Sorry for necroposting, I just need it.
You can either check off [ ] Disable BBCode from the area below the text field (note: not on quick reply), or you can use [ code=rgss]. (no space) This will put it in a spoiler box though.
or you can just show it with spaces to break it up.

  1. [b]whatever[/b]
Expand to see the code.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=60903