Barusan iseng gue nambahin bbcode untuk bikin table. Prinsipnya sama seperti table html biasa.
Requirement : mengerti konsep table html
Tingkat kesulitan : medium to advance
Cheatsheet : BBCode Table Generator
Code:
Basics:
= <table border="1" width="100%"> </table>
[tr] [/tr] = <tr> </tr>
[td] [/td] = <td> </td>
[th] [/th] = <th> </th>
Advanced :
[tdrs={NUMBER}] [/tdrs] = <td rowspan="number">
[tdcs={NUMBER}] [/tdcs] = <td colspan="number">
[thrs={NUMBER}] [/thrs] = <th rowspan="number">
[thcs={NUMBER}] [/thcs] = <th colspan="number">
Contoh penggunaan dasar :
Code:
The code :
_contoh 1_
header 1 |
header 2 |
isi 1 |
isi 2 |
_contoh 2_
header 1 |
header 2 |
isi 1 |
isi 2 |
Hasilnya:
_contoh 1_
header 1 |
header 2 |
isi 1 |
isi 2 |
_contoh 2_
header 1 |
header 2 |
isi 1 |
isi 2 |
Contoh penggunaan lebih lanjut (Advance) :
Code:
The code :
_contoh 1_
header 1 |
header 2 |
isi 2 |
isi 3 |
_contoh 2_
header 1 |
header 2 |
isi 2 |
isi 3 |
Hasilnya:
_contoh 1_
header 1 |
header 2 |
isi 2 |
isi 3 |
_contoh 2_
header 1 |
header 2 |
isi 2 |
isi 3 |
Semoga bermanfaat...
Bookmarks