BBCode is short for Bulletin Board Code. It is used as a way for formatting posts made on message boards, blogs and more. It is similar to HTML in the sense that in BBCode one does also use tags to format something specific (contained within the tag). In BBCode tags are indicated by rectangular brackets surrounding a keyword, which is in turn transformed into HTML before being delivered to a web browser.
This guide will cover both the main Grepolis Forums BBCode as well as the BBCode that is available in game.
All BBCode must start with and end with the code parameters ie [b]text[/b]
Incorrect BB Code Usage:
- [url] www.example.com [/url] -don't put spaces between the bracketed code and the text you are applying the code to.
- [email]myname@domain.com[email] the end brackets must include a forward slash. ([/email])
Bold / Italic / UnderlineThe [b], [i] and [u] tags allow you to create text that is bold, italic and underlined.
ColorThe [color] tag allows you to change the color of your text.
Option can be any color name ie red, yellow, white.
SizeThe [size] tag allows you to change the size of your text.
FontThe [font] tag allows you to change the font of your text.
HighlightThe [highlight] tag allows you to emphasize your text.
Left / Right / CenterThe [left], [right] and [center] tags allow you to change the alignment of your text.
this text is left-aligned
this text is center-aligned
this text is right-aligned
IndentThe [indent] tag allows you to indent your text.
Email LinkingThe [email] tag allows you to link to an email address. You can include an optional parameter to 'name' your link.
URL HyperlinkingThe [url] tag allows you to link to other websites and files. You can include an optional parameter to 'name' your link.
Thread LinkingThe [thread] tag allows you to link to threads by specifying the thread id. You can include an optional parameter to 'name' your link.
(Note: The threadid/postid is just an example and may not link to a valid thread/post.)
Post LinkingThe [post] tag allows you to link to posts by specifying the post id. You can include an optional parameter to 'name' your link.
(Note: The threadid/postid is just an example and may not link to a valid thread/post.)
Bulleted ListsThe
[list] 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]value[/list]
Example:
[list][*]list item 1[*]list item 2[/list]
Output:
Advanced ListsThe
[list] 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]
Example:
[list=1][*]list item 1[*]list item 2[/list]
[list=a][*]list item 1[*]list item 2[/list]
Output:
- list item 1
- list item 2
- list item 1
- list item 2
ImagesThe [img] tag allows you to embed images within your posts. You can also combine this tag with the [url] tag to make images become links.
CodeThe [code] tag switches to a fixed-width (monospace) font and preserves all spacing.
Usage:
[code]value[/code]
Example:
[code]
<script type="text/javascript">
<!--
alert("Hello world!");
//-->
</script>
[/code]
Output:
Code:
<script type="text/javascript">
<!--
alert("Hello world!");
//-->
</script>
PHP CodeThe [php] tag performs the same function as the [code] tag, but also adds syntax highlighting for PHP code. Although it is designed for PHP, it may correctly highlight some other C-like languages.
Usage:
[php]value[/php]
Example:
[php]
$myvar = 'Hello World!';
for ($i = 0; $i < 10; $i++)
{
echo $myvar . "\n";
}
[/php]
Output:
PHP Code:
$myvar = 'Hello World!';
for ($i = 0; $i < 10; $i++)
{
echo $myvar . "\n";
}