Help Support Our Growing Community

DOTAFire is a community that lives to help every Dota 2 player take their game to the next level by having open access to all our tools and resources. Please consider supporting us by whitelisting us in your ad blocker!

Want to support DOTAFire with an ad-free experience? You can support us ad-free for less than $1 a month!

Go Ad-Free
Smitefire logo

Join the leading DOTA 2 community.
Create and share Hero Guides and Builds.

Create an MFN Account






Or

Coding Help & FAQ

Please review our General Rules & Guidelines before posting or commenting anywhere on DOTAFire.

Forum » Build & Guide Discussion » Coding Help & FAQ 2 posts - page 1 of 1
Permalink | Quote | PM | +Rep by Mowen » October 26, 2016 1:11pm | Report
First of all, we have a list of all the available bbcode tags here, if you're just looking for what we have and how to word it.

There are already a lot of options at the top of the text editor (click "more options" when posting comments / in chapters when writing guides) so check those out too!

When using multiple parameters such as text that is both bold and underlined, make sure the parameters are nested. This means the parameter that comes first ends last, the parameter that comes second ends second to last, the parameter that comes third ends third to last, and so on.

Example: [b][i][u]Bold Italicized AND Underlined![/u][/i][/b] = Bold Italicized AND Underlined!

Here are some useful / common coding examples:


Database Icons

[[ursa]]
[icon=ursa]
[icon=ursa size=75]


Images and Media

When linking an image it needs to be uploaded somewhere on the internet. You then need to get the IMAGE URL (not the page url). Do this by right clicking the image and selecting "Copy Image URL", then paste into the [img] code. If you need somewhere to upload your image, you can use an image upload service like Imgur or Photobucket.

[img=http://i.imgur.com/pnBpLjb.png] OR [img]http://i.imgur.com/pnBpLjb.png[/img]



Resize images with the "width" parameter:

[img width=200]http://i.imgur.com/pnBpLjb.png[/img]



Link images to other web pages using the [url] code:

[url=http://www.dotafire.com/dota-2/guide/the-noobs-guide-to-raising-your-solo-ranked-mmr-8533][img width=200]http://i.imgur.com/pnBpLjb.png[/img][/url]



Center images and videos with [center], and link videos with [embed]. Be sure to get the direct video url (again, right click the video and copy the video url / paste).

[center][embed=https://www.youtube.com/watch?v=guGFT27SavM][/center]



Text Coding

Size 7
Size 6
Size 5
Size 4
Size 3
Size 2
Size 1

[size=#]Text Goes Here[/size]
Italic Text = [i]Italic Text[/i]

Bold Text = [b]Bold Text[/b]

Underlined Text = [u]Underlined Text[/u]

Bold Italicized AND Underlined! = [b][i][u]Bold Italicized AND Underlined![/u][/i][/b]

Hyperlink = [url=http://www.smitefire.com/]Hyperlink[/url]

Colored Text = [color=blue]Colored Text[/color]

Hex Code Colored Text = [color=#8fc9c1]Hex Code Colored Text[/color]

how to make spoilers


  • Bullet 1
  • Bullet 2
  • Bullet 3
=
[list]
[*] Bullet 1
[*] Bullet 2
[*] Bullet 3
[list]


Columns

Columns and Tables are a way to put things exactly where you want them. They can get a little complicated, but if you mess around with them you can make some very nice layouts!

Columns code goes like so, you can have as many [nextcols] as you want:

[columns]

[nextcol]

[nextcol width=50]

[/columns]
This starts the column code

This adds a column

This adds another column, that is 50px wide

This ends the column code


Example:

I made the first column 65px in width, since I knew I'd be adding a 50x50 icon to it. This way there is nice spacing between my icon and my text. This is a generally useful code for explaining abilities, classes, what have you, as people can find the icons easily then read the text!

Click here to see the code!



Tables

Now onto tables! Tables are more complicated, but you have better controls for the look of your layout. Tables work exactly the same as they do in html if you are familiar with it, and you can read html table help here.

Parameters that affect [table], [tr] and [td]: bgcolor, width, height

Parameters that affect [tr] and [td]: padding, colspan

You can add as many [tr]'s and [td]'s as you want! (tr = table row, td=table cell)

Think of rows fitting in tables, and cells fitting in rows, you have to have them in order, cells within rows and rows within tables: [table][tr][td][/td][/tr][/table]

Also there needs to be the same amount of cells per row if you have multiple rows, otherwise the layout can get funky. See my example for how to handle this with colspan.

[table]

[tr]

[td]

[/td]

[/tr]

[/table]
This starts the table code

This adds a row, you always need at least 1 row

This adds a cell to the row you just made, you need at least 1 cell

This ends the cell

This ends the row

This ends the table code


Example:
The row above has padding="10px" added to the cells so that they have some breathing room, this adds an invisible 10px border around every cell. This row I'm typing on right now has a bgcolor="#2b2727" to make it pop, as well as padding="10px" to give a nice margin. The cells to the right and left are colored white and use width="15px" to control their width. The height automatically adjusts to the height of this cell. There are also 2 more cells that are the same but without bgcolor for padding. The colspan=6 makes the number of cells in both rows even, and the width="350px" in the table constrains the size so the class icons don't spread out.

Click here to see the code!

Mowen
<Production Coordinator>


Notable (17)
Posts: 365
Steam: Mowen
View My Blog
Permalink | Quote | PM | +Rep by michimatsch » October 27, 2016 10:02am | Report
This is awesome.
Like seriously with this knowledge I might even find the courage to create another guide.



Just one small error (I suppose) I noticed in the bbcode table.
The explanation of define contains an example output that is not working it just shows the example usage.

michimatsch

Awards Showcase
Show more awards

Remarkable (26)
Posts: 775
Steam: michimatsch
View My Blog

Quick Reply

Please log in or sign up to post!

DOTAFire is the place to find the perfect build guide to take your game to the next level. Learn how to play a new hero, or fine tune your favorite DotA hero’s build and strategy.

Copyright © 2019 DOTAFire | All Rights Reserved