@Yak's Journals
This journal is a test for the new BBCode parser I am working on. It is not ready yet.
The codes for the current parser of FA can be found on my previous journal: http://www.furaffinity.net/journal/441426/


BBCode verification sheet

This journal is going to be used as a verification sheet for a replacement BBCode parser currently in development.
The parser is based off pecl_bbcode PHP extension. The goal is to write a proper replacement to the current BBCode and URL parser, which currently is just a collection of regular expressions that process the text before displaying it.
To those viewing this journal on FA it would likely appear to be horribly broken. The actual replacement parser is being implemented on a closed sandbox; that's where the page would look normal.

Initially only the subset of BBCode tags that already exist on FA are going to be (re)implemented, but you are welcomed to new tags in the comments; things like [code][list][/code]s and [code][video][/code] and so on.


Basic formatting


[code]bold text[/code]: bold text
[code]italic text[/code]: italic text
[code]underlined text[/code]: underlined text
[code]striked out text[/code]: striked out text
[code]Text supscripted[/code]: Text supscripted
[code]Text subscripted[sub][/code]: Text [sub]subscripted
[code]red text[/code]: red text

[code]
Left aligned text
[/code]:
Left aligned text

[code]
Centered text
[/code]:
Centered text

[code]
Right aligned text
[/code]:
Right aligned text



Text sizing


[code]

H1 headline

[/code]:

H1 headline

[code]

H2 headline

[/code]:

H2 headline

[code]

H3 headline

[/code]:

H3 headline

[code]

H4 headline

[/code]:

H4 headline

[code]
H5 headline
[/code]:
H5 headline

[code][size=1]size 1 text[/size][/code]: [size=1]size 1 text[/size]
[code][size=2]size 2 text[/size][/code]: [size=2]size 2 text[/size]
[code][size=3]size 3 text[/size][/code]: [size=3]size 3 text[/size]
[code][size=4]size 4 text[/size][/code]: [size=4]size 4 text[/size]
[code][size=5]size 5 text[/size][/code]: [size=5]size 5 text[/size]


Lists


[code]
[list=1]
[*]list item 1
[*]list item 2
[/list]
[/code]:
[list=1]
[*]list item 1
[*]list item 2
[/list]

[code]
[list=01]
[*]list item 1
[*]list item 2
[/list]
[/code]:
[list=01]
[*]list item 1
[*]list item 2
[/list]

[code]
[list=a]
[*]list item 1
[*]list item 2
[/list]
[/code]:
[list=a]
[*]list item 1
[*]list item 2
[/list]

[code]
[list=A]
[*]list item 1
[*]list item 2
[/list]
[/code]:
[list=A]
[*]list item 1
[*]list item 2
[/list]

[code]
[list=i]
[*]list item 1
[*]list item 2
[/list]
[/code]:
[list=i]
[*]list item 1
[*]list item 2
[/list]

[code]
[list=I]
[*]list item 1
[*]list item 2
[/list]
[/code]:
[list=I]
[*]list item 1
[*]list item 2
[/list]



[code][progress=75]description[/progress][/code]: [progress=75]description[/progress]
[code][hr][/code]: [hr]
[code][divider][/code]: [divider]


Smilies

[code]All your base are belong to us©[/code]: All your base are belong to us©
[code]'Sup™[/code]: 'Sup™
[code]Spam®[/code]: Spam®

































Quotations


[code]
single line, un-named quote
[/code]:
single line, un-named quote



[code]
multi line,
un-named quote
[/code]:
multi line,
un-named quote


[code]
yak wrote:single line, named quote
[/code]:
yak wrote:single line, un-named quote


[code]
yak wrote:multi line,
named quote
[/code]:
yak wrote:multi line,
named quote


[code]
yak wrote:multi line, named quote with bbcode content:
[code]bold text[/code]: bold text
[code]italic text[/code]: italic text
[code]underlined text[/code]: underlined text
[code]striked out text[/code]: striked out text
[/code]:
yak wrote:multi line, named quote with bbcode content:
[code]bold text[/code]: bold text
[code]italic text[/code]: italic text
[code]underlined text[/code]: underlined text
[code]striked out text[/code]: striked out text



[code]
this is [quote]an example of
a series of [quote]nested quotes
[/quote][/quote][/code]:
this is [quote]an example of
a series of [quote]nested quotes
[/quote][/quote]



URLs and links


[code]http://www.furaffinity.net[/code]: http://www.furaffinity.net
[code]www.furaffinity.net[/code]: www.furaffinity.net
[code]https://www.furaffinity.net/trac/tr.....cket/1[/code]: https://www.furaffinity.net/trac/trunk/ticket/1
[code]http://furaffinity.net?a=b&c=d[/code]: http://furaffinity.net?a=b&c=d
[code]some@email.com[/code]:

