Spieleplanet Community

Spieleplanet Community (http://www.spieleplanet.eu/forum.php)
-   Baustelle (http://www.spieleplanet.eu/forumdisplay.php?f=25)
-   -   Neuer BB Codes: Sammelthread (http://www.spieleplanet.eu/showthread.php?t=2029)

ze 20.01.06 14:40:34

Neuer BB Codes: Sammelthread
 
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:


PHP-Code:

                              How it works :
1starting code is [table] or [table 1 2 3where
1 2 3 any numbers separated by space
first 
border
second 
cellpadding
third 
cellspacing

ending tag is always [/table]
table lines separated by line break
each line can have 7 stylesTo specify a style add in the beginning number and ^ symbol without spaces
example
:
2^
you may skip 7^ - it is default (alt1style
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 lineslast cell of shorter lines will get colspanwith needed number

so table in post may look like

[table 1 3 0]
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
[/table]
                                
Minor bugs
a)It inserts an empty cell if you leave a space after the [tabletagso the first line has to be like this 
[table 1 3 01|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):

[table 1 3 0]
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
[/table]

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

[table 1 1 0]Filmzitatespieltabelle
Ze|123
Fuggi|12
Lord|10
Rip|-12
[/table]

Kommt so zustande:
PHP-Code:

 [table 1 1 0]Filmzitatespieltabelle
Ze
|123
Fuggi
|12
Lord
|10
Rip
|-12
[/table

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

PHP-Code:

 [table 1 1 0]Filmzitatespieltabelle
 Ze
|~123
 Fuggi
|~12
 Lord
|~10
 Rip
|~-12
 
[/table


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

[table 1 1 0] Formel 1 Tippspiel
1.| Ze |~349
2.| Fuggi |~ 23
3.| Ob3rst |~ 0
[/table]

Ob3rst 20.01.06 15:38:27

[table 1 1 0] Fußball-Tippspiel
Ob3rst|~353
ze|~12
Fuggi|~-100000
[/table]

: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

Und wieder ein neuer BB Code: Schilder
 
PHP-Code:

[s]Muuuuh[/s

Muuuuh

PHP-Code:

[evil]Muuuuh[/evil

Muuuuh


PHP-Code:

[mouse]Muuuuh[/mouse

Duu Huu


gibt es auch als smiley im advanced editor :)

gruss, ze :raucher:

blue 22.01.06 00:13:49

Zitat:

Zitat von ze
Muuuuh

<spam> =)

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


Alle Zeitangaben in WEZ +2. Es ist jetzt 12:42:37 Uhr.

Powered by vBulletin® Version 3.8.2 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Die Betreiber haften nicht für die Inhalte der User. Die Beiträge spiegeln ausschließlich persönliche Meinungen wider, und nicht die der Seitenbetreiber.