BBCode is a markup language that is used in the osu! forums and, to a larger extent, the vast majority of forums on the Internet. Used to enable rich text formatting, it is made up of tags that surround text to denote formatting, attributes, embedding, and more. It is used in various places across the osu! website, such as forum posts, signatures, user pages, and beatmap descriptions.
The edit box in the forums
Clicking a markup button without highlighting any text will create a set of open and closed tags around the text cursor in the post editor. Highlighting the text before clicking a markup button will surround said text with the tags.
Users, who wish to combine formatting onto a single section of text, can do so by placing BBCode tags inside of one another. However, the order and nesting of these tags must be respected when combining. Failure to do so will break the formatting.
A set of correct and incorrect usages of nested tags is described below:
BBCode, like many other markup languages, formats text using a system of tags, which is indicated by a pair of square brackets (
). These tags are divided into "opening" and "closing" tags, which are differentiated via the inclusion of a forward slash (
/). Specifically, closing tags contain a forward slash right after the opening bracket, while open tags do not.
It is also important to note that open tags occasionally include equals signs (
=) inside to indicate URLs, font sizes, and other such elements.
BBCode tags, which are supported on the osu! website, are listed and described in detail below.
[b] tag is used to strongly emphasise text through the use of bolding. BBCode bolding does not affect the font size.
[i] tag is used to lightly emphasise text by slanting the text forward (i.e. italicising).
[u] tag is used to emphasise text by drawing a horizontal line underneath said text (i.e. underlining). The horizontal line that is drawn will be affected by other tags like bolding and italicising.
Note: "strikethrough" may also be known as "strike".
[strike] tag is used to indicate a removal of previously included text through the use of a horizontal line that "crosses out" the text (i.e. a "strikethrough").
For a list of all colour names, see X11 color names
[color] tag is used to stylise text through various types of web-safe colours. The tag uses the HEX code format to specify the colour, although it can also be specified through HTML colour names like "red" or "green." To specify, replace the
#HEXCODE argument with a colour's corresponding HEX code or HTML name.
The aforementioned argument does not take quotation marks (
"), and does not have a default colour. If no argument is specified, or if quotation marks are used, the tag will not be parsed as a BBCode tag.
[size] tag is used to stylise text through the use of differing font sizes. Currently, there are four sizes that are supported by the osu! website: 50, 85, 100, and 150. The sizes are internally referred to as "tiny", "small", "normal", and "large" respectively.
NUMBER argument does not accept quotation marks, and only accepts one of the four supported sizes. If a number, that is not one of the supported four, is inputted, the text will revert to the default size.
Not to be confused with Spoilerbox.
[spoiler] tag is used to cover up sensitive information with a solid black foreground that reveals the text underneath it upon being highlighted. If stacked with the
[color] tag, the black cover will not be affected. However, the text under the black cover will still be coloured, whether it is readable or not.
The tag is most commonly used to prevent spoiling critical/sensitive information regarding a TV show, movie, or other media. It is also sometimes used for comedic effect or emphasis.
Not to be confused with Spoilerbox.
[box=NAME] text [/box]
[box] tag is used to hide text and images inside of a clickable hyperlink. Upon clicking, the contents inside will be revealed in a similar fashion to a dropdown menu.
The custom hyperlink text is denoted by the
NAME argument. Specifying this argument will create a heading text inside the box using that argument, and will adjust the size of the box accordingly. If
NAME is left unspecified, the
[box] tag will create a box with no heading text inside. The argument does not use quotations marks (
"), and will render whitespace.
The tag is most commonly used to hide large walls of text and images that may bloat up the size of a forum post. Most notably in FAQ or skin release posts.
Note: the BBCode box's toolbar button is called a "spoiler box", but does not create a
A spoilerbox is a special type of BBCode box that does not have a specifiable
NAME argument. The name of a spoilerbox is always shown as
SPOILER. Spoilerboxes have their own tag (
[spoilerbox]) but are functionally identical to BBCode boxes.
[quote="NAME"] text [/quote]
[quote] tag is used to stylistically format long quotations (a.k.a. "block quotes") through the use of indenting, colouring, bolding, and separating the text via a pink vertical line. The actual contents of the quote are placed between the open and closed tags, while the
NAME argument specifies the author of the quote (although this is optional). The text inside the quotes will render whitespace and line breaks.
NAME argument must be enclosed in quotation marks (
Long quotations are typically used in more formal writings in place of in-line quotations when said quotation is three or more lines long. Within the osu! forums, however, they are most commonly used to reply to another user's comment, which can be done automatically through the
Quote reply button located in the top-right of the desired comment (shown below). However, this button will only appear if the cursor is nearby.
Not to be confused with Code block.
[c] tag allows for highlighting inline text in a monospace font. On the osu! website, the text will be formatted with a grey box around it. In contrary to code blocks, the tag may only be placed in single lines.
Within the osu! forums, this is useful for emphasising e.g. keyboard shortcuts or button descriptions.
Not to be confused with Inline code.
[code] text [/code]
[code] tag is used to create preformatted code blocks (a.k.a. preformatted text). On the osu! website, the
[code] tag will format text in a monospace font inside of a semi-transparent grey box. Formatting text inside of a code block will tell the editor to treat the text between those tags literally, thus preventing the conversion of any tags or source code into something else.
Within the osu! forums, code blocks are most often used to post source code for a storyboard, or in tutorials that require showing the syntax for tags, commands, or source code.
[centre] tag is used to align text to the centre of a box. This is most often used for stylistic effect in titles, headers, or poems. If placed inside of or surrounding a
[quote] tag, the text inside the quote block will be centred, but the stylistic lines and such will not.
[url] tag is used to turn regular text into clickable hyperlinks.
Note: Using this tag is not necessary should one wish not to use custom hyperlink text, as the forum editor parses proper URLs into links automatically.
To create hyperlinks with the
[url] tag, users must specify two arguments: the linked text to be displayed, and the specific URL of the website to navigate to. The former must be specified between the open and closed tags, and the latter must be specified as the
LINK argument, without quotation marks (
"). If no text is specified, the text will default to the name of the URL.
[profile] tag is used to link to a user's osu! profile page by using their username or user ID. Usage of the
[profile] tag differs from the use of
[url] tag in that the
[profile] tag displays a user card when hovering over the link that is created by the tag.
Note: The user ID is a string of numbers that directly follow the
/users/ in the URL of an osu! profile page.
When specifying users only by their user IDs, a placeholder text is required between the open and closed tags. Doing so will display the username on the actual page, not the placeholder text. When specifying users only by their username, the link will not function once they change their username.
[list=TYPE] [*]item 1 [*]item 2 [*]item 3 [/list]
[list] tag is used to automatically format two different types of lists throughout the osu! forums by using an asterisk enclosed in brackets (
[*]) to indicate a new item in the list (shown above). By default, this will create a plain, bulleted list.
TYPE argument is specified (the actual value doesn't matter), it will create a numbered list.
Notice: BBCode-formatted lists can be stacked on top of each other and placed inside one another, although this has been known to cause issues with formatting.
[email] tag creates a clickable hyperlink, which opens a new email in the default mail program with the address field pre-populated.
In order to create a link, two arguments need to be specified: the
ADDRESS argument needs to be a valid email address, while
text is the displayed text that serves as a hyperlink. If the
text argument is not defined, the hyperlink will not be created correctly.
[img] tag is used to include online images into osu! forum posts. To use the tag, users must paste in the direct image address (represented by the
ADDRESS argument above) sourced from a website. Local file paths (e.g.
C:\Users\Name\Pictures\image.jpg) will not work.
Notice: A website URL is not the same as an image address.
In order to obtain an image address, one must navigate to the website it is sourced on, hover their mouse over the image, right-click on the image, and select
Copy image address. Then, the address should be copied and pasted in between the tags.
Although images can be sourced from anywhere, osu! recommends that users upload images to reputable image sharing sites like ImgBB, as some websites do not appreciate direct links to their images (otherwise known as "hotlinks").
Notice: Imgur has blocked the IPs of the osu! website, so new images hosted there can no longer be displayed.1
[imagemap] IMAGE_URL X Y WIDTH HEIGHT REDIRECT TITLE [/imagemap]
[imagemap] tag is used to integrate one or more hyperlinks into an image in rectangular areas.
The image, which is embedded on the website, is represented by the
IMAGE_URL argument. It needs to directly refer to an image hosted on a website.
To add a clickable area, a new line containing the x and y position of the area, the width and the height of the area as well as a link to redirect to needs to be inserted after the
IMAGE_URL argument. Additionally, an optional
TITLE argument will be shown on hovering the area if it is specified. A link may be specified with the
REDIRECT argument, or omitted with a
#. Every size unit (
HEIGHT) is a percentage (0–100) without a percent sign.
[youtube] tag is used to embed a YouTube video on the website. The tag requires the user to input only the video ID (not the entire URL) between the two tags (represented by the
VIDEO_ID argument above).
A YouTube video's ID is located in the URL of the video, and is the string of 11 characters directly after the
[audio] tag is used to embed an HTML5 audio player from an online audio source. Audio files can be sourced from anywhere, as long as the file exists from a given URL. Local file paths (e.g.,
C:\Users\Name\Music\audio.mp3) will not work.
Caution: Please beware that not all file-sharing services appreciate the ripping of their audio files, due to the music piracy concerns. osu! is not responsible for any copyright issues that users may encounter in that regard.
To embed audio files through this method, users must paste its source URL (e.g.
https://www.example.com/example.mp3) between the two
[heading] tag is used to format text into big, pink headers. The tag does not support multi-leveled headers, and cannot be specifically linked to.
[notice] text [/notice]
[notice] tag is used to place paragraphs into a large, outlined box with a dark body colour. The button is primarily used to denote notices or warnings regarding a certain subject on the website.
The following are BBCode tags that were once used in various places across the osu! website, but are now unavailable for use. Their usages and syntax are described below for historical purposes.
[google] tag is an outdated tag that was once used in the osu! forums to link to a Google search query using the provided text between two tags.
The tag would redirect users to a Google search through their account, meaning that the exact same results would not be given to everyone, as Google personalises users' results. Likewise, this also means that some search results would be hidden to certain users due to language or country restrictions.
[lucky] tag is an outdated tag that was once used in the osu! forums to link to a website directed from Google's
I'm Feeling Lucky button using the provided text. The website linked through this tag would not be the same for everyone due to the nature of the button itself.
The Heading (v2) tag is an outdated tag that was once used in the osu! forums to format text into a fancier-looking, purple heading with a horizontal line. The tag only worked in the Beatmaps forum, and only appeared after posting (not in preview). It had no button when it was in service, and was denoted by an open and closed bracket (no opening and closing tags).
imagemaptag was added, it was possible to add a hyperlink to an image by combining the
imgtags, however, only one hyperlink can be set per image. This would require slicing the original image into several pieces (i.e. for each link one partial image) and arranging them horizontally side by side.