BB kodas

Explanation

BB code is a set of tags based on the HTML language that you may already be familiar with. They allow you to add formatting to your messages in the same way as HTML does, but have a simpler syntax and will never break the layout of the pages you are viewing. The ability to use BB code is set on a forum-by-forum basis by the administrator, so you should check the forum rules when you post a new message.

Below is a list of the BB code tags you can use to format your messages.

BB kodų sąrašas

  1. Paryškintas / Pasviręs / Pabrauktas
  2. Color
  3. Dydis
  4. Šriftas
  5. Highlight
  6. Left / Right / Center
  7. Indent
  8. Email Linking
  9. URL Hyperlinking
  10. Thread Linking
  11. Post Linking
  12. Bulleted Lists / Advanced Lists
  13. Images
  14. Videos
  15. Kodas
  16. PHP kodas
  17. HTML kodas
  18. Citata
  19. Stop BB Code Parsing
  20. Priedas
  21. Image (right float)
  22. Perbraukti
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])

Paryškintas / Pasviręs / Pabrauktas

The [b], [i] and [u] tags allow you to create text that is bold, italic and underlined.

    • [b]reikšmė[/b]
    • [i]reikšmė[/i]
    • [u]reikšmė[/u]
    Naudojimas
    • [b]this text is bold[/b]
    • [i]this text is italic[/i]
    • [u]this text is underlined[/u]
    Naudojimo pavyzdys
    • this text is bold
    • this text is italic
    • this text is underlined
    Rezultato pavyzdys

Color

The [color] tag allows you to change the color of your text.

  • [color=Pasirinkimas]reikšmė[/color]
    Naudojimas
  • [color=blue]this text is blue[/color]
    Naudojimo pavyzdys
  • this text is blue
    Rezultato pavyzdys

Dydis

The [size] tag allows you to change the size of your text.

  • [size=Pasirinkimas]reikšmė[/size]
    Naudojimas
  • [size=+2]this text is two sizes larger than normal[/size]
    Naudojimo pavyzdys
  • this text is two sizes larger than normal
    Rezultato pavyzdys

Šriftas

The [font] tag allows you to change the font of your text.

  • [font=Pasirinkimas]reikšmė[/font]
    Naudojimas
  • [font=courier]this text is in the courier font[/font]
    Naudojimo pavyzdys
  • this text is in the courier font
    Rezultato pavyzdys

Left / Right / Center

The [left], [right] and [center] tags allow you to change the alignment of your text.

    • [left]reikšmė[/left]
    • [center]reikšmė[/center]
    • [right]reikšmė[/right]
    Naudojimas
    • [left]this text is left-aligned[/left]
    • [center]this text is center-aligned[/center]
    • [right]this text is right-aligned[/right]
    Naudojimo pavyzdys
  • this text is left-aligned
    this text is center-aligned
    this text is right-aligned
    Rezultato pavyzdys

Indent

The [indent] tag allows you to indent your text.

  • [indent]reikšmė[/indent]
    Naudojimas
  • [indent]this text is indented[/indent]
    Naudojimo pavyzdys
  • this text is indented
    Rezultato pavyzdys

Email Linking

The [email] tag allows you to link to an email address. You can include an optional parameter to 'name' your link.

    • [email]reikšmė[/email]
    • [email=Pasirinkimas]reikšmė[/email]
    Naudojimas
    • [email]j.doe@example.com[/email]
    • [email=j.doe@example.com]Click Here to Email Me[/email]
    Naudojimo pavyzdys
  • Rezultato pavyzdys

URL Hyperlinking

