Change font size
It is currently Sat Aug 19, 2017 1:55 pm



Post a new topicPost a reply Page 1 of 1   [ 7 posts ]
Author Message
 Post subject: More worked examples, please?
PostPosted: Wed Mar 25, 2009 2:57 pm 
Noise Maker
User avatar

Joined: Mon Mar 03, 2008 12:52 pm
Posts: 1616
Location: 52°15'24.99"N 1°09'48.62"W, Sol III
Real Name: Set to Private
Table building on the board looks like a black art to me. I can cope with all sorts of BB coding, but this is just too confusing.

In the example:
Code:
[corners=forumbg forumbg-table][table=tablebg table1][thead][tr=][th=2]This is a header[/th][/tr][/thead][tbody][tr=bg1][td=1,]This is the left cell[/td][td=1,]This is the right cell[/td][/tr][tr=bg2][td=1,]This is another row[/td][td=1,]This is the second cell[/td][/tr][/tbody][/table][/corners]

... what do the
Code:
[tr=bg1]
tags do? Specifically, what are bg1 and bg2 in your example, and why do you also have
Code:
[tr=]
in the header row?

_________________
Running the Game - the loneliness of the long distance blogger
Tengwio, hinoin! U eo swaillir, aneo?


Top
 Profile  
Reply with quote  
 Post subject: Re: More worked examples, please?
PostPosted: Wed Mar 25, 2009 3:04 pm 
Motor Mouth

Joined: Mon Mar 03, 2008 9:44 am
Posts: 3870
Location: Kenilworth
Real Name: Beardy Pete
In this example, bg1, bg2 etc are classes used in the CSS for the forum. You can omit the classes entirely (just remember that you need to keep the "="). See the Arcana: Announcing Zendikar thread for a classless, unformatted table.

The thead section is not required for most tables, but is part of the HTML markup for tables (defining the table header and table body separately because that is how it is done). The thead tag doesn't itself create a row so if you want to put anyting in your header then you need to create a row (tr) and fill it with cells (th).

I hope that helps at least a little.

_________________
This signature intentionally left blank.


Top
 Profile  
Reply with quote  
 Post subject: Re: More worked examples, please?
PostPosted: Wed Mar 25, 2009 3:10 pm 
Motor Mouth

Joined: Mon Mar 03, 2008 9:44 am
Posts: 3870
Location: Kenilworth
Real Name: Beardy Pete
Code:
[corners=forumbg forumbg-table][table=tablebg table1][thead][tr=][th=1]Armour Type[/th][th=1]Defence[/th][th=1]DR[/th][th=1]Armour Type[/th]Protection Type[/tr][/thead]
[tbody][tr=bg1][td=1,]None[/td][td=1,]0[/td][td=1,]0[/td][td=1,]none[/td][/tr]
[tr=bg2][td=1,]Padded[/td][td=1,]0[/td][td=1,]1/-[/td][td=1,]2/- vs Bl[/td][/tr]
[tr=bg1][td=1,]Leather[/td][td=1,]0[/td][td=1,]1/-[/td][td=1,]2/- vs Sl[/td][/tr][/tbody][/table][/corners]


Protection Type


Armour TypeDefenceDRArmour Type
None00none
Padded01/-2/- vs Bl
Leather01/-2/- vs Sl


etc.

At some point I will look into introducing great options for tweaking the tables, setting alignments etc. It also looks like bg1 and bg2 should be set to different background colours to delineate rows. I'll look at that soon too.

_________________
This signature intentionally left blank.


Top
 Profile  
Reply with quote  
 Post subject: Re: More worked examples, please?
PostPosted: Wed Mar 25, 2009 4:34 pm 
Noise Maker
User avatar

Joined: Mon Mar 03, 2008 12:52 pm
Posts: 1616
Location: 52°15'24.99"N 1°09'48.62"W, Sol III
Real Name: Set to Private
So what's this bit?
[corners=forumbg forumbg-table][table=tablebg table1]

_________________
Running the Game - the loneliness of the long distance blogger
Tengwio, hinoin! U eo swaillir, aneo?


Top
 Profile  
Reply with quote  
 Post subject: Re: More worked examples, please?
PostPosted: Wed Mar 25, 2009 5:00 pm 
Motor Mouth

Joined: Mon Mar 03, 2008 9:44 am
Posts: 3870
Location: Kenilworth
Real Name: Beardy Pete
Bearing in mind that this isn't my work, but is lifted from another forum, it looks like [corners] is a placeholder that applies some formatting to the elements below it (in this case the table) while [table] actually "opens" the table ready for rows and cells to be defined.

The BBCode is probably easier to understand if you understand how tables are formed in HTML as the various BBCodes are essentialy translated almost directly into HTML.

_________________
This signature intentionally left blank.


Top
 Profile  
Reply with quote  
 Post subject: Re: More worked examples, please?
PostPosted: Wed Mar 25, 2009 5:43 pm 
Noise Maker
User avatar

Joined: Mon Mar 03, 2008 12:52 pm
Posts: 1616
Location: 52°15'24.99"N 1°09'48.62"W, Sol III
Real Name: Set to Private
Sorry, no idea at all how to work with this. Why I can't just use [table][tr][td]"text goes here"[/tr][/td][/table] to build a thing without formatting, I don't know.

_________________
Running the Game - the loneliness of the long distance blogger
Tengwio, hinoin! U eo swaillir, aneo?


Top
 Profile  
Reply with quote  
 Post subject: Re: More worked examples, please?
PostPosted: Fri Mar 27, 2009 1:58 pm 
Noise Maker
User avatar

Joined: Mon Mar 03, 2008 12:52 pm
Posts: 1616
Location: 52°15'24.99"N 1°09'48.62"W, Sol III
Real Name: Set to Private
See if this works, shall we...?

Forum style header & background


1st header2nd header3rd header4th header
1st line 1st cell1st line 2nd cell1st line 3rd cell1st line 4th cell



No header, no formating



1st line 1st cell text1st line 2nd cell text
2nd line 1st cell2nd line 2nd cell
3rd line 1st cell3rd line 2nd cell


Splendid. Think I have the hang of it now. I've saved those templates for later use.

_________________
Running the Game - the loneliness of the long distance blogger
Tengwio, hinoin! U eo swaillir, aneo?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 posts ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net