1. Creole table formatting

The CSS for the wiki always aligns table headers to the right. I notice that the forum uses a different CSS file, which doesn't appear to apply any alignment style to table headers. At minimum, I think we should remove this styling, since it's somewhat jarring to have the header and contents aligned in opposite directions.

I've been using TWiki elsewhere, which has a similar syntax, but adds alignment and spanning syntax:

  |   center-aligned   | cell with at least two, and equal number of spaces on either side 
  |      right-aligned | cell with more spaces on the left 
  | 2 colspan || and multi-span columns with multiple |'s right next to each other 
  |^| cell with caret indicating follow-up row of multi-span rows  
Obviously, this isn't part of Creole, but might be useful to have...

Matt

new topic     » topic index » view message » categorize

2. Re: Creole table formatting

mattlewis said...

The CSS for the wiki always aligns table headers to the right. I notice that the forum uses a different CSS file, which doesn't appear to apply any alignment style to table headers. At minimum, I think we should remove this styling, since it's somewhat jarring to have the header and contents aligned in opposite directions.

Yes I noticed this too. The style sheet for the Forum is a bit weird. I'll see if we can get someone to update it.

mattlewis said...

I've been using TWiki elsewhere, which has a similar syntax, but adds alignment and spanning syntax:

  |   center-aligned   | cell with at least two, and equal number of spaces on either side 
  |      right-aligned | cell with more spaces on the left 
  | 2 colspan || and multi-span columns with multiple |'s right next to each other 
  |^| cell with caret indicating follow-up row of multi-span rows  
Obviously, this isn't part of Creole, but might be useful to have...

Yes, I'd been wondering about how to do this. The proper way is via style sheets but the wiki only outputs HTML and not CSS. I'll play around with it to see what we can do.

new topic     » goto parent     » topic index » view message » categorize

3. Re: Creole table formatting

DerekParnell said...
mattlewis said...

I've been using TWiki elsewhere, which has a similar syntax, but adds alignment and spanning syntax:

  |   center-aligned   | cell with at least two, and equal number of spaces on either side 
  |      right-aligned | cell with more spaces on the left 
  | 2 colspan || and multi-span columns with multiple |'s right next to each other 
  |^| cell with caret indicating follow-up row of multi-span rows  
Obviously, this isn't part of Creole, but might be useful to have...

Yes, I'd been wondering about how to do this. The proper way is via style sheets but the wiki only outputs HTML and not CSS. I'll play around with it to see what we can do.

Yes, this would require changes to the wiki or the creole parser (I'm not familiar with the guts), but I assume (it must be easy, right?) that you could assign an id or a style class that would correspond to the CSS based on that, right? But that kinda makes assumptions about how it all works, which might not be reasonable.

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu