DText is Danbooru's custom text formatting language. It's a mishmash of several markup languages, including BBCode, MediaWiki, Markdown, and HTML.
You can use the "Preview" button in the top left of the text editor to see what your formatting will look like. You can also use Help:Sandbox to experiment with formatting.
Basic formatting
<table>
<thead>
<tr>
<th>What you type</th>
<th>What you get</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td>[code]bold[/code]</td>
<td><b>bold</b></td>
<td></td>
</tr>
<tr>
<td>[code]italics[/code]</td>
<td><i>italics</i></td>
<td></td>
</tr>
<tr>
<td>[code][u]underline[/u][/code]</td>
<td><u>underline</u></td>
<td></td>
</tr>
<tr>
<td>[code][s]strikethrough[/s][/code]</td>
<td><s>strikethrough</s></td>
<td></td>
</tr>
<tr>
<td>[code]note[/code]</td>
<td><tn>note</tn></td>
<td></td>
</tr>
<tr>
<td>[code]ssh![/code]</td>
<td>ssh!</td>
<td></td>
</tr>
<tr>
<td>[code][nodtext][u]text[/u][/nodtext][/code]</td>
<td>[nodtext][u]text[/u][/nodtext]</td>
<td><tn>Ignore DText tags</tn></td>
</tr>
<tr>
<td>[code][co[/code][code]de][u]text[/u][/co[/code][code]de][/code]</td>
<td>[code][u]text[/u][/code]</td>
<td><tn>Ignore DText and format as code</tn></td>
</tr>
<tr>
<td>[code]line break[/code]</td>
<td>line break</td>
<td>Insert a line break (Allows line breaks to be specified in line)</td>
</tr>
</tbody>
</table>
Links
<table>
<thead>
<tr>
<th>What you type</th>
<th>What you get</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td>[code]https://danbooru.donmai.us[/code]</td>
<td>https://danbooru.donmai.us </td>
<td>Basic link</td>
</tr>
<tr>
<td>[code]<https://danbooru.donmai.us>[/code]</td>
<td><https://danbooru.donmai.us></td>
<td>Basic link with delimiters</td>
</tr>
<tr>
<td>[code]Danbooru[/code]</td>
<td>Danbooru</td>
<td>Link with custom text</td>
</tr>
<tr>
<td>[code]Danbooru[/code]</td>
<td>Danbooru</td>
<td>Markdown style link</td>
</tr>
<tr>
<td>[code]https://danbooru.donmai.us[/code]</td>
<td>https://danbooru.donmai.us</td>
<td>Reverse Markdown style link</td>
</tr>
<tr>
<td>[code]<a href="https://danbooru.donmai.us">Danbooru</a>[/code]</td>
<td><a href="https://danbooru.donmai.us">Danbooru</a></td>
<td>HTML style link</td>
</tr>
<tr>
<td>[code][url]https://danbooru.donmai.us[/url][/code]</td>
<td>[url]https://danbooru.donmai.us[/url]</td>
<td>BBCode style link</td>
</tr>
<tr>
<td>[code][url=https://danbooru.donmai.us]Danbooru[/url][/code]</td>
<td>[url=https://danbooru.donmai.us]Danbooru[/url]</td>
<td>BBCode style link with custom text</td>
</tr>
<tr>
<td>[code]ToS[/code]</td>
<td>ToS</td>
<td>Link to a Danbooru page<br>Note: Substitute [ and ] in links with %5B and %5D to avoid format breaking</td>
</tr>
<tr>
<td>[code]Here[/code]</td>
<td>Here</td>
<td>Link to a specific section of the current page</td>
</tr>
<tr>
<td>[code]Kantai Collection[/code]</td>
<td>Kantai Collection</td>
<td>Link to a wiki</td>
</tr>
<tr>
<td>[code]Kantai Collection#External-Links[/code]</td>
<td>Kantai Collection#External-Links</td>
<td>Link to a specific section of a wiki article<br>Note: The first letter of the anchor must be capitalized. Note: There must be a header with an anchor like "[code]h4#External-links.[/code]" on the page.</td>
</tr>
<tr>
<td>[code]Kancolle[/code]</td>
<td>Kancolle</td>
<td>Link to a wiki with custom text</td>
</tr>
<tr>
<td>[code]Fate (Series)[/code]</td>
<td>Fate (Series)</td>
<td>Link to a wiki without the qualifier</td>
</tr>
<tr>
<td>[code]Cats, 1960s[/code]</td>
<td>Adjacent text becomes part of the link</td>
</tr>
<tr>
<td>[code]{{kantai_collection comic}}[/code]</td>
<td>{{kantai_collection comic}}</td>
<td>Link to a tag search</td>
</tr>
<tr>
<td>[code]{{kantai_collection comic|Kancolle Comics}}[/code]</td>
<td>{{kantai_collection comic|Kancolle Comics}}</td>
<td>Link to a tag search with custom text</td>
</tr>
<tr>
<td>[code]@evazion[/code]</td>
<td><@evazion></td>
<td>Link/Mention a user<br>Note: When used in forum posts and comments, sends a notification to the target user</td>
</tr>
</tbody>
</table>
Links using ID
<table>
<thead>
<tr>
<th>What you type</th>
<th>What you get</th>
<th>Notes</th>
</tr>
</thead>
<tr>
<td>[code]post #1234[/code]</td>
<td>post #1234</td>
<td>Link to post</td>
</tr>
<tr>
<td>[code]asset #1234[/code]</td>
<td>asset #1234</td>
<td>Link to media asset</td>
</tr>
<tr>
<td>[code]topic #1234[/code]</td>
<td>topic #1234</td>
<td>Link to forum topic</td>
</tr>
<tr>
<td>[code]topic #1234/p2[/code]</td>
<td>topic #1234/p2</td>
<td>Link to forum topic (page 2)</td>
</tr>
<tr>
<td>[code]forum #1234[/code]</td>
<td>forum #1234</td>
<td>Link to forum post</td>
</tr>
<tr>
<td>[code]comment #1234[/code]</td>
<td>comment #1234</td>
<td>Link to comment</td>
</tr>
<tr>
<td>[code]pool #1234[/code]</td>
<td>pool #1234</td>
<td>Link to pool</td>
</tr>
<tr>
<td>[code]favgroup #1234[/code]</td>
<td>favgroup #1234</td>
<td>Link to favorite group</td>
</tr>
<tr>
<td>[code]wiki #1234[/code]</td>
<td>wiki #1234</td>
<td>Link to wiki</td>
</tr>
<tr>
<td>[code]user #1234[/code]</td>
<td>user #1234</td>
<td>Link to user</td>
</tr>
<tr>
<td>[code]ban #1234[/code]</td>
<td>ban #1234</td>
<td>Link to ban</td>
</tr>
<tr>
<td>[code]feedback #1234[/code]</td>
<td>feedback #1234</td>
<td>Link to user feedback</td>
</tr>
<tr>
<td>[code]appeal #1234[/code]</td>
<td>appeal #1234</td>
<td>Link to post appeal</td>
</tr>
<tr>
<td>[code]flag #1234[/code]</td>
<td>flag #1234</td>
<td>Link to post flag</td>
</tr>
<tr>
<td>[code]note #1234[/code]</td>
<td>note #1234</td>
<td>Link to translation note</td>
</tr>
<tr>
<td>[code]BUR #1234[/code]</td>
<td>BUR #1234</td>
<td>Link to bulk update request</td>
</tr>
<tr>
<td>[code]alias #1234[/code]</td>
<td>alias #1234</td>
<td>Link to tag alias</td>
</tr>
<tr>
<td>[code]implication #1234[/code]</td>
<td>implication #1234</td>
<td>Link to tag implication</td>
</tr>
<tr>
<td>[code]mod action #1234[/code]</td>
<td>mod action #1234</td>
<td>Link to mod action</td>
</tr>
<tr>
<td>[code]artist #1234[/code]</td>
<td>artist #1234</td>
<td>Link to artist</td>
</tr>
<tr>
<td>[code]issue #1234[/code]</td>
<td>issue #1234</td>
<td>Link to Github issue</td>
</tr>
<tr>
<td>[code]pixiv #1234[/code]</td>
<td>pixiv #1234</td>
<td>Link to Pixiv post</td>
</tr>
<tr>
<td>[code]pawoo #1234[/code]</td>
<td>pawoo #1234</td>
<td>Link to Pawoo post</td>
</tr>
<tr>
<td>[code]seiga #1234[/code]</td>
<td>seiga #1234</td>
<td>Link to NicoSeiga post</td>
</tr>
<tr>
<td>[code]nijie #1234[/code]</td>
<td>nijie #1234</td>
<td>Link to Nijie post</td>
</tr>
<tr>
<td>[code]twitter #1234[/code]</td>
<td>twitter #1234</td>
<td>Link to Twitter post</td>
</tr>
<tr>
<td>[code]deviantart #1234[/code]</td>
<td>deviantart #1234</td>
<td>Link to DeviantArt post</td>
</tr>
<tr>
<td>[code]artstation #1234[/code]</td>
<td>artstation #1234</td>
<td>Link to ArtStation post</td>
</tr>
<tr>
<td>[code]sankaku #1234[/code]</td>
<td>sankaku #1234</td>
<td>Link to Sankaku post</td>
</tr>
<tr>
<td>[code]gelbooru #1234[/code]</td>
<td>gelbooru #1234</td>
<td>Link to Gelbooru post</td>
</tr>
<tr>
<td>[code]yandere #1234[/code]</td>
<td>yandere #1234</td>
<td>Link to Yande.re post</td>
</tr>
</table>
Emoji
Use [code]:smile:[/code] to add emoji. Put the emoji on a line by itself to make it bigger. Click the "Emoji" icon in the top right of the editor to see the list of emoji.
What you type
[code]
Small emoji: :smile:
Big emoji:
:smile:
[/code]
What you get
[quote]
Small emoji: :smile:
Big emoji:
:smile:
[/quote]
Images
Use [code][/code] to embed an image from a post. You can add images by dragging and dropping or copying and pasting an image, or by clicking the "Image" icon in the top right of the editor and pasting in the URL.
<table>
<thead>
<th>What you type</th>
<th>What you get</th>
</thead>
<tr>
<td>[code][/code]</td>
<td>Large image of post</td>
</tr>
<tr>
<td>[code]Caption[/code]</td>
<td>Large image of post with caption</td>
</tr>
<tr>
<td>[code][/code]</td>
<td>Large image of asset</td>
</tr>
<tr>
<td>[code]Caption[/code]</td>
<td>Large image of asset with caption</td>
</tr>
<tr>
<td>[code]* [/code]</td>
<td>Thumbnail image of post</td>
</tr>
<tr>
<td>[code]* Caption[/code]</td>
<td>Thumbnail image of post with caption</td>
</tr>
<tr>
<td>[code]* [/code]</td>
<td>Thumbnail image of asset</td>
</tr>
<tr>
<td>[code]* Caption[/code]</td>
<td>Thumbnail image of asset with caption</td>
</tr>
</table>
Paragraphs
Paragraphs are separated by blank lines.
A single line break inside a paragraph
creates a new line
instead of a new paragraph.
Horizontal rules
Use [code][hr][/code] on a line by itself to create a horizontal rule, like this:
[hr]
Headings
Use [code]h4. Heading[/code], [code]h5. Heading[/code], or [code]h6. Heading[/code] to create a heading.
What you type
[code]
Heading
Heading
Heading
[/code]
What you get
[quote]
Heading
Heading
Heading
[/quote]
Linkable headings
Use [code]h4#section-name. text[/code] to create a heading that can be hyperlinked with [code]link[/code].
What you type
[code]
Example heading
[/code]
What you get
[quote]
Example heading
[/quote]
Spoilers
Use [code][/code] to create spoilers.
What you type
[code]
Darth Vader is Luke Skywalker's father.
You can put multiple paragraphs in spoilers.
Like this.
[/code]
What you get
[quote]
Darth Vader is Luke Skywalker's father.
You can put multiple paragraphs in spoilers.
Like this.
[/quote]
Quotes
Use [code][quote][/quote][/code] to create quotes.
What you type
[code]
[quote]
Chiyo-dad said:
I wish I were a bird.
[/quote]
[/code]
What you get
[quote]
Chiyo-dad said:
I wish I were a bird.
[/quote]
What you type
[code]
[quote]
[quote]
Hello everyone~!
[/quote]
Oh my gah!
[/quote]
[/code]
What you get
[quote]
[quote]
Hello everyone~!
[/quote]
Oh my gah!
[/quote]
Lists
Start a line with an '*' to make a list.
What you type
[code]
- Item 1
- Item 2
- Item 2.1
- Item 2.1.1
- Item 2.2
- Item 3
[/code]
What you get
[quote]
- Item 1
- Item 2
- Item 2.1
- Item 2.1.1
- Item 2.2
- Item 3
[/quote]
Expands
Use [code][/code] to create collapsible blocks of text. Use [code][/code] to add a custom title.
What you type
[code]
[/code]
What you get
What you type
[code]
[/code]
What you get
Tables
Use HTML table tags to make a table.
[table]
[thead]
[tr]
[th colspan="3"]Table Tags[/th]
[/tr]
[tr]
[th]DText Tags[/th]
[th]Optional Attributes[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td][code][table][/code][/td]
[td][/td]
[/tr]
[tr]
[td][code][thead][/code][/td]
[td][code]align[/code][/td]
[/tr]
[tr]
[td][code][tbody][/code][/td]
[td][code]align[/code][/td]
[/tr]
[tr]
[td][code][tr][/code][/td]
[td][code]align[/code][/td]
[/tr]
[tr]
[td][code][col][/code][/td]
[td][code]align[/code], [code]span[/code][/td]
[/tr]
[tr]
[td][code][colgroup][/code][/td]
[td][/td]
[/tr]
[tr]
[td][code][th][/code][/td]
[td][code]align[/code], [code]colspan[/code], [code]rowspan[/code][/td]
[/tr]
[tr]
[td][code][td][/code][/td]
[td][code]align[/code], [code]colspan[/code], [code]rowspan[/code][/td]
[/tr]
[/tbody]
[/table]
To add attributes use the syntax: [code][td align="center"][/code].
[table]
[thead]
[tr]
[th colspan="2"]Table Element Attributes[/th]
[/tr]
[tr]
[th]Attributes[/th]
[th]Attributes Values[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td][code]align[/code][/td]
[td][code]left[/code], [code]right[/code], [code]center[/code], [code]justify[/code][/td]
[/tr]
[tr]
[td][code]span[/code][/td]
[td]positive integer[/td]
[/tr]
[tr]
[td][code]colspan[/code][/td]
[td]positive integer[/td]
[/tr]
[tr]
[td][code]rowspan[/code][/td]
[td]positive integer[/td]
[/tr]
[/tbody]
[/table]
What you type
[code]
[table]
[thead]
[tr]
[th colspan="3" align="center"]Table[/th]
[/tr]
[tr align="center"]
[th]A[/th]
[th]B[/th]
[th]C[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td align="left"]L[/td]
[td align="center"]C[/td]
[td align="right"]R[/td]
[/tr]
[tr]
[td]---1---[/td]
[td]---2---[/td]
[td]---3---[/td]
[/tr]
[/tbody]
[/table]
[/code]
What you get
[table]
[thead]
[tr]
[th colspan="3" align="center"]Table[/th]
[/tr]
[tr align="center"]
[th]A[/th]
[th]B[/th]
[th]C[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td align="left"]L[/td]
[td align="center"]C[/td]
[td align="right"]R[/td]
[/tr]
[tr]
[td]---1---[/td]
[td]---2---[/td]
[td]---3---[/td]
[/tr]
[/tbody]
[/table]
HTML style tags
DText supports the following HTML style tags:
[table]
[thead]
[tr]
[th]HTML Style[/th]
[th]DText[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td][code]<b>[/code], or [code]<strong>[/code][/td]
[td][code][b][/code][/td]
[/tr]
[tr]
[td][code]<i>[/code], or [code]<em>[/code][/td]
[td][code][i][/code][/td]
[/tr]
[tr]
[td][code]<u>[/code][/td]
[td][code][u][/code][/td]
[/tr]
[tr]
[td][code]<s>[/code][/td]
[td][code][s][/code][/td]
[/tr]
[tr]
[td][code]<tn>[/code][/td]
[td][code][/code][/td]
[/tr]
[tr]
[td][code]<spoiler>[/code][/td]
[td][code]
[/code][/td]
[/tr]
[tr]
[td][code]<nodtext>[/code][/td]
[td][code][nodtext][/code][/td]
[/tr]
[tr]
[td][code]<co[/code][code]de>[/code][/td]
[td][code][co[/code][code]de][/code][/td]
[/tr]
[tr]
[td][code]<br>[/code][/td]
[td][code] [/code][/td]
[/tr]
[tr]
[td][code]<a href="http://example.com">click here</a>[/code][/td]
[td][code]click here[/code][/td]
[/tr]
[tr]
[td][code]<hr>[/code][/td]
[td][code][hr][/code][/td]
[/tr]
[tr]
[td][code]<quote>[/code][/td]
[td][code][quote][/code][/td]
[/tr]
[tr]
[td][code]<expand>[/code][/td]
[td][code][/code][/td]
[/tr]
[tr]
[td][code]<table>[/code][/td]
[td][code][table][/code][/td]
[/tr]
[tr]
[td][code]<thead>[/code][/td]
[td][code][thead][/code][/td]
[/tr]
[tr]
[td][code]<tbody>[/code][/td]
[td][code][tbody][/code][/td]
[/tr]
[tr]
[td][code]<tr>[/code][/td]
[td][code][tr][/code][/td]
[/tr]
[tr]
[td][code]<col>[/code][/td]
[td][code][col][/code][/td]
[/tr]
[tr]
[td][code]<colgroup>[/code][/td]
[td][code][colgroup][/code][/td]
[/tr]
[tr]
[td][code]<th>[/code][/td]
[td][code][th][/code][/td]
[/tr]
[tr]
[td][code]<td>[/code][/td]
[td][code][td][/code][/td]
[/tr]
[/tbody]
[/table]