</B>BBcode GUIDE FOR ALL<i></i>
|Hey everyone, let's talk quickly about BBcode, what is it? How does it work? And what are the protocols with it?|
I'll be frank, if you're on a phpbb, or most bulletin boards, you probably know bbcode fairly well. But for you newcomers and newbies in the bulletin board world, let me try and break it down.
BBcode is what's professionally called a "markup language" which is a fancy way of saying it's an effect placement code. By giving a piece of text or url bbcode, you're telling the browser how it should render the text. So when you put in the following bbcode in your text:
|You're telling the browsers of everyone looking to render the specified text as being BOLD|
This same goes for the majority of all our bbcode. include bold, itallic, underlined, quotes, code, list, img, urls, font colors, strikethrough, collumns, font size, justify, alignments, spoilers, etc. etc.
All it's doing is telling the browser how to render the information you put into it. Does it link to an image? Tell the browser it's supposed to place the image, is it a url to a site? Tell the browser it's supposed to be a link. That's essentially all it boils down to.
| But how do I use it?<i></i>|
Standard code always an opening. And a closing tag.[lb][/lb]
What are the opening and closing tags? When you're writing a reply. Try selecting bits of text, and click the bolded B at the top of your reply field. This adds the code at the start and end of your selected text. If you just press the B it'll add both tags without text in the middle of it. It is a fascinatingly simple approach to coding and markup languages by itself.
| No exceptions! .. However..<i></i>|
All BBcodes has an opening and closing tags. However! Not all has selections of text, or requires specific types of text to make it work properly. Examples like this, includes the fractions code, that makes numbers into fractions as in math, but requires a comma in between (see example A.1) [fraction]3 , 5[/fraction] Another example could be the hr code which simple takes the hr html code with the same name and places it. No text or numbers or anything should be inbetween it, otherwise it doesn't work at all. (see example A.2) Another example that only requires numbers by themselves to function, would be the indent bbcode. This code simple places a set sized margin on the left side making it appear in the text as if it has an indent. This number can essentially be any number, which is what makes it a very creative tool for your text. (see example A.3) Another great and (possibly) overused bbcode that I personally enjoy, and has been used on numerous occasions in this guide is our column code. This code comes in two variants, one has 2 columns, and the other has 3 columns. and it's as simple as using the none-L line as a separator. The problem with me trying to explain it, is that as soon as I place it anywhere within the bbcode the code will think it's a part of the code. So I'll try and explain it in more detail in the code block. (see example A.4) As a final Exception to classic BBcode is the youtube code we have. This is sometimes placed in the signature (requires donator medal!), or in posts to give the reader the opportunity to listen to music, or see a referencial video. Anything of that sort. The way it works is fairly straight forward but usually always requires good ol' fashioned testing. First you open with the youtube tag, then you write the last bits of the url to the video (after the last = symbol)