Easy tables implemented today!
No need for more messy numerical posting without proper formatting. Create tables by comma-separated values easily.
This is the syntax:
[table=,]
1,2,3,4
A,B,C,D
E,F,G,H
[/table]
Resulting in:
[table=,]
1,2,3,4
A,B,C,D
E,F,G,H
[/table]
Each line is a row. Each comma-separated value makes a column. First row makes titles bold.
Let's have a look at the syntax again:
[table=,]
Spin,Bet,Won
1,1,35
2,1,34
3,1,33
[/table]
It is important to notice the highlighted part as it is necessary to tell the forum software you are intending to create a table with commas (as opposed to a regular [table] tag, which requires the use of [tr] and [td] like web programming does).
Also, for easy sorting, you can click on the first row's bold text. Try it! See the sorting effect by clicking several times on "Spin" below:
[table=,]
Spin,Bet,Won
1,1,35
2,1,34
3,1,33
[/table]
These are the instructions, hopefully this erradicates the common hard-to-understand displaying of posted text-only tables. :)
Have fun formatting your numerical tables the very easy way!
Victor
APPENDIX: What happens when you actually need to have commas within a table cell?
You have to replace the character in [table=,] for any other character you aren't using, for instance: [table=+] or [table=-] or [table=|] whatever character you know you won't be using in your displayed data.
As easy as it sounds, you can include commas within cells this way:
[table=-]
a-b-c-d-e-f
1,5-2,6-3,8-4-5,9-6
[/table]
Results in:
[table=-]
a-b-c-d-e-f
1,5-2,6-3,8-4-5,9-6
[/table]
Easy indeed!
:)
Victor
The table function does work correctly on the post, but it didn't show correctly on the preview, so I thought it wasn't working.
Just advising others about this preview behavior.