wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > FAQ and Rules
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



vB Code
vB 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 vB 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 vB Codes you can use to format your messages.
vB Code List
[b], [i], [u] Bold / Italic / Underline
[color] Color
[size] Size
[font] Font
[highlight] Highlight
[left], [right], [center] Left / Right / Center
[indent] Indent
[email] Email Linking
[url] URL Hyperlinking
[thread] Thread Linking
[post] Post Linking
[list] Bulleted Lists / Advanced Lists
[img] Images
[code] Code
[php] PHP Code
[html] HTML Code
[quote] Quote
[noparse] Stop vB Code Parsing
[attach] Attachment
[button] button
[edit] Edit
[edit] Edit (With title)
[fact] Citation needed
[goto] goto
[hidden] hidden
[hidden] hidden=
[hiddenjass] jass (hidden)
[hiddenjass] jass (hidden, with title)
[hiddenzinc] Zinc (hidden)
[imgflip] ImgFlip
[jass] JASS
[jass] JASS (with title)
[label] Label
[ljass] Inline jass
[lzinc] Inline Zinc
[monospace] Monospace font
[s] Strike through
[stable] Silent Table
[table] Table
[table] Table (with title)
[thumbnail] Thumbnail Generator
[trigger] Trigger
[trigger] Trigger (with title)
[zinc] Zinc
Incorrect vB Code Usage:
  • [url] www.vbulletin.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 / Underline
The [b], [i] and [u] tags allow you to create text that is bold, italic and underlined.
Usage [b]value[/b]
[i]value[/i]
[u]value[/u]
Example Usage [b]this text is bold[/b]
[i]this text is italic[/i]
[u]this text is underlined[/u]
Example Output this text is bold
this text is italic
this text is underlined

Color
The [color] tag allows you to change the color of your text.
Usage [color=Option]value[/color]
Example Usage [color=blue]this text is blue[/color]
Example Output this text is blue

Size
The [size] tag allows you to change the size of your text.
Usage [size=Option]value[/size]
Example Usage [size=+2]this text is two sizes larger than normal[/size]
Example Output this text is two sizes larger than normal

Font
The [font] tag allows you to change the font of your text.
Usage [font=Option]value[/font]
Example Usage [font=courier]this text is in the courier font[/font]
Example Output this text is in the courier font

Highlight
The [highlight] tag allows you to emphasize your text.
Usage [highlight]value[/highlight]
Example Usage [highlight]this text is highlighted[/highlight]
Example Output this text is highlighted

Left / Right / Center
The [left], [right] and [center] tags allow you to change the alignment of your text.
Usage [left]value[/left]
[center]value[/center]
[right]value[/right]
Example Usage [left]this text is left-aligned[/left]
[center]this text is center-aligned[/center]
[right]this text is right-aligned[/right]
Example Output
this text is left-aligned
this text is center-aligned
this text is right-aligned

Indent
The [indent] tag allows you to indent your text.
Usage [indent]value[/indent]
Example Usage [indent]this text is indented[/indent]
Example Output
this text is indented

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]value[/email]
[email=Option]value[/email]
Example Usage [email]myname@domain.com[/email]
[email=myname@domain.com]Click Here to Email Me[/email]
Example Output myname@domain.com
Click Here to Email Me

URL Hyperlinking
The [url] tag allows you to link to other websites and files. You can include an optional parameter to 'name' your link.
Usage [url]value[/url]
[url=Option]value[/url]
Example Usage [url]http://www.wc3c.net[/url]
[url=http://www.wc3c.net]Wc3C.net[/url]
Example Output http://www.wc3c.net
Wc3C.net

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.
Usage [thread]threadid[/thread]
[thread=threadid]value[/thread]
Example Usage [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.)
Example Output http://www.wc3c.net/showthread.php?t=42918
Click Me!

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.
Usage [post]postid[/post]
[post=postid]value[/post]
Example Usage [post]269302[/post]
[post=269302]Click Me![/post]
(Note: The threadid/postid is just an example and may not link to a valid thread/post.)
Example Output http://www.wc3c.net/showthread.php?p=269302#post269302
Click Me!

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.
Usage [list]value[/list]
Example Usage [list]
[*]list item 1
[*]list item 2
[/list]
Example Output
  • list item 1
  • list item 2

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).
Usage [list=Option]value[/list]
Example Usage [list=1]
[*]list item 1
[*]list item 2
[/list]

