PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Neuer BB Codes: Sammelthread


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:

ze
20.01.06, 14:53:39
Hier ein paar beispiele

Filmzitatespieltabelle
Ze|123
Fuggi|12
Lord|10
Rip|-12


Kommt so zustande:
Filmzitatespieltabelle
Ze|123
Fuggi|12
Lord|10
Rip|-12

Jetzt will ich die ganzen Zahlen rechtsbündig haben, und mache daher ein ~ for die ganzen Felder:
Filmzitatespieltabelle
Ze|~123
Fuggi|~12
Lord|~10
Rip|~-12


Filmzitatespieltabelle
Ze|~123
Fuggi|~12
Lord|~10
Rip|~-12

Ob3rst
20.01.06, 15:09:14
coole Sache :that: gefällt mir. Könnte ja gleich bei dem Filmzitate-Thread verwendet werden, wenn punkte gepostet werden :)

Fuggi
20.01.06, 15:14:32
außerdem is es gut für die tippspiele ;)

kann ich gut gebrauchen, danke ;)

ze
20.01.06, 15:26:32
Könnt ihr es denn überhaupt benutzen ? :D :fin:

Fuggi
20.01.06, 15:28:44
Formel 1 Tippspiel
1.| Ze |~349
2.| Fuggi |~ 23
3.| Ob3rst |~ 0

Ob3rst
20.01.06, 15:38:27
Fußball-Tippspiel
Ob3rst|~353
ze|~12
Fuggi|~-100000


:D

blue
20.01.06, 16:11:42
wow ... gar nich mal schelcht!
ist ganz sicher sehr nützlich...

ze
22.01.06, 00:12:59
Muuuuh
Muuuuh

Muuuuh
Muuuuh

Muuuuh
Duu Huu

gibt es auch als smiley im advanced editor :)

gruss, ze :raucher:

blue
22.01.06, 00:13:49
Muuuuh

<spam> =)

hehe, gerade eben noch hatteste den Text nicht darunter *fg*

Zwergi
22.01.06, 00:19:05
möp

HG
22.01.06, 02:12:32
Muuuuh
Muuuuh

Muuuuh
Muuuuh

Muuuuh
Duu Huu

gibt es auch als smiley im advanced editor :)

gruss, ze :raucher:
Das sind imo sinnlose Spielereien. Ich will Spoilertags die funzen. Ob jetzt ne Maus mein "fick dich" hochhält oder ein Elefant ist mri scheißegal :)

Just my 2€