Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Eclipsepedia:Nice Looking Tables
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.
| 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:
|
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).