Fun with BBcode. · 6:21am May 7th, 2022
Having fun with BBcode as if there were no tomorrow!
Paragraphs and line breaks:
[paragraph starts][line]
[next line][paragraph ends]
[another paragraph starts]
Indenting:
[indent starts=indent level]indented text[indent ends]
Default indent level: 1.
Max. indent level: 4.
(normal text)
(indented text)
(normal text again)
(normal text)
(indented text with explicit indent level of 2)
(normal text again)
Pre-formatted lines, which keep line breaks:
[pre-line starts]text with line breaks kept[pre-line ends]
(normal text)
(pre-lined)
(normal text again)
Inline formatting (across paragraphs):
Bold, italicised, underlined, coloured, transparent, sized, monospaced text etc..
Should be obvious.
(normalboldnormalitalicisednormalunderlinednormalrednormalgreennormalbluenormal50% opaquenormalsized to 50%normalin small capsnormalcrossed outnormalmonospaced (and also downsized for some reason)normal)
Inline formatting (within one paragraph!):
(normalstrong, that is bold (can be nested)normalem, that is emphasis (also can be nested)normalsub, that is subscriptnormalsup, that is superscriptnormal before spoilersspoiler! Told you not to peek!normal after spoilers)
Block formatting:
Like HTML.
(normal
h1
normal
h2
normal
h3
normal
h4
normal
h5
normal
h6
normal before hr
normal after hr, before quote
quoted text
normal after quote, before quote=source
quoted text
normal after quote=source, before "center" (not "centre"!)
centred text
normal after "center", before "right"
aligned to right
normal after "right", before "pre" (monospaced, preserves blanks, and also downsized for some reason)
pre
normal after "pre", before "figure"
normal after "figure")
Figures need explanation: [figure starts=floating]content[figure ends].
"floating" is either "left", or "right".
(before "figure=left"
after "figure=left")
(before "figure=right"
after "figure=right")
Lists:
[list starts][bullet]item text etc.[list ends]
When on one line:
(before "list"
- in list, before "*"
- after "*" (item1), before "*"
- after "*" (item2), before "*"
- after "*" (item3), in list
outta list)
When on multiple lines (the way you'd expect a list to be formatted, with items inlined):
(before "list"
- in list, before "*"
- after "*" (item1), before "*"
- after "*" (item2), before "*"
- after "*" (item3), in list
outta list)
Lists can be nested.
The "list" tag may have a parameter:
[list=1]
- Numeric[list=a]
- Lower Alpha[list=A]
- Upper Alpha[list=i]
- Lower Roman Numerals[list=I]
- Upper Roman Numerals
[list=1]
- Numeric[list=a]
- Lower Alpha[list=A]
- Upper Alpha[list=i]
- Lower Roman Numerals[list=I]
- Upper Roman Numerals
[list=1]
- Numeric[list=a]
- Lower Alpha[list=A]
- Upper Alpha[list=i]
- Lower Roman Numerals[list=I]
- Upper Roman Numerals
[list=1]
- Numeric[list=a]
- Lower Alpha[list=A]
- Upper Alpha[list=i]
- Lower Roman Numerals[list=I]
- Upper Roman Numerals
[list=1]
- Numeric[list=a]
- Lower Alpha[list=A]
- Upper Alpha[list=i]
- Lower Roman Numerals[list=I]
- Upper Roman Numerals
Links:
Even though a hyper-reference is wrapped in "a", the full format is:
[url starts=hyper-reference]text inside "a"[url ends]
(before "url=..."inside "url=..."after "url=...")
(Sneaking links in, as if there were no tomorrow!)
Important: on fimfiction.net relative URI-s are supported!
(before "url=/user/1/"inside "url=..." (leads to knighty's profile)after "url=...")
(before "url=/manage/blog-posts/new"inside "url=..." (leads to page for new-blog creation)after "url=...")
(before "url=/story/473490/31/"inside "url=..." (should lead to a chapter in a story)after "url=...")
(before "url=/story/473490/"inside "url=..." (should lead to the story itself)after "url=...")
(Again, sneaking links in, as if there were no tomorrow!)
This is particularly important for choose-your-own-adventure stories, as I intend to generate chapters from some kind of source...
There are also: "email", "img", "embed", "page_break", "code", "codeblock", "mathblock" and "icon".
But, maybe, later...
The help page sure was of, heh, help!