Forums - Tables Added

News and Announcements

Forums - Tables Added

Postby leopard » Tue Jul 19, 2016 10:23 am

Potentially useful upgrade to the forums, now have support for basic tables added, useful for league results etc.

to use them you need to add a few bbcode tags, its not something thats done visually sadly, but not too hard, the following is an example:

Code: Select all

[table]
 [tr] <-- starts a new row
  [th][/th] <-- Empty table cell
  [th]Heading One[/th] <-- [th]..[/th] provides a heading cell with a dark background and light text
  [th]Heading Two[/th]
 [/tr] <-- ends the row
 [tr]
  [th]Row Heading[/th]
  [td]Row Data[/td] <-- [td]...[/td] provides a data cell with a light background and dark text
  [td]Row Data[/td]
 [/tr]
  [th]Row Heading[/th]
  [td][/td] <-- can have empty cells if needed
  [td]Row Data[/td]
 [tr]
 [/tr]
[/table]



Which looks like this:









Heading One Heading Two
Row Heading Row Data Row Data
Row Heading Row Data

And can be expanded as needed with more columns and rows.

Open to suggestions on the colours, and working to get rid of the huge margin at the top of the table
User avatar
leopard
 
Posts: 3647
Joined: Sun Mar 30, 2014 6:55 pm
Location: Wombwell, Barnsley

Re: Forums - Tables Added

Postby Old Longy » Tue Jul 19, 2016 10:41 am

...
Does it have Lasers or Templars?
User avatar
Old Longy
 
Posts: 1497
Joined: Tue Apr 01, 2014 11:58 am

Re: Forums - Tables Added

Postby leopard » Tue Jul 19, 2016 11:08 am

Testing...

Team NameOwnerRaceWinDrawLossPlayedDiffPts
Skink-182JimmyLizards200276
Khaines EmbraceLongyDark Elves100133
Bonwtown ShamblersUndeadSimon100133
SkavenJobbers010101
Randy SavagesJamesAmazons010101
Helheim All FathersScottNorse0112-31
The Orc TeamBaldieOrcs0112-31
JoshLizards000000
Fjellborg Nord StarsPhilburnNorse000000
Purple TicklersBoyceChaos0002-70


Blank space above the table seems to be the new line characters within the table, will play further, editing this table is a nightmare
User avatar
leopard
 
Posts: 3647
Joined: Sun Mar 30, 2014 6:55 pm
Location: Wombwell, Barnsley

Re: Forums - Tables Added

Postby leopard » Tue Jul 19, 2016 11:12 am

Apparently the big blank block is the new line characters in the source, it is possible to remove them but makes creating the tables a bit more awkward, as you have to indicate the first and last rows differently, plus the first and last cells within a row differently.

The easier cure is to lay your table out as per the above example, then strip it down to be all on one line before posting it.
User avatar
leopard
 
Posts: 3647
Joined: Sun Mar 30, 2014 6:55 pm
Location: Wombwell, Barnsley


Return to News and Announcements

Who is online

Users browsing this forum: No registered users and 2 guests

cron