Miyuu's Image Board

help:dtext

Table of Contents* "Basic formatting":#dtext-basic-formatting
* "Links":#dtext-links
* "Links Using ID":#dtext-id-links
* "Images":#dtext-images
* "Paragraphs":#dtext-paragraphs
* "Horizontal Rules":#dtext-horizontal-rules
* "Headings":#dtext-headings
* "Quotes":#dtext-quotes
* "Lists":#dtext-lists
* "Expands":#dtext-expands
* "Tables":#dtext-tables
* "HTML":#dtext-html

DText is the name of Danbooru's custom text formatting language. It's a mishmash of several markup languages, including BBCode, MediaWiki, Markdown, and HTML.


h4#basic-formatting. Basic formatting

What you typeWhat you getNotes
bold
bold
italics
italics
underline
underline
[s]strikethrough[/s]
strikethrough
note
note
ssh!
ssh!
[nodtext]nodtext[/nodtext]
[nodtext]nodtext[/nodtext]Ignore DText tags
[co
de]code[/co
de]
code
Ignore DText and format as code
line[br]break
line[br]breakInsert a line break[br](Allows line breaks to be specified in line)

h4#links. Links

What you typeWhat you getNotes
https://danbooru.donmai.us
https://danbooru.donmai.us Basic link
Basic link with delimiters
Danbooru
DanbooruLink with custom text
[Danbooru](https://danbooru.donmai.us)
[Danbooru](https://danbooru.donmai.us)Markdown style link
[https://danbooru.donmai.us](Danbooru)
[https://danbooru.donmai.us](Danbooru)Reverse Markdown style link
Danbooru
DanbooruHTML style link
[url]https://danbooru.donmai.us[/url]
https://danbooru.donmai.usBBCode style link
Danbooru
DanbooruBBCode style link with custom text
ToS
ToSLink to a Danbooru page
"Here":[#dtext-basic-formatting]
"Here":[#dtext-basic-formatting]Link to a specific section of the current page
Kantai Collection
Kantai CollectionLink to a wiki
Kantai Collection#External-links
Kantai Collection#External-linksLink to a specific section of a wiki article
Note: The first letter of the anchor must be capitalized when using this link syntax
Note: When the link is parsed, the anchor will be converted to lowercase
Note: When the link is parsed, "
dtext-
" will be prepended to the anchor
Kancolle
KancolleLink to a wiki with custom text
Fate (series)
Fate (series)Link to a wiki without the qualifier
cats, 1960s
cats, 1960sAdjacent text becomes part of the link
kantai_collection comic
kantai_collection comicLink to a tag search
kantai_collection comic|Kancolle Comics
kantai_collection comic|Kancolle ComicsLink to a tag search with custom text
@evazion
<@evazion>Link to a user

h4#id-links. Links using ID

What you typeWhat you getNotes
post #1234
post #1234Link to post
asset #1234
asset #1234Link to media asset
topic #1234
topic #1234Link to forum topic
topic #1234/p2
topic #1234/p2Link to forum topic (page 2)
forum #1234
forum #1234Link to forum post
comment #1234
comment #1234Link to comment
pool #1234
pool #1234Link to pool
favgroup #1234
favgroup #1234Link to favorite group
wiki #1234
wiki #1234Link to wiki
user #1234
user #1234Link to user
ban #1234
ban #1234Link to ban
feedback #1234
feedback #1234Link to user feedback
appeal #1234
appeal #1234Link to post appeal
flag #1234
flag #1234Link to post flag
note #1234
note #1234Link to translation note
BUR #1234
BUR #1234Link to bulk update request
alias #1234
alias #1234Link to tag alias
implication #1234
implication #1234Link to tag implication
mod action #1234
mod action #1234Link to mod action
artist #1234
artist #1234Link to artist
issue #1234
issue #1234Link to Github issue
pixiv #1234
pixiv #1234Link to Pixiv post
pawoo #1234
pawoo #1234Link to Pawoo post
seiga #1234
seiga #1234Link to NicoSeiga post
nijie #1234
nijie #1234Link to Nijie post
twitter #1234
twitter #1234Link to Twitter post
deviantart #1234
deviantart #1234Link to DeviantArt post
artstation #1234
artstation #1234Link to ArtStation post
sankaku #1234
sankaku #1234Link to Sankaku post
gelbooru #1234
gelbooru #1234Link to Gelbooru post
yandere #1234
yandere #1234Link to Yande.re post

h4#images. Images

What you typeNotes
!post #1234
Large image of post
!post #1234: Caption
Large image of post with caption
!asset #1234
Large image of asset
!asset #1234: Caption
Large image of asset with caption
* !post #1234
Thumbnail image of post
* !post #1234: Caption
Thumbnail image of post with caption
* !asset #1234
Thumbnail image of asset
* !asset #1234: Caption
Thumbnail image of asset with caption

h4#paragraphs. Paragraphs


Paragraphs are separated by blank lines.


A single line break inside a paragraph

creates a new line

instead of a new paragraph.


h4#horizontal-rules. Horizontal rules


Use

[hr]
on a line by itself to create a horizontal rule, like this:


[hr]


h4#headings. Headings


Use

h4. text
,
h5. text
, or
h6. text
to create a heading:

[nodtext]h4. Heading[/nodtext]

h5. [nodtext]h5. Heading[/nodtext]
h6. [nodtext]h6. Heading[/nodtext]


h4#quotes. Quotes



[quote]
Chiyo-dad said:

I wish I were a bird.
[/quote]


Becomes:




Chiyo-dad said:


I wish I were a bird.


Quotes can be nested:



[quote]
[quote]
Hello everyone~!
[/quote]

Oh my gah!
[/quote]


Becomes:




[quote]

Hello everyone~!


Oh my gah!

[/quote]


h4#lists. Lists


Start a line with an '*' to make a list:



* Item 1
* Item 2
** Item 2.a
** Item 2.b
* Item 3


Becomes:


* Item 1

* Item 2

** Item 2.a

** Item 2.b

* Item 3


h4#expands. Expands


Use

Expand
to create collapsible blocks of text:



[expand]
Text that is hidden by default. Click the "Show" button to expand the block and make the text visible.


Becomes:

ExpandThis text is hidden by default. Clicking the "Show" button will expand the block.

Use

Custom title
to add a custom title:



[expand=Custom title]
This text is hidden by default. Clicking the "Show" button will expand the block.


Becomes:

Custom titleThis text is hidden by default. Clicking the "Show" button will expand the block.

h4#tables. 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]Valid Optional Attributes[/th]

[/tr]

[/thead]

[tbody]

[tr]

[td]

[table]
[/td]

[td][/td]

[/tr]

[tr]

[td]
[thead]
[/td]

[td]
align
[/td]

[/tr]

[tr]

[td]
[tbody]
[/td]

[td]
align
[/td]

[/tr]

[tr]

[td]
[tr]
[/td]

[td]
align
[/td]

[/tr]

[tr]

[td]
[col]
[/td]

[td]
align
,
span
[/td]

[/tr]

[tr]

[td]
[colgroup]
[/td]

[td][/td]

[/tr]

[tr]

[td]
[th]
[/td]

[td]
align
,
colspan
,
rowspan
[/td]

[/tr]

[tr]

[td]
[td]
[/td]

[td]
align
,
colspan
,
rowspan
[/td]

[/tr]

[/tbody]

[/table]


To use the optional table element attributes use this syntax:

[
 
="
"]


Note: You can specify more than one valid attribute on an element.


[table]

[thead]

[tr]

[th colspan="2"]Table Element Attributes[/th]

[/tr]

[tr]

[th]Attributes[/th]

[th]Attributes Values[/th]

[/tr]

[/thead]

[tbody]

[tr]

[td]

align
[/td]

[td]
left
,
right
,
center
,
justify
[/td]

[/tr]

[tr]

[td]
span
[/td]

[td]positive integer[/td]

[/tr]

[tr]

[td]
colspan
[/td]

[td]positive integer[/td]

[/tr]

[tr]

[td]
rowspan
[/td]

[td]positive integer[/td]

[/tr]

[/tbody]

[/table]


Example:



[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]


Becomes:


[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]


h4#html. 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]

, or
[/td]

[td]
[b]
[/td]

[/tr]

[tr]

[td]
, or
[/td]

[td]
[i]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[u]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[s]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[tn]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[spoiler]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[nodtext]
[/td]

[/tr]

[tr]

[td]
de>
[/td]

[td]
[co
de]
[/td]

[/tr]

[tr]

[td]

[/td]

[td]
[br]
[/td]

[/tr]

[tr]

[td]
click here
[/td]

[td]
click here
[/td]

[/tr]

[tr]

[td]

[/td]

[td]
[hr]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[quote]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[expand]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[table]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[thead]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[tbody]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[tr]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[col]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[colgroup]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[th]
[/td]

[/tr]

[tr]

[td]
[/td]

[td]
[td]
[/td]

[/tr]

[/tbody]

[/table]