Click to open network menu
Join or Log In
Mobafire logo

Join the leading League of Legends community. Create and share Champion Guides and Builds.

Create an MFN Account






Or

MOBAFire's third Mini Guide Contest of Season 14 is here! Create or update guides for the 30 featured champions and compete for up to $200 in prizes! 🏆

League of Legends BBCode Guide

Learning to BBCode

This MobaFire Wiki Article is aimed towards users who wish to learn more about the coding language used by MobaFire (how to bold text, or how to mask URLs), or those who want to make a visually gratifying guide, but lack the knowledge to do so. Here you will find examples of how to code to help you get started in your guide making endeavours and how to keep up with general coding for use in the forums.

Here you will learn:

  • How to format your work (columns, lists, font/colour changes)
  • How to make your guide/posts attractive (including: images, videos, coding)
  • How to make a fantastic guide/interesting contribution to the forums


Check out jhoijhoi's Guide to Making a Guide for more coding tricks, chapter templates and tips to making a good guide. Further guide writing articles: Ten Commandments of Guide Writing and Guide Basics.

If you're looking to learn table coding and advanced techniques, make sure to check out Katasandra's Table Coding Guide!


Text Effects



Many of you will have noticed the above bar when commenting on MobaFire or writing guides. You can use the in-built tools to do pretty much 90% of what this guide teaches. When you "Quick Reply" to something, you are not presented with the above toolbar; it is up to you if you want to learn the behind-the-scenes coding.

Simple Text Effects



b, i, u, s - Creates bold, italic, underlined, or strike-through text. To achieve these effects, simply add the desired letter before the text you would like to change, as seen to the right. Emphasis is used to add distinction between objects and plain text. We want the reader to pay attention at a particular idea, or thought.
Code:
[b]Bold[/b] [i]Italics[/i] [u]Underlined[/u] [s]Strikethrough[/s]
Effects:
Bold
Italics
Underlined
Strikethrough


Optional Text Effects



Color, SuperScript, SubScript - Additional text effects can help convey information or create style within a paragraph. Use colour sparingly - consider those annoying flashing advertisments that scream you're the 1 trillionth visitor; these ads annoy you, just the way overusing colour would annoy a reader.
Code:
[color=red]Red[/color] [color=blue]Blue[/color] [color=green]Green[/color] [sup]Super[/sup]Script [sub]Sub[/sub]Script
Effects:
Red
Blue
Green
SuperScript
SubScript


Additional Text Effects



Headings - Like colour, use these sparingly. There are useful for breaking up text to indicate a change in direction within a chapter, or for title purposes. Each heading automatically adds an enter space after it.
Code:
[h1]Heading 1[/h1] [h2]Heading 2[/h2] [h3]And so on...[/h3]
Effects:

Heading 1



URL Masking



URL Masking is great. Long strings of meaningless gibberish isn't fun to look at. So instead of
https://www.mobafire.com/league-of-legends/build/making-a-guide-101506 we want to write Making a Guide.

