NEW! gwBBCode Tutorial

Inde

Site Contributor

Join Date: Dec 2004

A big thanks to the gwBBCode team who has written this code for all the Guild Wars websites out there. If you wish to be able to use this syntax on your forum or website, gwBBCode is free and open source so come get it at GWShack.us

----------------------------------------------------------------------



gwBBCode Tutorial


How to show a single skill

To display a skill you need to encase its name in square brackets "[" and "]".
For example the skill Shock would be represented by
[pre][Shock][/pre] => [Shock]
If you want to show the skill name instead of its icon, put a second "[" before the name
[pre][[Shock][/pre] => [[Shock]
If you want to show a skill effect adjusted to an attribute value, include "@" after skill name and then a number
[pre][[email protected]][/pre] => [[email protected]] here we have the skill with 8 in Air Magic
Tip: case and punctuation don't matter in skill names, and you can use some abbreviations
[pre]["You're All Alone!"][/pre] = [pre][youre all alone][/pre] = [pre][You're all ALONE!!!][/pre] => ["You're All Alone!"]
[pre][Word of Healing][/pre] = [pre][WoH][/pre] = [pre][woh][/pre] => [woh]



How to write a build

The simpler way is to get its template code from the game, then use it in one of these ways:
[pre][Shock Warr;OQYTgw4K5QrSFqM9cOtrCA][/pre] = [pre][build=Shock Warr;OQYTgw4K5QrSFqM9cOtrCA][/pre] ~= [pre][build=OQYTgw4K5QrSFqM9cOtrCA][/pre] =>
[Shock Warr;OQYTgw4K5QrSFqM9cOtrCA]

But if you want to write a build from scratch, here is how! A build consists of an opening tag [pre][build][/pre] in which you can specify details (see below), then a list of skills encased in brackets, and an ending tag [pre][/build][/pre]. In this example we specified a name and attribute level. Don't panic it will be explained in details below
[pre][build prof=W/E air=8][Shock][Frenzy][Eviscerate][/build][/pre] =>
[build prof=W/E air=8][Shock][Frenzy][Eviscerate][/build]

Now let's have a closer look.. at what you can specify in the [pre][build][/pre] tag..Professions: To specify the build is for a Warrior/Elementalist, just add prof=W/E. You can use any profession abbreviation: W, Mo, E, R, N, Me, Rt, A, D, P. As well as full profession names, e.g prof=Warrior/Elementalist. You don't have to specify a secondary profession.
[pre][build prof=W/E][/build][/pre] = [pre][build prof=Warrior/Elementalist][/build][/pre] =>
[build prof=W/E][/build]
Build's name: To specify a name, try this: name="Shock war" (note: the name must be encased in double brackets "")
[pre][build prof=W/E name="Shock war"][/build][/pre] =>
[build prof=W/E name="Shock war"][/build]
Attributes: Just write the attribute name without spaces, followed by "=", and the attribute level. Like this: expertise=9. You can use plus signs to specify additional levels due to a rune or helmet: axemastery=12+1+3.
Tip: Case doesn't matter here and all but 3 attribute names can be reduced to their first three letters, e.g axe=12 and pro=4. Specifying a few more letters doesn't hurt though: prot=9 and blood=8. The three exceptions to this rule are: dead for Deadly Arts since dea is for Death Magic; comma for Command since com is for Communing; earthp for Earth Prayers since ear is for Earth Magic.
[pre][build prof=W/E AxeMastery=12+1+3][/build][/pre] = [pre][build prof=W/E axe=12+1+3][/build][/pre] =>
[build prof=W/E axe=12+1+3][/build]
Description: Adding information on a build (weapons, armor, how to play it) can be done like this: desc="Vamp axe." (note: the description must be encased in double brackets "")
[pre][build prof=W/E desc="Vamp axe."][/build][/pre] =>
[build prof=W/E desc="Vamp axe. Spike with Shock."][/build]
Tip: you can write descriptions in multiple lines using {br} to separate lines. This tip works on build names as well.
Pickup: Now imagine you have a post with a full teambuild and you'd like to know which of these builds your forum users would prefer to play. Rather than go through the process of asking them, use the pickup feature and ask them to click on the builds (their profession icons) they want! And click again to remove themselves from a build.
To make a build clickable add something like pickup="some unique text here". A unique text is needed because if you use the same id with two builds and a user clicks on one, he'll be added to both!
[pre][build prof=W/E pickup="shock war"][/build][/pre]
[pre][build prof=Mo/E pickup="prot monk v3"][/build][/pre] =>
[build prof=W/E pickup="shock war"][/build]
[build prof=Mo/E pickup="prot monk v3"][/build]
Tip: for readability, you can reuse the pickup feature inside the same post but outside a build, and see who can play what without having to move your mouse over each build:
[pre]Can play shock war: [pickup="shock war"]; can play prot monk: [pickup="prot monk v3"][/pre] =>
Can play shock war: [pickup="shock war"]; can play prot monk: [pickup="prot monk v3"]
Box: You can create a nice box border to encase the build skills like in the game by adding "box" to the code:
[pre][build prof=W/E box][Shock][Eviscerate][/build][/pre] =>
[build prof=W/E box][Shock][Eviscerate][/build]
No skill: You may want to specify an empty skill slot. For that, use [pre][No Skill][/pre] => [No Skill]
No save: If you don't want a build to show the copy build icon just add "nosave" to the code.
[pre][build prof=W/E nosave][/build][/pre] =>
[build prof=W/E nosave][/build] Here is a full example:
[pre][build prof=W/E name="Shock Axe" box axe=12+1+2 str=11+1 air=6 desc="Weapon #1: Vampiric Axe{br}Weapon #2: Penetrating Axe"][Frenzy][Rush][Disrupting Chop][Bull's Strike][Shock][Eviscerate][Executioner's Strike][Resurrection Signet][/build][/pre] =>
[build prof=W/E name="Shock Axe" box axe=12+1+2 str=11+1 air=6 desc="Weapon #1: Vampiric Axe{br}Weapon #2: Penetrating Axe"][Frenzy][Rush][Disrupting Chop][Bull's Strike][Shock][Eviscerate][Executioner's Strike][Resurrection Signet][/build]


MiscellaneousLocally prevent gwBBCode parsing: Encase what you don't want to be parsed with tags [pre][pre][/pre] and [pre][/pre][/pre], e.g [pre][pre][EW][/pre][/pre] => [pre][EW][/pre]
You'll find it useful when you want to mention a guild tag which happens to be a skill abbreviation, or when you want to explain gwBBCode syntax ^^
The pickup feature: As seen above in a build, pickup can be used to let users show they can play it. Syntax is self explanetory: List of fools: [pre][pickup="some unique text here"][/pre] => List of fools: [pickup="some unique text here"]
Export builds to GWFreaks: copy the code (click the Quote button to get it) to this page then click "convert" and import the downloaded file in GWFreaks
Random build: guess what.. [pre][random build][pre] =>[random build]
gwBBCode version: that one is more difficult to guess: [pre][gwbbcode version][pre] => [gwbbcode version]
Installing gwBBCode: If you want it on your forums it's free and open source so come get it at
http://gwshack.us ^^

Dr Strangelove

Dr Strangelove

Furnace Stoker

Join Date: Dec 2005

Wasting away again in Margaritaville

[HOTR]

Ow brain hurts.... looks nifty though. Does this mean the skill icons have been updated too?

[patient
[email protected]]
[shock]

Nifty. Apparently there's no cap on how high the atts can go.

[build name="Tribble" prof=Ritualist/Necromancer desc="Western Bacon Cheeseburger" SpawningPower=10 Channeling=-1 AirMagic=90 ][frenzy][splinter weapon][ursan [email protected]][spiteful spirit][/build]

Fril Estelin

Fril Estelin

So Serious...

Join Date: Jan 2007

London

Nerfs Are [WHAK]

E/

It's a very very nice addition, gwBBcode is awesomely done and there're a lot of features packed in it. Love the code-copying feature. GG Inde.

Age

Age

Hall Hero

Join Date: Jul 2005

California Canada/BC

STG Administrator

Mo/

I wonder if the old ones still work [skill]Word of Healing[/skill] and the new [word of healing] as well [word of [email protected]]

[disarm] [shell shock]

The old ones still works.

Spider Pig

Spider Pig

Academy Page

Join Date: Oct 2007

Pirates of the Searing [YoHo]

E/

Great addition, way better than the previous skill code.

[Meteor Shower@-50]
[Flame Djinn's [email protected]]
[build prof=E/Me FireMagic=100 EnergyStorage=100 box pickup="fire build"][Searing Flames][Savannah Heat][Rodgort's Invocation][Meteor Shower][/build]

Edit: Too bad it doesn't do the attribute thing for PvE Only skills too...
[Pain [email protected]]

Cebe

Cebe

The 5th Celestial Boss

Join Date: Jul 2006

Inverness, Scotland

The Cult of Scaro [WHO]

E/

[Rending Touch]

[Glowing Ice]

Test .

YAY! Eye of the North skills at last!

Nice one Inde.

Turbobusa

Forge Runner

Join Date: Jan 2006

By the Luxon Scavenger

The Mentalists [THPK]

N/

VERY nice one, gg guys. A big thanks

Marty Silverblade

Marty Silverblade

Administrator

Join Date: Jun 2006

Ah, EoTN and PvE skills, nice. Good to have the attributes too. I've got a guide to update then

[save yourselves]
[Save Yourselves]
["Save Yourselves"]
["Save Yourselves!" (Luxon)]

[Rodgort's [email protected]] XD!!!

[Dragon [email protected] 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999994999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 9999999999]

[random build]
[random build]
[random build]
[random build]
[random build]
[random build]
[random build]

EDIT: It's a bit annoying that the icons are so small, I'm not completely sure I'd want to drop the nice old big ones.

distilledwill

distilledwill

Forge Runner

Join Date: Sep 2006

Blighty

The Legion of the Blue Blade

R/Mo

LOVE!

Thanks to all who helped in implementing it! ["You Move Like A Dwarf!"]["Can't Touch This!"]

quickmonty

quickmonty

Ancient Windbreaker

Join Date: May 2005

Nice addition.

We've been using this on our guild's website for some time.


Thanks.

isamu kurosawa

isamu kurosawa

Desert Nomad

Join Date: Nov 2005

United Kingdom

Me/

seing as gwbbcode was psoted on this forum over a year ago it took you awhile XD

Inde

Site Contributor

Join Date: Dec 2004

Isamu kurosawa, in case you didn't notice, we had been using a different bbcode up until recently.

milkflopance

milkflopance

Lion's Arch Merchant

Join Date: Dec 2006

England

The Cult of Scaro [WHO]

[[email protected] 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 9999999999999999999]

Infinite regeneration?


Thanks for implementing this btw.

liu pi

Ascalonian Squire

Join Date: Sep 2005

Thank you Inde! And it feels really good to see how welcome our gwBBCode is ^^

lol @ the infinite regen

Rayzor

SBD

Join Date: Nov 2005

Thanks to those who wrote the great code, there were some hiccups in the install but after looking at the errors thrown it made sense how to manually change it.

Tyla

Emo Goth Italics

Join Date: Sep 2006

F'ing nice job!

[Crippling [email protected]]

Ftw!

Div

Div

I like yumy food!

Join Date: Jan 2006

Where I can eat yumy food

Dead Alley [dR]

Mo/R

Sweeeeeeeeet. Glad to see the most common type of code to be implemented now

Yellow D. Flash

Academy Page

Join Date: Mar 2008

GW

[Healers boon]
this is cool!

1 up and 2 down

1 up and 2 down

Wilds Pathfinder

Join Date: Mar 2007

Rt/

[warmongers [email protected] 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 999999999999999999]

Hehehe, try getting a spell off now mr. monk!

Painbringer

Painbringer

Furnace Stoker

Join Date: Jun 2006

Minnesota

Black Widows of Death

W/Mo

This is awesome and the new skills work [frenzy] [Aneurysm] [wandering eye]

just great

Age

Age

Hall Hero

Join Date: Jul 2005

California Canada/BC

STG Administrator

Mo/

Quote:
Originally Posted by Inde
Isamu kurosawa, in case you didn't notice, we had been using a different bbcode up until recently. That one came from the gwgamewiki didn't it?

Mr. Undisclosed

Mr. Undisclosed

I phail

Join Date: Mar 2007

Phailville

D/

Me Like. Coolio

[ether [email protected]]
[cry of [email protected]]

Winterclaw

Winterclaw

Wark!!!

Join Date: May 2005

Florida

W/

[word of [email protected]]

Testing word of healing at over 9000.

Ekelon

Ekelon

Jungle Guide

Join Date: Dec 2005

Rebel Rising [rawr]

A/W

Sweet, thanks. I've been waiting quite a while for this to appear on Guru!

[Shadow [email protected]]

TheGuildWarsPenguin

TheGuildWarsPenguin

Wilds Pathfinder

Join Date: Aug 2005

Los Angeles, California

Picnic Pioneers

E/

[shadow [email protected]][Mantra of [email protected]][energy [email protected]]

Win.
BTW, the small icons look tidier.

liu pi

Ascalonian Squire

Join Date: Sep 2005

I just improved the tutorial you posted here (Coran Ironclaw's tutorial). Have a look: http://gwshack.us/forums/viewtopic.php?t=2092
And feel free to duplicate it here if you like it better.

I'll try to keep the skill database up to date. Regularly update files skill_db_1.php and skill_db_2.php from gwShack files skill_db_1.php and skill_db_2.php

Icons are too small to some, but would be too big for others.. I have no solution yet for this problem, sorry

Seef II

Seef II

Desert Nomad

Join Date: Nov 2005

US

R/Mo

Yay, now both gwo and guru can do copypasta magic should the need arise to post on both forums. Thanks Liu Pi!

RiKio

RiKio

Krytan Explorer

Join Date: Dec 2007

Plato's Cave

W/E

[Shadow Walk][Vampiric [email protected]][Dash]

Vampiric ninja

A Leprechaun

A Leprechaun

Desert Nomad

Join Date: Feb 2006

W/

[[email protected]][plague [email protected]]

[final [email protected]]

[Dwarven Battle [email protected]]

[Animate Flesh [email protected]]

[Spike [email protected]]

[[email protected]]

[Conjure [email protected]]

Test. Nice one.

~A Leprechaun~

NoXiFy

NoXiFy

Wilds Pathfinder

Join Date: Aug 2007

★☆٭Ńēŵ~ŶờЯК٭☆★

The Benecia Renovatio [RenO]

Mo/Me

[warmongers [email protected]]



OOOOOOOOOOOOOOOOOOOOO leet in pvp ftw.

Bowstring Badass

Bowstring Badass

Forge Runner

Join Date: Nov 2005

Character selection screen figuring what I want to play...

Purple Lingerie - :D

Now I can copy paste gwshack codes? hurray

[reapers [email protected]]

Alex the Great

Alex the Great

Jungle Guide

Join Date: Feb 2007

America.....got a problem with that?

[Lite]

W/

[skill]gash[/skill]


cool

-Sonata-

-Sonata-

Lion's Arch Merchant

Join Date: Nov 2007

Pretty Hate Machines [NIN]

Me/

Very well done indeed.

A big thanks

jkmj the warlord

jkmj the warlord

Ascalonian Squire

Join Date: Dec 2007

Archangel's Fury [AF]

W/Rt

[shadow [email protected]] testing to see if this works

cthulhu reborn

cthulhu reborn

Wilds Pathfinder

Join Date: Jan 2007

the Netherlands

W/Mo

[build prof=Rt/Mo name="Channeling Build" box Chan=12+1+3 Spawn=12+1 Heal=3 Kurzick=4 Sunspear=10desc="Weapon of choice: Insightful Onyx Staff of Fortitude"][Essence Strike][Spirit Rift][Ancestors' Rage][Clamor of Souls][Bloodsong][Agony][Vampirism][Summon Spirits][/build]


I see you can add Kurzick/Luxon ranks as well as Sunspear but it doesn't calculate the skills based on them.

Dr Strangelove

Dr Strangelove

Furnace Stoker

Join Date: Dec 2005

Wasting away again in Margaritaville

[HOTR]

[cultist's fervor@-70]

epic overpowered

Bo Fairfield

Academy Page

Join Date: Dec 2007

Mu Tants [MU]

Me/

What is the cap on the variable that holds attribute levels?

Earth

Earth

Always Outnumbered

Join Date: Jul 2006

[[email protected] 1754324324535972849578923715948912352]


I don't think there is one.