• The site has now migrated to Xenforo 2. If you see any issues with the forum operation, please post them in the feedback thread.
  • Due to issues with external spam filters, QQ is currently unable to send any mail to Microsoft E-mail addresses. This includes any account at live.com, hotmail.com or msn.com. Signing up to the forum with one of these addresses will result in your verification E-mail never arriving. For best results, please use a different E-mail provider for your QQ address.
  • For prospective new members, a word of warning: don't use common names like Dennis, Simon, or Kenny if you decide to create an account. Spammers have used them all before you and gotten those names flagged in the anti-spam databases. Your account registration will be rejected because of it.
  • Since it has happened MULTIPLE times now, I want to be very clear about this. You do not get to abandon an account and create a new one. You do not get to pass an account to someone else and create a new one. If you do so anyway, you will be banned for creating sockpuppets.
  • Due to the actions of particularly persistent spammers and trolls, we will be banning disposable email addresses from today onward.
  • The rules regarding NSFW links have been updated. See here for details.

BB-Code

tehelgee

The stern gaze of justice.
Administrator
Joined
Feb 12, 2013
Messages
2,910
Likes received
12,750
In this thread, I will show off new BB-code as we get it.

TABS

Code:
[tabs]
	[tab=Title 1]Content 1[/tab]
	[tab=Title 2]Content 2[/tab]
[/tabs]

  • Content 1
  • Content 2




Tables
Code:
[xtable]
	{tbody}
		{tr}
			{td} {/td}
			{td} {/td}
		{/tr}
		{tr}
			{td} {/td}
			{td} {/td}
		{/tr}
	{/tbody}
[/xtable]

   
   
For tables, it is much more user-friendly to use Table button in the rich text editor. Unless you're a coder, I guess.



Horizontal Rule
Code:
[hr][/hr]



The line above is the bb-code in action. What can be placed inside, I don't know.



Latex
Code:
[LATEX] c=\sqrt{a^2+b^2} [/LATEX]

LaTeX:
\[ c=\sqrt{a^2+b^2} \]



Highlighter

Code:
[hl]Bleh.[/hl] [hl=green]Bleh.[/hl] [hl=blue]Bleh.[/hl] [hl=orange]Bleh.[/hl]

[hl]Bleh.[/hl] [hl=green]Bleh.[/hl] [hl=blue]Bleh.[/hl] [hl=orange]Bleh.[/hl]



Accordion

Code:
[accordion=]
{slide=Lorem ipsum|right}Lorem ipsum dolor sit amet, consectetur adipiscing elit.{/slide}
{slide=Morbi vitae|center|open}Morbi vitae turpis hendrerit, bibendum ante vel, sodales lorem.{/slide}
[/accordion]

Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Morbi vitae
Morbi vitae turpis hendrerit, bibendum ante vel, sodales lorem.




As more code gets added, I will edit this post to display them in code and in use.
 
Last edited:
Test to see if roll is online yet.
[dice]1d20+1[/dice]
 
... Not sure I trust this roller...

[dice]1d20+1[/dice]


[dice]1d20+1[/dice]
 
... Not sure I trust this roller...

[dice]1d20+1[/dice]


[dice]1d20+1[/dice]

It doesn't do equations. It's a flat dice roller without modifications. 2d20 will roll 2 twenty-sided dice and tell you what each are, it won't add them.
 
It doesn't do equations. It's a flat dice roller without modifications. 2d20 will roll 2 twenty-sided dice and tell you what each are, it won't add them.
I remember that the original SV dice roller has had the issue of using the simple and biased rand() function. (Link.)

Have we managed to avoid this problem?
 
[ tab]
{slide=title 1} Stuff{/slide}
{slide=title 2} Stuff{/slide}

[ /tab]
 
Code:
[tabs]
	[tab=The First]
		[xtable=skin1|bcenter]
			{tbody}
				{tr}
					{td}1{/td}
					{td}2{/td}
					{td}3{/td}
					{td}4{/td}
				{/tr}
				{tr}
					{td}5{/td}
					{td}6{/td}
					{td}7{/td}
					{td}8{/td}
				{/tr}
			{/tbody}
		[/xtable]
	[/tab]
	[tab=The Second]
		[tabs]
			[tab=The Second First]
				[xtable=skin1|bright]
					{tbody}
						{tr}
							{td}1{/td}
							{td}2{/td}
						{/tr}
						{tr}
							{td}3{/td}
							{td}4{/td}
						{/tr}
						{tr}
							{td}5{/td}
							{td}6{/td}
						{/tr}
					{/tbody}
				[/xtable]
			[/tab]
		[/tabs]
	[/tab]
[/tabs]



So, tables can be put into tabs.

Praise be unto alethiophile!
 
Size tests: small, large, in pixels (twice), [size=5pt]in points[/size].

size size size size size size size size size size size size
 
Last edited:
There now exist abbreviations.

That BB code seems, well, backwards. Why put the long bit inside the brackets?

Code:
Instead of this: [abbr=expanded]abbreviations[/abbr].
 
We'd use this: [abbr=abbreviations]expanded[/abbr].

Think it'd be possible to flip it around?
 
That BB code seems, well, backwards. Why put the long bit inside the brackets?

Code:
Instead of this: [abbr=expanded]abbreviations[/abbr].
 
We'd use this: [abbr=abbreviations]expanded[/abbr].

Think it'd be possible to flip it around?
The current orientation is true to the way it works in the underlying HTML, and also to how it worked on SMF. Since the purpose of the new tag is to make old posts look better, maintaining the SMF syntax is indicated.
 
Okay, it's not actually a BB code, but here's a new feature anyway: dice rolling.

Click the 'roll dice' button next to 'reply' on one of your own posts. The result will be echoed in the post itself, and also on the master list here (to avoid cheating).

[dice]2[/dice]
 
DICE
[dice]3[/dice]
[dice]4[/dice]
 
Last edited:
The max faces is configurable, if people really want higher than D100 for some reason.

The max dice per roll I'm leaving at 10, just because otherwise it'll start overflowing screens.
 

Users who are viewing this thread

Back
Top