Code:
[url=https://www.mobafire.com/league-of-legends/build/making-a-guide-101506]Making a Guide[/url]
Effects:
Making a Guide


You can also use URL masking around more than just text; images can be hyperlinked to your desired page as well! To direct your viewers to a particular URL when they click a given image, you can use the same technique with URL tags around the image.

Code:
[url=https://www.mobafire.com/league-of-legends/build/making-a-guide-101506][img=https://www.mobafire.com/images/avatars/karthus-classic.png width=80][/url]
Effects:


DataBase Wiki Coding

Linking to MobaFire's DataBase



The most common form of code you will see used on MobaFire are links to the database. This sort of wiki is easy to implement. Add double square brackets to any item, champion, ability, summoner spell, or rune to achieve this effect. Capitalization isn't necessary.
Code:
[[doran's blade]] [[ashe]] [[volley]] [[flash]] [[lethal tempo]]
Effects:
Doran's Blade
Ashe
Volley
Flash
Lethal Tempo
If two database entries have the same name, there is a way to fix that problem.
Code:
[[Eclipse]] [wiki ability=eclipse] OR [[ability eclipse]]
Effects:
Eclipse
Eclipse
Eclipse


Icon-Only Links



The second most common form of code you will see used on MobaFire are varying sizes of wiki icons. These can be used to start a paragraph, indicate a champion/item, and more. The possibilities are endless.
Code:
[icon=zoe size=50] [icon=trinity force size=50] [icon=arcane comet size=50]
Effects:


If two database entries have the same name, there is a way to fix that problem.
Code:
[icon=eclipse size=50] [icon ability=eclipse size=50] OR [icon=eclipse ability size=50]
Effects:




Pulling Data from Your CheatSheet



You can now embed build information in any comment on the site, and in your build description. You can do this by using the separate builder tools to get a link to a custom setup, or you can use it in your description to automatically pull build information down into the description without typing it out again.
Code:
[items] [runes] [abilities]
Planner Tools
Runes


[items=46-294-169] (you can find the ID of any item in its link, e.g. going to Infinity Edge's page you'll find 46 in its link)

Item Sequence

Infinity Edge 3400
Rapid Firecannon 2600
Statikk Shiv 2900





[abilities=qwqwqwqwqwerereree champion=warwick]

Ability Sequence
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


For champion names with a space, use quotation marks around the champion name.

[abilities=qweqqrqwqwrwweeree champion="lee sin"]

Ability Sequence
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


Formatting Techniques

Line Dividers/Separators/Rules



Throughout this guide you will have noticed the white line underneath the titles for each section. I call these "line dividers", they can also be known as "rules" or "separators". Use these to separate paragraphs of text when necessary, as they can act as a chapter break. Feel free to use the ones I (jhoijhoi) created for my own personal use; they're the coloured ones below.
Code:
---- OR [rule]
Effects:



OR























You can also use the [table] code to create a [rule] with a custom color using basic color words (e.g. red, yellow, green) or HTML color codes (e.g. #ff0000, #ffffff).

Code:
[table][tr][td bgcolor=green padding=1 width=705][/td][/tr][/table]

Effect:



Indentation




The ability to "indent" or in other words "tab" paragraphs. Indents "stack", so using multiple indents will push the text further and further to the right. If you do not close off an indent tag, it produces a cascading effect, as seen below.

Code:
[indent]Format: Having a good format to follow, and not having everything lying around is key to a good guide, it makes your guide easier to follow through. Good formatting includes using coding like Columns, Lists, and Font Effects to emphasise or draw attention to important aspects of your guide.[/indent]

Effect:
Format: Having a good format to follow, and not having everything lying around is key to a good guide, it makes your guide easier to follow through. Good formatting includes using coding like Columns, Lists, and Font Effects to emphasise or draw attention to important aspects of your guide.

Code:
[indent][icon=ashe size=50] [indent][icon=syndra size=50] [indent][icon=skarner size=50][/indent][/indent][/indent]
Effect:


Lists



Lists can be used to... list things. After the opening list tag, you can add as many bullets as you like before closing the list.
Code:
[list] [*] Bullet 1 [*] Bullet 2 [*] Bullet 3 [/list]
Effects:
  • Bullet 1
  • Bullet 2
  • Bullet 3

To make a numbered list, simply add "=1" to the end of the word "list" in the coding tag.
Code:
[list=1] [*] Number 1 [*] Number 2 [*] Number 3 [/list]
Effects:
  1. Number 1
  2. Number 2
  3. Number 3



Columns



Columns can be used to align text or images next to each other. Splitting your guide or forum post with columns allows for more control of how you present your content. Do note that columns don't come with any inherent padding (there's no space between them), so you'll need to create that extra space if you want your columns to be separated. The easiest way to do this is by creating an empty column with a fixed width (usually something small, between 10 and 30 pixels should do).

Example:


Code:
[columns] [nextcol width=250]This is one column. [nextcol width=30] [nextcol width=250]This is another. [nextcol width=30] [nextcol width=250]And last one...[/columns]

Effect:
This is one column. This is another. And last one...


For More Columns Information...



For more information and a thorough in-depth explanation on Columns and examples of column usage, please visit IceCreamy's: How to Use Columns Guide or Astrolia's Columns Guide.


Tables



Tables are a lot like columns in that they allow you to control where text and images are shown. Tables are a little more complicated than columns, but they also offer more tools to customize how your content is displayed.

The basic components of a table are the following tags:
[table] - The opening tag, creates a new table
[tr] - Creates a new row of the table
[th] - Creates a header cell (optional, only if you want a special row at the top)
[td] - Creates a new cell. Your content goes in each of these cells.
[/td] - Closes the current cell.
[/th] - Closes the current header cell.
[/tr] - Closes the current row.
[/table] - Closes the table.

When using tables, be very sure to close all of your tags. If you leave open tags, you may see that your guide or post repeats, cuts off or is positioned strangely. If you notice something strange with your guide, always check to see if you missed any closing tags.

There are lots of other interesting parameters for tables that can be used to modify them. Two of the most common parameters that I (PsiGuard) use all the time are width and padding. The width parameter determines how wide the cells in a given column will be (or how large the entire table will be). For example, you can create a cell that's 100 pixels wide like this: [td width=100] or [td width="100px"]. You can also adjust the width of cells based on a percentage of the total width of the table. e.g. [td width=25%]

By adding padding (e.g. [td padding=10]) you create extra space around a given cell so its content isn't too close to adjacent cells' content. Just remember that the padding will be added to all sides (top, bottom, left, right) of your cell, so adding 10 pixels of padding will add 20 pixels of horizontal space to that cell. This can affect how much total space a table will take up in a guide or forum post, especially if you have padding on all your cells.


Example:


Code:
[table] [tr] [td width=100 padding=10]Row 1, Cell 1[/td] [td width=100 padding=10]Row 1, Cell 2[/td] [td width=200 padding=10]Row 1, Cell 3 (it's wider!)[/td] [td width=100 padding=10]Row 1, Cell 4[/td] [td width=100 padding=10]Row 1, Cell 5[/td] [/tr] [tr] [td width=100 padding=10]Row 2, Cell 1[/td] [td width=100 padding=10]Row 2, Cell 2[/td] [td width=200 padding=10]Row 2, Cell 3 (it's wider!)[/td] [td width=100 padding=10]Row 2, Cell 4[/td] [td width=100 padding=10]Row 2, Cell 5[/td] [/tr] [/table]

Effect:
Row 1, Cell 1 Row 1, Cell 2 Row 1, Cell 3 (it's wider!) Row 1, Cell 4 Row 1, Cell 5
Row 2, Cell 1 Row 2, Cell 2 Row 2, Cell 3 (it's wider!) Row 2, Cell 4 Row 2, Cell 5


For More Tables Information...



For more information and a thorough in-depth explanation on Tables and examples of table usage, please visit Katasandra's Table Coding Guide or Foxy Riven's Tables Guide! .


Other BBCode Tools

randomize: Create a list of items, each of which will show at random one at a time on page load. This is mainly intended for signatures, so that you can have various signatures that change randomly. Example:

[randomize]
[ri] Item 1
[ri] Item 2
[ri] Item 3
[/randomize]




floating: Floating images allows you to easily position an image to the left or right of your text or other content. You can float any image or icon to the left or right by adding "float=left" or "float=right" to the bbcode. Example: [img=/images/something.png float=right] or [icon=Nunu float=left]. When you want to drop below the floated item early you can use the clear tag.

clear: This is used in conjunction with the floating feature. If you float an image to the left or right of some text and then want to jump below the image just put [clear].




anchor: Set a position in your text that can be linked directly to. This is best used next to h1/h2 headers in your guide in combination with the "goto" tag to create a table of contents. [anchor=nameofanchor]. You can then link to your page adding #nameofanchor to the end of the URL, allowing you to link directly to a specific section of your guide.

goto: Similar to URL but this links to a specific anchor you created elsewhere in the page. For example, if you had [anchor=conclusion] near the end of your guide, you could put [goto=conclusion]Conclusion[/goto] at the top to link directly to the bottom without reloading the page.




spoilers: Spoilers are boxes that can expand on click. They are useful for containing a large amount of text or an image. Simply wrap the [spoiler] tags around the text or image you wish to hide. If you want to name your spoiler you can use code [spoiler=SPOILER NAME HERE][/spoiler]


Spoiler: Click to view



Spoiler #1




Webm: To embed a video using webm, use the following code:

[webm url=https://giant.gfycat.com/BlondFlawlessHippopotamus.webm]


Some possible modifications:
[webm url=https://giant.gfycat.com/BlondFlawlessHippopotamus.webm autoplay=on loop=on width=550]


New Comment

You need to log in before commenting.

1
WayOfTheTempesst (1) | February 4, 2022 8:31am
Is it possible to embed a YouTube video with a timestamp?

I've tried the embed code, but it just links the normal video on my Yone Guide.
2
Fruxo (327) | February 4, 2022 8:47am
Unfortunately I do not think that's possible. You can embed the video normally but it won't set it to a specific timestamp, only the start of the video (clicking on it will start it from the beginning).

The other option would be to use a clip with the timestamp you're trying to showcase and link it via the webm solution shown within the guide.
2
WayOfTheTempesst (1) | February 4, 2022 8:54am
Fair enough. Thank you for the swift response, I appreciate it!
1
VuKing (5) | September 19, 2021 9:33pm
Excuse me, I have a video link like this https://gfycat.com/scrawnypositivehare
- How to include this link in my Guide as a Video
1
Fruxo (327) | September 19, 2021 11:15pm
You can make use of webm code to include your clips in your guide (that aren't youtube videos), by doing this:
Code:
[webm url=https://giant.gfycat.com/ScrawnyPositiveHare.mp4]

I would also recommend to add in a few other values to your clip such as autoplay (makes it play when shown) and loop (makes it play over and over again), so that it both works a bit better but also to fit in more with the guide. Along with this I'd also put in changes to the width (as to not be too large or too small). Like this:
Code:
[webm url=https://giant.gfycat.com/ScrawnyPositiveHare.mp4 autoplay=on loop=on width=500]
1
VuKing (5) | September 20, 2021 12:41am
Really thank you so much, I made it, love you
1
Luquinha (2) | July 29, 2021 7:18am
Hey I was updating my guide and I was trying to put in an image. I copied the code of the other image I had and it worked fine, then I changed the link to the new picture and the image is just a small little square, like it is not loaded. Is it a internet problem or I did something wrong.
code
1
Fruxo (327) | July 29, 2021 7:29am
Try and use this link: https://i.imgur.com/559GQM9.jpeg instead.

You'll have to right click the image after you've uploaded it and copy the image adress instead. Otherwise it might have issues trying to realise what kind of image it is/which image hosting website it comes from (in this case imgur).
1
Luquinha (2) | May 13, 2021 4:37am
How can I link a YouTube video? But I want the video to appear not only the link...
1
Fruxo (327) | May 13, 2021 5:59am
you can use the embed feature so for example:
Code:
[embed]https://www.youtube.com/watch?v=QoBKBh3o7j4[/embed]

and then you could use other types of code to center it or make it look better/fit better within the guide.
1
Vinmai | September 8, 2021 3:54am
Fruxo wrote:
you can use the embed feature so for example:
Code:
[embed]https://www.youtube.com/watch?v=QoBKBh3o7j4[/embed]

and then you could use other types of code to center it or make it look better/fit better within the guide.


when i do that, it turns out like this:

EDIT: huh apparntly i cant do images too. What is in the image is essentially a black square with white button with "play video" on it
Load more comments (1 more replies) →
1
Luquinha (2) | May 13, 2021 6:13am
Makes sense thanks for the help! Also I am glad you did not rickroll me...
1
Luquinha (2) | February 27, 2021 8:17pm
When I preview my guide my links to the Mobafire Database do not work, despite me putting them in-between double brackets, not putting spaces between the bracket and the begging of the name and not capitalizing any letters. Is it normal to not appear on the preview and if not how can I fix it?
1
Fruxo (327) | February 28, 2021 1:08am
I see you're trying to use bbcode in your cheat sheet notes, which doesn't work. BBCode can only be applied to the guide chapters. It's not covered for the cheat sheet or its notes.
1
Luquinha (2) | February 28, 2021 4:31pm
Oh so that is why... Well gotta change things up now. Thanks anyway! EDIT: Will we some day be able to use BCCode outside the chapters?
Load more comments (1 more replies) →
1
Katasandra (101) | February 27, 2021 10:58pm
It definitely should appear on the preview, can you give an example?

Edit: Fruxo already resolved it.
1
SaltCat (19) | December 11, 2020 12:59am
I have a question how can i choose where to put an image or icon? I know with the float=left of right you can choose but if i want to put it a little bit more down or a bit more up how can i do?
2
SaltCat (19) | November 26, 2020 7:33am
my brain hurts i am studying too much of these code, the more i see it gets even harder hahaha
I see the featured guides and i my brain just melts thinking how much work they have put into it or how even they got that knowledge to do show
1
Fruxo (327) | November 26, 2020 8:39am
It takes some time to learn, but if you put the effort in and you truly want to be able to know how to code, it'll be well worth the try.
1
SaltCat (19) | November 26, 2020 9:03am
thank you for recomending this guide to me!
1
SaltCat (19) | November 25, 2020 12:59am
How do i put images?
3
Katasandra (101) | November 25, 2020 1:27am
You can use [img]Direct image URL[/img. So for example:

[img]https://i.imgur.com/dyKz2Qx.png[/img]
Turns into


You need to make sure that there is some kind of suffix (usually .png or .jpg) otherwise it doesn't work.
1
XayLies (2) | October 19, 2020 4:01pm
how do I move text to the center? (you know, one of the simplest things)
1
PsiGuard (1495) | October 22, 2020 4:17pm
Put [center] [/center] around whatever you want centered.
2
TheInkKingLoL (43) | October 19, 2020 5:07pm
what you can do is [center
obviously with the closing bracket but I don't know how to make it show up without it not being there.
Loading Comments...
Load More Comments

League of Legends Champions:

Teamfight Tactics Guide