Mobafire League of Legends Build Guides Mobafire League of Legends Build Guides

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 .


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:
[[salvation]] [wiki ability=salvation] OR [[ability salvation]]
Effects:
Salvation
Salvation
Salvation


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=salvation size=50] [icon ability=salvation size=50] OR [icon=salvation 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
Items
Runes


[items=46-294-169] (you can get these item IDs using the Item Planner tool)

Item Sequence

Infinity Edge
3400

Rapid Firecannon
2800

Statikk Shiv
2800


The Season 8 rune planner and embedding is currently in development.


[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.
[/tr] - 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 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=http://news.cdn.leagueoflegends.com/public/images/articles/2015/may_2015/SGLAN/Videos/Star_Guardian_Lux_R.webm]




Some possible modifications:
[webm url=http://news.cdn.leagueoflegends.com/public/images/articles/2015/may_2015/SGLAN/Videos/Star_Guardian_Lux_R.webm autoplay=on loop=on width=550]


New Comment

You need to log in before commenting.

1
[-]
Superior current (8) | August 8, 2018 5:40am
Recently I added a few mp4 files to my guide like this:

lorem ipsum

You see that there's an unpleasant distance between the text and the video. It occurs regardless how i type it in the coding.
1
[-]
KajiKumihoAkukei (106) | August 8, 2018 6:24am
You could try it like this:

lorem ipsum


The height and width you entered are the cause of your problem. ^^
If you just leave that your coding will look a lot better.

Now if you want the text to be closer / further from your video just press enter! ;)
Hope your problem is solved with this my friend! ^^
1
[-]
Superior current (8) | August 8, 2018 8:36am
"webm url=https://i.imgur.com/hUTr5xx.mp4 autoplay=on loop=on height=475 width=700" is what I've entered. If I remove the sizing the distance looks better, but the clip goes a bit outside the panel.
Load more comments (6 more replies) →
2
[-]
3Bies | July 11, 2018 1:25am
How to link an mp4? I already have a link to the mp4, just need to know how to embed it.
1
[-]
Chromuro (20) | July 11, 2018 2:04am
If you want to embed it use this
Code:
[embed]yourlinkhere[/embed]

There is already the shorcut in the toolbar, it's the sixth one from the left.
1
[-]
PsiGuard (1274) | July 11, 2018 12:45pm
[embed=yourlinkhere] should also work. Can't say I've embedded an mp4 though, so if it doesn't work let me know!
1
[-]
Jazzmonkey | July 7, 2018 5:21am
how can i link my twitch account so someone sees my twitch ?=
2
[-]
jhoijhoi (2013) | July 7, 2018 6:34am
@ Jazzmonkey https://www.mobafire.com/prime

Quoted:
Extreme Stream Exposure
Prime member’s streams get exposure to broaden your audience. While your stream is online it will display prominently at the top of your guides. Prime streams also get special highlights on all of our stream listings, and the most popular Prime member streams are featured at the top of our stream directory.
1
[-]
Jazzmonkey | July 7, 2018 10:41am
ty
1
[-]
Wow a Rengar Main | July 5, 2018 6:14pm
How do i add the green+ and the red- ??
2
[-]
jhoijhoi (2013) | July 6, 2018 3:27am
Code:
[color=red]Red[/color] [color=blue]Blue[/color] [color=green]Green[/color]

Red
Blue
Green

Comment has been deleted

1
[-]
PsiGuard (1274) | July 3, 2018 3:41pm
Could you show me an example of what you're talking about? I'm not sure what you mean by the second rule looking "lame."
1
[-]
MR.NOLIFE (1) | June 14, 2018 10:27am
how do I make a rule that goes straight down?
2
[-]
Chromuro (20) | June 14, 2018 2:07pm
you just need to change the "width" value to "height", like this
Code:
[table][tr][td bgcolor=green padding=1 height=705][/td][/tr][/table]
1
[-]
MR.NOLIFE (1) | July 8, 2018 2:24pm
Thank you so much!
2
[-]
kamilek27071989 | April 24, 2018 9:55am
spoko
1
[-]
Taric Support (1) | March 23, 2018 6:10pm
How do i make the "table of contents" go away. I made my own and now i want the basic one gone, but how do i do it?
3
[-]
Jovy (843) | March 23, 2018 6:31pm
You have to delete all your chapters and have your whole guide in only one untitled chapter :)
2
[-]
Taric Support (1) | March 24, 2018 4:26am
So that's how they do it :) Nice, thanks for the help! Really appreciate it :)
2
[-]
BitBot (1) | March 16, 2018 7:28pm
How would I embed runes into my guide? I need a way to explain them but it looks odd without the picture of the runes.
1
[-]
PsiGuard (1274) | March 17, 2018 4:30pm
Rune embedding is still in production for the new runes system, so unfortunately there is not yet an automated way to do this. You can, however, use some code like this to show your runes:

code

Which will give you this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Just copy and paste the format and do one for each rune. Personally I also take a screenshot of the rune page from the client and include that at the top for easy reference, but that's up to you.

Hope that helps! In the future we'll add functionality to automatically embed runes with the [runes] code but it's not ready yet.
1
[-]
BitBot (1) | March 17, 2018 8:46pm
Ok thanks!
1
[-]
tyo professor (1) | February 13, 2018 4:08am
How do I make a green plus sign and a red minus sign?
1
[-]
Massive Nuts (2) | March 8, 2018 1:50pm
There is a colour palet just over the text part, just select your + or - sign and click on the colour you want. + or -
1
[-]
tyo professor (1) | March 11, 2018 5:11am
thanks
1
[-]
LuxIsMyCrush (2) | February 8, 2018 2:58pm
i think the rune page is broken or just not work for me lol, is a other way to get the id for runes?
1
[-]
PsiGuard (1274) | February 8, 2018 3:23pm
Unfortunately I don't know of a workaround at the moment. The new rune planner hasn't been fully implemented yet. The only thing we can do right now is wait for it to be fixed, sorry. I'll poke the devs about this again to see if we can get it working soon.
1
[-]
anthomaxcool | February 4, 2018 4:38pm
See the last example from this chapter : https://www.mobafire.com/league-of-legends/build/how-to-use-columns-194730#chapter3

I find it very annoying that it could be avoid simply by adding the attribute valign="top" on the <tr>. I read both guides (this one and the one on columns), but I can't find anything about how to prevent this.. Is there something I can do?

Thanks!
1
[-]
PsiGuard (1274) | February 4, 2018 6:20pm
If you're using tables, try adding "vertical-align=top" to the appropriate cells, like so:

[td vertical-align=top width=325]

Cells are vertically centered by default, so if you want two "columns" with varying heights, you'll need to add that parameter to make them line up. Let me know if you have any more trouble!
Loading Comments...
Load More Comments