Jump to: navigation, search

Difference between revisions of "Eclipsepedia:Nice Looking Tables"

 
 
Line 40: Line 40:
 
|-
 
|-
 
|}
 
|}
 +
==Caveats==
 +
* This would be even nicer if done via CSS instead.
 +
* It is not possible to completely control styling this way. An even better looking table style is possible if adding to the CSS (hint).
  
 
====Tip By====
 
====Tip By====
 
[[User:Henrik.lindberg.cloudsmith.com]]
 
[[User:Henrik.lindberg.cloudsmith.com]]
 
[[Category:WikiTip]]
 
[[Category:WikiTip]]

Latest revision as of 20:06, 19 September 2006

As you probably know Eclipsepedia has table formatting, but the default tables do not have borders around cells and the styling is pretty - well uh, ugly. The standard examples show you how to turn on some basic formatting, but the end result is not all that pleasing.

Since the pages I edit have quite a lot of tables I wanted something easy to use. (As I can't edit the CSS stylesheet(s) myself, I have created some templates for the Buckminster pages that you also can use if you like.

Examples
Sample code What it looks like
Here is an example using the wiki "pipe syntax":
{|{{BMTableStyle}}
|+{{BMTableCaptionStyle}}|The Heading of your table
|-{{BMTHStyle}}
! Column 1 Heading
! Column 2 Heading
|-
| Row 1, Cell 1 || Row 1, Cell 2
|-
| Row 2, Cell 1 || Row 2, Cell 2
|-
| and so on... || and so on...
|-
|}
Which produces a nice looking table like this:
The Heading of your table
Column 1 Heading Column 2 Heading
Row 1, Cell 1 Row 1, Cell 2
Row 2, Cell 1 Row 2, Cell 2
and so on... and so on...

Caveats

  • This would be even nicer if done via CSS instead.
  • It is not possible to completely control styling this way. An even better looking table style is possible if adding to the CSS (hint).

Tip By

User:Henrik.lindberg.cloudsmith.com