[list=a]
[*]list item 1
[*]list item 2
[/list]
Example Output
  1. list item 1
  2. list item 2
  1. list item 1
  2. list item 2

Images
The [img] tag allows you to embed images within your posts. You can also combine this tag with the [url] tag to maked images become links.
Usage [img]value[/img]
Example Usage [img]http://www.wc3c.net//styles/ne/statusicon/forum_new.gif[/img] (Not linked)

[url=http://www.vbulletin.com] [img]http://www.wc3c.net//styles/ne/statusicon/forum_new.gif[/img] [/url] (Linked)
Example Output (Not linked)

(Linked)

Code
The [code] tag switches to a fixed-width (monospace) font and preseves all spacing.
Usage [code]value[/code]
Example Usage [code]
<script type="text/javascript">
<!--
    alert("Hello world!");
//-->
</script>
[/code]
Example Output
Code:
<script type="text/javascript">
<!--
	alert("Hello world!");
//-->
</script>

PHP Code
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.
Usage [php]value[/php]
Example Usage [php]
$myvar = 'Hello World!';
for ($i = 0; $i < 10; $i++)
{
    echo $myvar . "\n";
}
[/php]
Example Output
PHP Code:
$myvar 'Hello World!';
for (
$i 0$i 10$i++)
{
    echo 
$myvar "\n";


HTML Code
The [html] tag allows you to perform syntax highlighting for HTML code.
Usage [html]value[/html]
Example Usage [html]
<img src="image.gif" alt="image" />
<a href="testing.html" target="_blank">Testing</a>
[/html]
Example Output
HTML Code:
<img src="image.gif" alt="image" /> <a href="testing.html" target="_blank">Testing</a>

Quote
The [quote] tag allows you to attribute text to someone else.
Usage [quote]Quote[/quote]
[quote=User Name]value[/quote]
Example Usage [quote]vBulletin[/quote]
[quote=John Percival]vBulletin[/quote]
Example Output
Quote:
vBulletin
Quote:
Originally Posted by John Percival
vBulletin

Stop vB Code Parsing
The [noparse] tag allows you to stop the parsing of vB Code.
Usage [noparse][b]value[/b][/noparse]
Example Usage [noparse][b]vBulletin[/b][/noparse]
Example Output [b]vBulletin[/b]

Attachment
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.
Usage [attach]attachmentid[/attach]
Example Usage [attach]12345[/attach]
Example Output

button
Places a button which does nothing, but might be useful sometimes
Usage [button]value[/button]
Example Usage [button]Wow[/button]
Example Output

Edit
Simplifies editing a post multiple times, and helpful for staff when editing other user's posts.
Usage [edit]value[/edit]
Example Usage [edit]Added new images[/edit]
Example Output Edited because: Added new images.

Edit (With title)
Simplifies editing a post multiple times, and helpful for staff when editing other user's posts.
Usage [edit=Option]value[/edit]
Example Usage [edit="Tim."]Added new images[/edit]
Example Output Edited by Tim.. Reason: Added new images.

Citation needed
Usage [fact]value[/fact]
Example Usage George Bush is a good president[fact]March 2007[/fact].
Example Output George Bush is a good president[citation needed].

goto
Creates a link towards a label. Use it with conjunction of the label tag
Usage [goto=Option]value[/goto]
Example Usage [goto=explain]Go to explanation[/goto]
Example Output Go to explanation

hidden
Usage [hidden]value[/hidden]
Example Usage [hidden]OOh ! this was hidden[/hidden]
Example Output
Hidden information:
OOh ! this was hidden

hidden=
This is [hidden] tag with attribute
Usage [hidden=Option]value[/hidden]
Example Usage [hidden=Spoiler]Arthas is Terrenas' son![/hidden]
Example Output
Spoiler

Arthas is Terrenas' son!


jass (hidden)
It is identical to the jass tag, but it starts collapsed.
Usage [hiddenjass]value[/hiddenjass]
Example Usage [hiddenjass]function GetSomeUnit takes integer A, real B returns unit[/hiddenjass]
Example Output
Expand JASS:

jass (hidden, with title)
It is identical to the jass tag, but it starts collapsed, and this one also got a custom header.
Usage [hiddenjass=Option]value[/hiddenjass]
Example Usage [hiddenjass=My script]function GetSomeUnit takes integer A, real B returns unit[/hiddenjass]
Example Output
Expand My script:

Zinc (hidden)
(hidden) version of the [zinc] tag.
Usage [hiddenzinc]value[/hiddenzinc]
Example Usage [hiddenzinc]while(true) { this_code_is_hidden = true; }[/hiddenzinc]
Example Output
Expand Zinc:

ImgFlip
Creates an image-flip on mouse rollover.
Usage [imgflip=Option]value[/imgflip]
Example Usage [imgflip=http://www.wc3c.net/image.php?u=52363&dateline=1148493677]http://www.wc3c.net/image.php?u=66470[/imgflip]
Example Output .

JASS
Highlights JASS code
Usage [jass]value[/jass]
Example Usage [jass]function GetSomeUnit takes integer A, real B returns unit[/jass]
Example Output
Collapse JASS:
function GetSomeUnit takes integer A, real B returns unit

JASS (with title)
Highlights JASS code, using the = operator you can specify a title for the script.
Usage [jass=Option]value[/jass]
Example Usage [jass=Sample]function GetSomeUnit takes integer A, real B returns unit[/jass]
Example Output
Collapse Sample:
function GetSomeUnit takes integer A, real B returns unit

Label
Makes an anchor useful when you want to make an index for your post, use very specific names for this label. Use in conjunction with the goto tag
Usage [label]value[/label]
Example Usage [label]explain[/label]Label explanation
Example Output Label explanation

Inline jass
JASS highlight without creating a whole new block it is good for single JASS lines.
Usage [ljass]value[/ljass]
Example Usage [ljass]local integer a=5[/ljass]
Example Output local integer a=5

Inline Zinc
Inline version of the [zinc] tag.
Usage [lzinc]value[/lzinc]
Example Usage [lzinc]for( 0 <= i < n) if(i*j == j/2) return true;[/lzinc]
Example Output for( 0 <= i < n) if(i*j == j/2) return true;

Monospace font
The text uses a monospace font, but still word wrap applies and there is no block sorrounding the text (unlike the [code] tag)
Usage [monospace]value[/monospace]
Example Usage [monospace]1 2 Monospace font lllllll [/monospace]
Example Output 1 2 Monospace font lllllll

Strike through
Strike through
Usage [s]value[/s]
Example Usage I got plenty of [s]imaginary[/s] friends
Example Output I got plenty of imaginary friends

Silent Table
A table without the header, the borders or the color replacement, useful for formatting
Usage [stable]value[/stable]
Example Usage [stable]1[c]2[c]3[r]4[c]5[c]6[r]7[c]8[c]9[/stable]
Example Output
123
456
789

Table
Generates a table, use [c] to create new columns and [r] to create new rows
Usage [table]value[/table]
Example Usage [table]1[c]2[c]3[r]A[c]B[c]C[r]Victory[c]Defeat[c]Tie[/table]
Example Output
Table:
123
ABC
VictoryDefeatTie

Table (with title)
Table tag also allows = to set the title of the table.
Usage [table=Option]value[/table]
Example Usage [table=Gibberish Table]1[c]2[c]3[r]A[c]B[c]C[r]Victory[c]Defeat[c]Tie[/table]
Example Output
Gibberish Table:
123
ABC
VictoryDefeatTie

Thumbnail Generator
Generates a 100x100 thumbnail of any image and creates a link to the full sized image.
Usage [thumbnail]value[/thumbnail]
Example Usage [thumbnail]http://www.wc3campaigns.net/styles/ne/header/header_title.png[/thumbnail]
Example Output Zoom

Trigger
Takes a trigger which was 'copied as text' from the World Editor and shows it in a way that ressembles its representation in World Editor.
Usage [trigger]value[/trigger]
Example Usage [trigger]set variable = Position of (Triggering Unit)[/trigger]
Example Output
Trigger:
set variable = Position of (Triggering Unit)

Trigger (with title)
[trigger] tag also allows you to set a title using the = operator
Usage [trigger=Option]value[/trigger]
Example Usage [trigger=Variable assigment]set variable = Position of (Triggering Unit)[/trigger]
Example Output
Variable assigment:
set variable = Position of (Triggering Unit)

Zinc
Highlights code written in the Zinc scripting language.
Usage [zinc]value[/zinc]
Example Usage [zinc] for( 0 <= i < n) { BJDebugMsg("Hello World"); }[/zinc]
Example Output
Collapse Zinc:
 for( 0 <= i < n) { BJDebugMsg("Hello World"); }


All times are GMT. The time now is 08:29 PM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2014, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services