Ace Karate Forum

www.genjitsu.co.uk
It is currently Sun Dec 17, 2017 1:04 pm

All times are UTC [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Sat Jan 26, 2013 8:11 pm 
Offline
Site Admin
User avatar

Joined: Thu Apr 26, 2012 7:46 am
Posts: 46
Location: UK
To make available to the forum the capacity to include tables within the post, 6 new elements of BBCode have been added

The new elements are
  • align=
  • table=
  • tr
  • th
  • td
  • td=
Please note that when an element is followed by the = is because it requires one or more parameters

align=
It require 1 parameter (left,/centre/right); it allows the left, centre or right alignment of the text.
Code:
[align=centre] Some Text [/align]
            or
[align=centre] [table=400,1]  Rows and Cells [/table] [/align]

table=
It requires 2 parameters (width and border size): insert the table.
Code:
[table=400,1]  Rows and Cells [/table]

tr
Table Row, this element goes between the table elements does not require any parameter; Use tr element every time you need a new row
Code:
[table=400,1][tr] cells [/tr][/table]

th
Table Header, this element goes between the tr elements does not require any parameter.
Code:
[table=400,1][tr] [th]Header 1[/th][th]Header 2[/th][/tr][/table]

td
Standard Cell, this element goes between the tr elements does not require any parameter
Code:
[align=centre]
[table=400,1]
[tr]
[th]Header 1[/th][th]Header 2[/th] [th]Header 3[/th]
[/tr]
[tr]
[td]Row 2 – Cell 1[/td][td]Row 2 – Cell2[/td] [td]Row 2 – Cell 3[/td]
[/tr]
[tr]
[td]Row 3 – Cell 1[/td][td]Row 3 – Cell2[/td] [td]Row 3 – Cell 3[/td]
[/tr]
[/table]
[/align]

Header 1Header 2 Header 3
Row 2 – Cell 1Row 2 – Cell2 Row 2 – Cell 3
Row 3 – Cell 1Row 3 – Cell2 Row 3 – Cell 3

td=
Standard Cell with the option of width and background colour, this element goes between the tr element . This element requires 2 parameters
Code:
i.e. [td=100,white] Some Text [/td]

[align=center]
[table=300,1]
[tr]
[td=100,silver]Header 1[/td][td=100,silver]Header 2[/td] [td=100,silver]Header 3[/td]
[/tr]
[tr]
[td=100,white]Row 2 – Cell 1[/td][td=100,white]Row 2 – Cell2[/td] [td=100,white]Row 2 – Cell 3[/td]
[/tr]
[tr]
[td=100,white]Row 3 – Cell 1[/td][td=100,white]Row 3 – Cell2[/td] [td=100,white]Row 3 – Cell 3[/td]
[/tr]
[/table]
[/align]

Header 1Header 2Header 3
Row 2 – Cell 1Row 2 – Cell2 Row 2 – Cell 3
Row 3 – Cell 1Row 3 – Cell2 Row 3 – Cell 3

My suggestion is to use Windows Notepad or something similar to code the table and ten copying and pasting it within the post
Nesting all the elements can be quite confusing so to make it readable while compiling the table, write\type one element of code for each line
Code:
[align=centre]
[table=400,1]
[tr]
[th]Header 1 [/th]
[th]Header 2 [/th]
[/tr]
[tr]
[td]Row 2 – Cell 1 [/td]
[td]Row 2 – Cell 2 [/td]
[/tr]
[/table]
[/align]


If you need any assistance to compile the table you can contact me via PM or e-mail


Regards

_________________
Alfie Papa

Life is growth. If we stop growing, technically and spiritually, we are as good as dead.
Morihei Ueshiba


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group