ze
20.01.06, 14:40:34
Halli Hallo,
wir haben einen neuen BB Code, der [.table][./table] heisst (ohne die Punkte natürlich) und erlaubt, Tabellen zu posten. Auch wenn das konkret für die meisten wohl nicht sehr relevant sein wird, kann es dem Team helfen, wenn es um redaktionelle Beiträge geht (zB Fussballergebnisse, Tippspielstände, etc.)
Unten die Beschreibung (auf englisch, direkt von vbulletin.org) wie es funktioniert:
How it works :
1) starting code is or [table 1 2 3] where
1 2 3 any numbers separated by space
first - border
second - cellpadding
third - cellspacing
- ending tag is always
- table lines separated by line break
- each line can have 7 styles. To specify a style add in the beginning number and ^ symbol without spaces
example:
2^
you may skip 7^ - it is default (alt1) style
- cells in line separated by |
- there is no need to add | before first and after last cell
- each cell can have each own align. Use align mark as a first symbol of cell without spaces
blank (default) - left
= - center
~ - right
- if number of cells different in lines, last cell of shorter lines will get colspan= with needed number
so table in post may look like
1|2|test 16798789789797979799879797979|4|5|6|7
1^~right with colspan
2^333|=center with colspan
3^1|2|left with colspan
4^1|=center without colspan|3|4|5|6|7
5^1|blablabla|3|4|5
6^1|2|3|4|5|6|7
Minor bugs:
a)It inserts an empty cell if you leave a space after the [table] tag, so the first line has to be like this
[table 1 3 0] 1|2|test 16798789789797979799879797979|4|5|6|7
b) you can not use other bbcodes or smilies inside the table tag as they will not get parsed...
Die Tabelle direkt drüber ist ein beispiel (wenn auch ein recht kompliziertes):
1|2|test 16798789789797979799879797979|4|5|6|7
1^~right with colspan
2^333|=center with colspan
3^1|2|left with colspan
4^1|=center without colspan|3|4|5|6|7
5^1|blablabla|3|4|5
6^1|2|3|4|5|6|7
Die verschiedenen Stile 1^ bis 6^ (7^ ist der Standardstil) orientieren sich am gewählten Style und sollten nicht hardcoded sein.
Viel Spass beim Testen!
gruss, ze :raucher:
wir haben einen neuen BB Code, der [.table][./table] heisst (ohne die Punkte natürlich) und erlaubt, Tabellen zu posten. Auch wenn das konkret für die meisten wohl nicht sehr relevant sein wird, kann es dem Team helfen, wenn es um redaktionelle Beiträge geht (zB Fussballergebnisse, Tippspielstände, etc.)
Unten die Beschreibung (auf englisch, direkt von vbulletin.org) wie es funktioniert:
How it works :
1) starting code is or [table 1 2 3] where
1 2 3 any numbers separated by space
first - border
second - cellpadding
third - cellspacing
- ending tag is always
- table lines separated by line break
- each line can have 7 styles. To specify a style add in the beginning number and ^ symbol without spaces
example:
2^
you may skip 7^ - it is default (alt1) style
- cells in line separated by |
- there is no need to add | before first and after last cell
- each cell can have each own align. Use align mark as a first symbol of cell without spaces
blank (default) - left
= - center
~ - right
- if number of cells different in lines, last cell of shorter lines will get colspan= with needed number
so table in post may look like
1|2|test 16798789789797979799879797979|4|5|6|7
1^~right with colspan
2^333|=center with colspan
3^1|2|left with colspan
4^1|=center without colspan|3|4|5|6|7
5^1|blablabla|3|4|5
6^1|2|3|4|5|6|7
Minor bugs:
a)It inserts an empty cell if you leave a space after the [table] tag, so the first line has to be like this
[table 1 3 0] 1|2|test 16798789789797979799879797979|4|5|6|7
b) you can not use other bbcodes or smilies inside the table tag as they will not get parsed...
Die Tabelle direkt drüber ist ein beispiel (wenn auch ein recht kompliziertes):
1|2|test 16798789789797979799879797979|4|5|6|7
1^~right with colspan
2^333|=center with colspan
3^1|2|left with colspan
4^1|=center without colspan|3|4|5|6|7
5^1|blablabla|3|4|5
6^1|2|3|4|5|6|7
Die verschiedenen Stile 1^ bis 6^ (7^ ist der Standardstil) orientieren sich am gewählten Style und sollten nicht hardcoded sein.
Viel Spass beim Testen!
gruss, ze :raucher: