How to create a fancy table in your post.

Status
Not open for further replies.

Dennis

Administrator
Staff member
How to add a table(s) to your post:

There are six tags you can use: table, tr, th (2/3), td. These tags must be placed inside of the square brackets: [ ]

Note no spaces in the real world, I'm adding them here so that the forum does not convert them into a table :)

[ table ] [ /table ] -- Start and end TABLE.
[ th ] [ /th ] -- Start and end table COLUMN header.
Optional:
[ th2 ] [ /th2 ] -- Start and end two COLUMN spanned header.
[ th3 ] [ /th3 ] -- Start and end three COLUMN spanned header.
[ tr ] [ /tr ] -- Start and end a table ROW.
[ td ] [ /td ] -- Start and end a table COLUMN.

See this code and example output to see it in action. Note: You can cut and paste the code below into your post to get started -- use the preview button until you get it working the way you want.
Code:
[table]
[tr]
[th2]Table Header (2 column span)[/th2]
[/tr]
[tr]
[td]Table colum 1[/td][td]Table colum 2[/td]
[/tr]
[tr]
[td]Table column 1, row 2[/td][td]Table column 2, row 2[/td]
{/tr]
[/table]

Creates this:
Table colum 1Table colum 2
Table column 1, row 2Table column 2, row 2
[th2]Table Header (2 column span)[/th2]

Larger Example:
Cranking motor inoperative or defectiveReplace
Battery faultyReplace battery
Cables and terminals faultyInspect ground cable and battery-to-starting switch cable for any faults which may cause shorting; also inspect for incorrect connections. Replace cables if necessary
Starting switch defectiveReplace starting switch
Internal seizureHand crank engine with spark plugs removed and clutch disengaged. If engine does not turn easily, internal damage is indicated.
[th2]Engine Will Not Turn Over[/th2]

How the magic is done...
Code:
[table][tr][th2]Engine Will Not Turn Over[/th2][/tr]
[tr][td]Cranking motor inoperative or defective[/td][td]Replace[/td][/tr]
[tr][td]Battery faulty[/td][td]Replace battery[/td][/tr]
[tr][td]Cables and terminals faulty[/td][td]Inspect ground cable and battery-to-starting switch cable for any faults which may cause shorting; also inspect for incorrect connections. Replace cables if necessary[/td][/tr]
[tr][td]Starting switch defective[/td][td]Replace starting switch[/td][/tr]
[tr][td]Internal seizure[/td][td]Hand crank engine with spark plugs removed and clutch disengaged. If engine does not turn easily, internal damage is indicated.[/td][/tr][/table]
 
Will you be adding the little shortcuts at the top of the reply box? Or do we actually type in the brackets, etc?
 
Dale Finch":17h9hkh8 said:
Will you be adding the little shortcuts at the top of the reply box? Or do we actually type in the brackets, etc?
Depends if six additional shortcut tags would clutter things up to much for the members...
Code:
[table]
[tr]
[td]
[th]
[th2]
[th3]
 
Status
Not open for further replies.
Back
Top