[code]yak's page[/code]: yak's page
[code]yak's page as a relative URL[/code]: yak's page as a relative URL


Embeddable videos


[code][video]http://www.youtube.com/watch?v=p8t4.....video][/code]: [video]http://www.youtube.com/watch?v=p8t41avFuCc[/video]
[code][video]http://vimeo.com/8623092[/video][/code]: [video]http://vimeo.com/8623092[/video]




Site-specific features


[code]yak yak[/code]: yak yak
[code]yak[/code]: yak
[code]yak[/code]: yak


[code][369022, 98655, 375898][/code]: [369022, 98655, 375898]
Posted:
6 years ago    

Comments:
Comments (102)   

[Read more...]

Text formatting

[b]bold text[/b] --> bold text. Shortcut: CTRL+B
[i]italic text[/i] --> italic text. Shortcut: CTRL+I
[u]underlined text[/u] --> underlined text. Shortcut: CTRL+U
[s]striked out text[/s] --> striked out text
Text [sup]supscripted[/sup] --> Text supscripted
Text [sub]subscripted[/sub] --> Textsubscripted
[color=green]text[/color] --> This is green , and this is #FFCC00. Expanded list here, you can use either the color name or the "hex color code" that starts with a "#".
[spoiler]spoiler text[/spoiler] -->
spoiler text


[h1]H1 heading[/h1]

H1 heading


[h2]H2 heading[/h2]

H2 heading


[h3]H3 heading[/h3]

H3 heading


[h4]H4 heading[/h4]

H4 heading


[h5]H5 heading[/h5]
H5 heading


[quote]text[/quote]:
Unnamed multilied
quote


[quote=yak, in his journal]text[/quote]:
yak, in his journal wrote:[b]: bold text
[i]: italic text
[u]: underlined text
[s]: striked out text
[sup]: Hello world tm
[sub]: Variable that has subscripted stuff


ATTENTION!
Nested quotes are not supported yet. So make sure you are not using a quote inside another quote, or it will break.




[left]Left aligned text [/left]


[center]Centered text [/center]


[right]Right aligned text [/right]








Links

full urls --> http://www.furaffinity.net
short urls --> www.furaffinity.net
urls with params --> https://www.furaffinity.net/trac/trunk/ticket/1
urls with params --> http://furaffinity.net?a=b&c=d
emails:

[url=http://www.furaffinity.net/user/yak]yak's page[/url] --> yak's page

Relative URLs
[url=/user/yak]yak's page as a relative URL[/url] --> yak's page as a relative URL
[url=/view/98655]some submissions i've been using as an example in this journal, also a relative URL[/url] --> some submissions i've been using as an example in this journal, also a relative URL

Long URLs will be automatically compressed to the first 60 or 70 or so characters.

[yt]http://www.youtube.com/watch?v=p8t41avFuCc&hl=en_US&fs=1&rel=0[/yt]
Youtube embedding works only in journal bodies, and nowhere else.
Both https://www.youtube.com/watch?v=p8t41avFuCc full video URLs and https://youtu.be/p8t41avFuCc "share" URLs are parsed.
V V V V V
[yt]https://www.youtube.com/watch?v=p8t41avFuCc[/yt]

[yt]https://youtu.be/p8t41avFuCc[/yt]


(c) --> All your base are belong to us©
(tm) --> 'Sup™
(r) --> Spam®

Note: The letters are not case-sensitive, it can be either (C), or (c).



More then 5 dashes in a line are replaced with a horisontal line
Note: One newline character above and one newline character below the line will be stripped. If there are more then one newline after those dashes - they will be rendered.





Site-specific features



:iconusername: -or- @@username --> yak yak --- replace "username" with the same text at is is being shown in the URL of the userpage (user names in URL are being stripped of some characters).
update: Now it works with normal usernames, not just their URL variants. So, If you previously tried to use :iconusername_with_underscore_or_such:, instead of :iconusernamewithunderscoreorsuch:, it also will work.

update 18.01.2008
:usernameicon: --> yak --- same as :iconusername:, only without the user's name in it. just an avatar.

:linkusername: -or- @username --> yak --- again replace the username part.





Comic navigation links

[369022, 98655, 375898] --> [369022, 98655, 375898] ---- This is a quick way to make the navigation links for those artist that do comics.
Notes
1. Only one whitespace character is allowed anywhere between the numbers, semicolons and square brackets.
2. To disable a certain link, for example you don't have the "next" link on your latest piece or the "first" link on your first one, replace the ID with a dash, "-". and that link will be disabled.
3. Works only only in submission descriptions.







Feel free to test these 'features', commenting on this journal entry.
Also, feel free to request features that could be of use. If they will be possible, and will be useful for many - they will be implemented.
Posted:
10 years ago    

Comments:
Comments (1397)   

[Read more...]

Verification sheet for the BBCode parser replacement (6 years ago)
FA's text parsing macros. (10 years ago)