The [url] tag allows you to link to other websites and files. You can include an optional parameter to 'name' your link.

    • [url]reikšmė[/url]
    • [url=Pasirinkimas]reikšmė[/url]
    Naudojimas
    • [url]http://forum.travian.lt[/url]
    • [url=http://forum.travian.lt]Žaidimo "Travian" forumas[/url]
    Naudojimo pavyzdys
  • Rezultato pavyzdys

Thread Linking

The [thread] tag allows you to link to threads by specifying the thread id. You can include an optional parameter to 'name' your link.

    • [thread]threadid[/thread]
    • [thread=threadid]reikšmė[/thread]
    Naudojimas
    • [thread]42918[/thread]
    • [thread=42918]Click Me![/thread]
    (Note: The threadid/postid is just an example and may not link to a valid thread/post.)
    Naudojimo pavyzdys
  • Rezultato pavyzdys

Post Linking

The [post] tag allows you to link to posts by specifying the post id. You can include an optional parameter to 'name' your link.

Bulleted Lists

The [list] tag allows you to create simple, bulleted lists without specifying an option. Within the value portion, each bullet is denoted by the [*] tag.

  • [list]reikšmė[/list]
    Naudojimas
  • [list]
    [*]list item 1
    [*]list item 2
    [/list]
    Naudojimo pavyzdys
    • list item 1
    • list item 2
    Rezultato pavyzdys

Advanced Lists

The [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).

  • [list=Pasirinkimas]reikšmė[/list]
    Naudojimas
  • [list=1]
    [*]list item 1
    [*]list item 2
    [/list]

    [list=A]
    [*]list item 1
    [*]list item 2
    [/list]

    [list=a]
    [*]list item 1
    [*]list item 2
    [/list]
    Naudojimo pavyzdys
    1. list item 1
    2. list item 2
    1. list item 1
    2. list item 2
    1. list item 1
    2. list item 2
    Rezultato pavyzdys

Images

The [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.

  • [img]reikšmė[/img]
    Naudojimas
    • [img]http://forum.travian.lt/images/travianvb4/statusicon/forum_new-48.png[/img] (Not linked)
    • [url=http://www.example.com] [img]http://forum.travian.lt/images/travianvb4/statusicon/forum_new-48.png[/img] [/url] (Linked)
    Naudojimo pavyzdys
    • (Not linked)
    • (Linked)
    Rezultato pavyzdys

Videos

The [video] tag allows you to embed videos from various video services within your posts.

  • [video]reikšmė[/video]
    Naudojimas
    • [video=youtube;eOUq4Z6R7xI]http://www.youtube.com/watch?v=eOUq4Z6R7xI[/video]
    Naudojimo pavyzdys
    Rezultato pavyzdys

Kodas

The [code] tag switches to a fixed-width (monospace) font and preserves all spacing.

  • [code]reikšmė[/code]
    Naudojimas
  • [code]
    <script type="text/javascript">
    <!--
        alert("Hello world!");
    //-->
    </script>
    [/code]
    Naudojimo pavyzdys
  • Kodas:
    <****** type="text/java******">
    <!--
    	alert("Hello world!");
    //-->
    </******>
    Rezultato pavyzdys

PHP kodas

The [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.

  • [php]reikšmė[/php]
    Naudojimas
  • [php]
    $myvar = 'Hello World!';
    for ($i = 0; \$i < 10; \$i++)
    {
        echo $myvar . "\n";
    }
    [/php]
    Naudojimo pavyzdys
  • PHP kodas:
    $myvar 'Hello World!';
    for (
    $i 0$i 10$i++)
    {
        echo 
    $myvar "\n";

    Rezultato pavyzdys

HTML kodas

The [html] tag allows you to perform syntax highlighting for HTML code.

  • [html]reikšmė[/html]
    Naudojimas
  • [html]
    <img src="image.gif" alt="image" />
    <a href="testing.html" target="_blank">Testing</a>
    [/html]
    Naudojimo pavyzdys
  • HTML kodas:
    <img src="image.gif" alt="image" />
    <a href="testing.html" target="_blank">Testing</a>
    Rezultato pavyzdys

Citata

The [quote] tag allows you to attribute text to someone else.

    • [quote]Citata[/quote]
    • [quote=Prisijungimo vardas]reikšmė[/quote]
    Naudojimas
    • [quote]Lorem ipsum dolor sit amet[/quote]
    • [quote=John Doe]Lorem ipsum dolor sit amet[/quote]
    • [quote=John Doe;1070723]Lorem ipsum dolor sit amet[/quote]
    Naudojimo pavyzdys
    • Lorem ipsum dolor sit amet
    • Citata John Doe rašė
      Lorem ipsum dolor sit amet
    • Citata John Doe rašė Peržiūrėti žinutę
      Lorem ipsum dolor sit amet
    Rezultato pavyzdys

Highlight

The [highlight] tag allows you to emphasize your text.

  • Naudojimas
    [highlight]reikšmė[/highlight]
  • Naudojimo pavyzdys
    [highlight]this text is highlighted[/highlight]
  • Rezultato pavyzdys
    this text is highlighted

Stop BB Code Parsing

The [noparse] tag allows you to stop the parsing of BB code.

  • [noparse][b]reikšmė[/b][/noparse]
    Naudojimas
  • [noparse][b]Lorem ipsum dolor sit amet[/b][/noparse]
    Naudojimo pavyzdys
  • [b]Lorem ipsum dolor sit amet[/b]
    Rezultato pavyzdys

Priedas

The [attach] tag allows you to display an attachment in your post rather than at the bottom. It will only display attachments that belong to the post in which it is utilized.

  • [attach]attachmentid[/attach]
    Naudojimas
  • [attach]12345[/attach]
    Naudojimo pavyzdys
  • Rezultato pavyzdys

Image (right float)

Floats an image to the right.

  • [imgr]reikšmė[/imgr]
    Naudojimas
  • [imgr]http://forum.travian.lt/images/travianvb4/statusicon/travianlogo.png[/imgr]
    Naudojimo pavyzdys
  • Rezultato pavyzdys

Perbraukti

  • [s]reikšmė[/s]
    Naudojimas
  • [s]Perbrauktas tekstas[/s]
    Naudojimo pavyzdys
  • Perbrauktas tekstas
    Rezultato pavyzdys