• Hallo TT-Modellbahner, schön, dass du zu uns gefunden hast.
    Um alle Funktionen nutzen zu können, empfehlen wir dir, dich anzumelden. Denn vieles, was das Board zu bieten hat, ist ausschließlich angemeldeten Nutzern vorbehalten. Du benötigst nur eine gültige E-Mail-Adresse und schon kannst du dich registrieren.
    Deine Mailadresse wird für nichts Anderes verwendet als zur Kommunikation zwischen uns.
    Die Crew des TT-Boardes

[table] vBCode für Tabellen

Lokwolf

Cheffe / Mineralsekretär
Boardcrew
Beiträge
4.916
Reaktionen
3.125 27
Ort
Rheinländ
Hallo Freunde,

auf Wunsch einzelner Foriker habe ich mich nach einem Tabellen-BBCode umgesehen und gefunden, ausprobiert und installiert.

Einfach mit [noparse]
beginnen und mit
enden.

[TH][/TH] macht die erste Zeile zur Überschrift und getrennt wird mit "[/TD][TD]".

enden.Jede neue Zeile ist auch eine neue Tabellenzeile[/noparse]

Der sieht nun so aus:

Überschrift1 Überschrift 2 Hallöle
Hallo1 :happy: ne ne?
Hallo2 :biggrin: hallo

Die Tabelle kann, bei Klick auf die entsprechende Überschrift, sortiert werden.

In code:
Code:
[noparse][TABLE][TR][TH]Überschrift1 [/TH][TH] Überschrift 2 [/TH][TH] [/TH][TH] Hallöle
[/TH][/TR]
[TR][TD]Hallo1 [/TD][TD] :happy:[/TD][TD] ne ne?
[/TD][/TR]
[TR][TD]Hallo2 [/TD][TD] :biggrin:[/TD][TD][/TD][TD] hallo
[/TD][/TR]
[/TABLE]
[/noparse]
Wichtig!
Das Ding ist noch beta, heißt, es kann noch diverse Änderungen geben.

Die genaue Beschreibung wie
funktioniert (in englisch):
Introduction to options:
example:


The whole option list should be wrapped with quotes.
Options are seperated by a semicolon
If an option has a value it is assigned with "equal to" mark. (option2)
If the value contains blanks or special characters it has to be wrapped with apostrophes. (option3)
If an option has more than one value they are seperated by a comma. (option4)

Description of options: head
This option defines the first line as head, so the first row is shown as head of the table. If the table sould be sorted, the head is not sorted.

sort=1d,2,3
This defines the table to be sorted by column 1, then column 2, then column 3. The "d" after the first colum specifies the order: descending (default: ascending)

autonum=1 (equal to autonum ) autonum=a autonum=A
Defines that a new first column containing a numbering should be inserted.
1 -> 1, 2, 3, 4, ... , 999, 1000, ....
a -> a, b, c, ... , aa, ab, ... , zz
A -> A, B, C, ... , AA, BB, ... , ZZ

autonumtitle=oneword autonumtitle='long value with spaces'
Defines the title of the autonum-column. Can be left empty.

width=123px width=45em width=67%
Defines the width of the table.

Introduction to special options (formating cells and rows) :
example: {option1=value1}{option2=value2}
These "special" options can be written as the very first content of a cell to format it.

Description of special options: {colsp=5}
Defines a colspan from current cell with the length of 5 cells

zitiert von vbulletin.org -- vb Code
,
S. 1 , Autor: StGaensler


Viel Spaß damit!

Gruß vom Rhein
Lokwolf
 
Zurück
Oben