[TUTO] Réaliser des tableaux en BBCode sur PSPGen
Posté: 13 Juin 2011, 11:52
Nous avons ajouté les balises nécessaires pour intégrer en bbcode des tags html de tableaux.
Les balises sont :
table= le tableau
tr = la ligne
th=2= le nombre de colonne
tr=bg1= background de la ligne, pour la couleur du fond
td=1,= colonne
Ce qui se traduit par exemple :
Qui donne :
Donc pour avoir ceci :
On change le th avec un 3 et je rajoute 1 colonne
Les balises sont :
table= le tableau
tr = la ligne
th=2= le nombre de colonne
tr=bg1= background de la ligne, pour la couleur du fond
td=1,= colonne
Ce qui se traduit par exemple :
- Code: Select All Code
[table]
[tr=][th=2]Test de tableau[/th][/tr]
[tr=bg1][td=1,]fond 1 / gauche[/td][td=1,]fond 1 / droite[/td][/tr]
[tr=bg2][td=1,]fond 2 / gauche[/td][td=1,]fond 2 / droite[/td][/tr]
[/table]
Qui donne :
fond 1 / gauche | fond 1 / droite |
fond 2 / gauche | fond 2 / droite |
Donc pour avoir ceci :
fond 1 / gauche | fond 1 / droite | fond 1 / droite |
fond 2 / gauche | fond 2 / droite | fond 1 / droite |
On change le th avec un 3 et je rajoute 1 colonne
- Code: Select All Code
[td=1,]fond 2 / gauche[/td]
- Code: Select All Code
[table]
[tr=][th=3]Démo[/th][/tr]
[tr=bg1][td=1,]fond 1 / gauche[/td][td=1,]fond 1 / droite[/td][td=1,]fond 1 / droite[/td][/tr]
[tr=bg2][td=1,]fond 2 / gauche[/td][td=1,]fond 2 / droite[/td][td=1,]fond 1 / droite[/td][/tr]
[/table]