NEW! gwBBCode Tutorial

3 pages Page 1
I
Inde
Site Contributor
#1
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
#2
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...
#3
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
#4
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
#5
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
#6
[Rending Touch]

[Glowing Ice]

Test .

YAY! Eye of the North skills at last!

Nice one Inde.
T
Turbobusa
Forge Runner
#7
VERY nice one, gg guys. A big thanks
Loco roco
Loco roco
Ascalonian Squire
#8
[death [email protected]]
testing if its idiot proof lol.
+353 dmg ftw

Edit: yep its idiot proof.
Marty Silverblade
Marty Silverblade
Administrator
#9
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
#10
LOVE!

Thanks to all who helped in implementing it! ["You Move Like A Dwarf!"]["Can't Touch This!"]
quickmonty
quickmonty
Ancient Windbreaker
#11
Nice addition.

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


Thanks.
isamu kurosawa
isamu kurosawa
Desert Nomad
#12
seing as gwbbcode was psoted on this forum over a year ago it took you awhile XD
I
Inde
Site Contributor
#13
Isamu kurosawa, in case you didn't notice, we had been using a different bbcode up until recently.
milkflopance
milkflopance
Lion's Arch Merchant
#14
[[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.
l
liu pi
Ascalonian Squire
#15
Thank you Inde! And it feels really good to see how welcome our gwBBCode is ^^

lol @ the infinite regen
R
Rayzor
SBD
#16
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.
T
Tyla
Emo Goth Italics
#17
F'ing nice job!

[Crippling [email protected]]

Ftw!
Div
Div
I like yumy food!
#18
Sweeeeeeeeet. Glad to see the most common type of code to be implemented now
Y
Yellow D. Flash
Academy Page
#19
[Healers boon]
this is cool!
1 up and 2 down
1 up and 2 down
Wilds Pathfinder
#20
[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!