Original und Support nur dort --> http://startrekguide.com/community/view ... f=82&t=309
Anleitung für einfache Tabellen:
Als erstes benötigen wir eine Umrandung der Tabelle, damit es gut zum Style prosilver passt.
BBCode:
HTML Ersetzung:
Code: Alles auswählen
<div class="{TEXT1}">
<div class="inner">
<span class="corners-top"><span></span></span>
{TEXT2}
<span class="corners-bottom"><span></span></span>
</div>
</div>
Nun brauchen wir einen BBCode um die Tabelle zu erstellen.
prosilver nutzt normalerweise "table1", und subsilver2 benutzt "tablebg". Daher verwenden wir nun einen BBCode wo man später den Style auswählen kann:
BBCode:
HTML Ersetzung:
Code: Alles auswählen
<table class="{TEXT1}" cellspacing="1" width="100%">
{TEXT2}
</table>
Nun folgen die Zeilen...
BBCode:
HTML Ersetzung:
...und Spalten...
Hinweis: "NUMBER" muss angegeben werden. TEXT1 ( class ) ist optional, das Komma und die folgende NUMBER ist Pflicht !!!
BBCode:
HTML Ersetzung:
Header...
Hinweis: "NUMBER" ist eine Pflichtangabe!!!
BBCode:
HTML Ersetzung:
Wenn man das alles zusammen benutzt, erscheint folgende Tabelle:
Hinweis: Es ist wichtig, das der komplette BBCode in einer Zeile angegeben wird. Ansonsten erhält man häßliche Zeilenumbrücher vor der Tabelle!
Code: Alles auswählen
[corners=forumbg forumbg-table][table=tablebg table1][tr=][th=2]This is a header[/th][/tr][tr=bg1][td=1,]This is the left cell[/td][td=1,]This is the right cell[/td][/tr][tr=bg2][td=1,]This is another row[/td][td=1,]This is the second cell[/td][/tr][/table][/corners]
This is a header |
---|
[td=1,]This is the left cell[/td][td=1,]This is the right cell[/td]
[td=1,]This is another row[/td][td=1,]This is the second cell[/td]
Tja, das war wohl nichts
Der Header Bereich sieht ein wenig "blass" aus.
Also brauchen wir ein wenig mehr:
Wir müssen also noch einen <thead> und einen <tbody> Tag unterbringen...let's go:
Thead:
BBCode:
HTML Ersetzung
Tbody:
BBCode:
HTML Ersetzung:
Nun sieht folgender BBCode so aus:
Code: Alles auswählen
[corners=forumbg forumbg-table][table=tablebg table1][thead][tr=][th=2]This is a header[/th][/tr][/thead][tbody][tr=bg1][td=1,]This is the left cell[/td][td=1,]This is the right cell[/td][/tr][tr=bg2][td=1,]This is another row[/td][td=1,]This is the second cell[/td][/tr][/tbody][/table][/corners]
This is a header |
---|
[td=1,]This is the left cell[/td][td=1,]This is the right cell[/td]
[td=1,]This is another row[/td][td=1,]This is the second cell[/td]
Viel besser, oder ?