Tables
- djewesbury
- Graham’s 1970
- Posts: 8166
- Joined: 20:01 Mon 31 Dec 2012
- Location: Gothenburg, Sweden
- Contact:
Tables
The usual HTML tags can be used (with square rather than angle brackets), so [table] [tr] [td] [/td] [/tr] [/table] etc etc - but they appear not to be supported here.
Daniel J.
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Re: Tables
It is possible to add BBcode that does this. What’s desired?
• table, with an optional align parameter;
• tr;
• th and td, each having optional align, colspan and rowspan parameters.
Current thinking is that each cell is to have a thin red border, about 2 pixels away from the content.
Anything else?
But it won’t look pretty on Tapatalk.
• table, with an optional align parameter;
• tr;
• th and td, each having optional align, colspan and rowspan parameters.
Current thinking is that each cell is to have a thin red border, about 2 pixels away from the content.
Anything else?
But it won’t look pretty on Tapatalk.
- djewesbury
- Graham’s 1970
- Posts: 8166
- Joined: 20:01 Mon 31 Dec 2012
- Location: Gothenburg, Sweden
- Contact:
Re: Tables
Is the border parameter user-controllable?
Daniel J.
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Re: Tables
Was thinking it would make results for the 60 vs 63 easier to post. How would width be handled?jdaw1 wrote:It is possible to add BBcode that does this. What’s desired?
• table, with an optional align parameter;
• tr;
• th and td, each having optional align, colspan and rowspan parameters.
Current thinking is that each cell is to have a thin red border, about 2 pixels away from the content.
Anything else?
But it won’t look pretty on Tapatalk.
- djewesbury
- Graham’s 1970
- Posts: 8166
- Joined: 20:01 Mon 31 Dec 2012
- Location: Gothenburg, Sweden
- Contact:
Re: Tables
Width is usually automatic, according to contents. If it doesn't look good on Tapatalk one can also click on the web view option.
Daniel J.
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Re: Tables
And to avoid having to type the code, someone has created a code generator here.
Re: Tables
In the default HTML manner: if contents small, table narrow; if contents wider than available space, text wraps.flash_uk wrote:How would width be handled?
Re: Tables
Used to produce this...flash_uk wrote:And to avoid having to type the code, someone has created a code generator here.
[table]
[tr]
[th]Column 1[/th]
[th]Column 2[/th]
[th]Column 3[/th]
[/tr]
[tr]
[td]Row 1[/td]
[td]Data 1[/td]
[td]Data 2[/td]
[/tr]
[tr]
[td]Row 2[/td]
[td]Data 3[/td]
[td]Data 4[/td]
[/tr]
[/table]
So doesn't work here.
"The first duty of Port is to be red"
Ernest H. Cockburn
Ernest H. Cockburn
- djewesbury
- Graham’s 1970
- Posts: 8166
- Joined: 20:01 Mon 31 Dec 2012
- Location: Gothenburg, Sweden
- Contact:
Re: Tables
Yes, I tried the same generator upthread and then deleted. You have to activate the code admin-side.DRT wrote:Used to produce this...flash_uk wrote:And to avoid having to type the code, someone has created a code generator here.
[table]
[tr][th]Column 1[/th]
[th]Column 2[/th]
[th]Column 3[/th][/tr]
[tr][td]Row 1[/td]
[td]Data 1[/td]
[td]Data 2[/td][/tr]
[tr][td]Row 2[/td]
[td]Data 3[/td]
[td]Data 4[/td][/tr]
[/table]
So doesn't work here.
Daniel J.
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Re: Tables
A test table:
Hmm. Problems with extra line breaks. Other difficulties with optional parameters, so I have made the table’s alignment mandatory and not allowed alignment in cells.
Comment welcomed.
I think it is too ugly. So my vote is that the new bbCodes, and posts using them, be deleted.
Left-most column | Next column |
---|---|
Data 1 | Data 2 |
Data 3 | Data 4 |
Shipper | 1960 | 1963 |
---|---|---|
Dow | a [/url] | |
Fonseca | b [/url] | |
Graham | f [/url] | |
Niepoort | h [/url] | |
Noval | g [/url] | |
Sandeman | c [/url] | |
Taylor | d [/url] | |
Warre | e [/url] |
Comment welcomed.
I think it is too ugly. So my vote is that the new bbCodes, and posts using them, be deleted.
- djewesbury
- Graham’s 1970
- Posts: 8166
- Joined: 20:01 Mon 31 Dec 2012
- Location: Gothenburg, Sweden
- Contact:
Re: Tables
Could default cell bgcolor be white?
Daniel J.
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Re: Tables
It should be transparent, which I much prefer.djewesbury wrote:Could default cell bgcolor be white?
- djewesbury
- Graham’s 1970
- Posts: 8166
- Joined: 20:01 Mon 31 Dec 2012
- Location: Gothenburg, Sweden
- Contact:
Re: Tables
You didn't answer the question.jdaw1 wrote:It should be transparent, which I much prefer.djewesbury wrote:Could default cell bgcolor be white?
Daniel J.
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Re: Tables
It would be good to have all the table buttons appear together and in logical sequence rather than...
"The first duty of Port is to be red"
Ernest H. Cockburn
Ernest H. Cockburn
Re: Tables
Because the answer is both yes and no. If the word default implies “can be over-ridden”, then no, as there isn’t facility for optional parameters. If you meant “any color — so long as it’s white” then that could be done, but won’t by me.djewesbury wrote:You didn't answer the question.jdaw1 wrote:It should be transparent, which I much prefer.djewesbury wrote:Could default cell bgcolor be white?
Re: Tables
Agreed. It would be good. I couldn’t see how, but will look again.DRT wrote:It would be good to have all the table buttons appear together and in logical sequence
Edit: have looked again. Believed not possible.
Re: Tables
Making "tpf-red" into "Font=tpf-red" would partly solve the problem.jdaw1 wrote:Agreed. It would be good. I couldn’t see how, but will look again.DRT wrote:It would be good to have all the table buttons appear together and in logical sequence
Edit: have looked again. Believed not possible.
"The first duty of Port is to be red"
Ernest H. Cockburn
Ernest H. Cockburn
Re: Tables
Yes, I had meant that once the bbcode has been created and enabled on the forum, the code generator would prove useful in creating the code to be pasted into a post.djewesbury wrote:Yes, I tried the same generator upthread and then deleted. You have to activate the code admin-side.
- djewesbury
- Graham’s 1970
- Posts: 8166
- Joined: 20:01 Mon 31 Dec 2012
- Location: Gothenburg, Sweden
- Contact:
Re: Tables
But we are going to have all the lovely buttons allowing us to do it in-site. No external generators will be needed. The Republic of stands alone.flash_uk wrote:Yes, I had meant that once the bbcode has been created and enabled on the forum, the code generator would prove useful in creating the code to be pasted into a post.djewesbury wrote:Yes, I tried the same generator upthread and then deleted. You have to activate the code admin-side.
Daniel J.
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Husband of a relentless former Soviet Chess Master.
delete.. delete.. *sigh*.. delete...
Re: Tables
Buttons or not, it is much easier to type all the info into a generator, than manually get all the opening and closing tags correct!djewesbury wrote:But we are going to have all the lovely buttons allowing us to do it in-site. No external generators will be needed. The Republic of stands alone.flash_uk wrote:Yes, I had meant that once the bbcode has been created and enabled on the forum, the code generator would prove useful in creating the code to be pasted into a post.djewesbury wrote:Yes, I tried the same generator upthread and then deleted. You have to activate the code admin-side.
Re: Tables
Yes I tried a quick test and those uninvited line breaks at the top and the misalignment of text which follows the table are not great are they. There is a discussion here about a way to potentially avoid the extra line breaks. And it can be done manually by ensuring that the code in the post is on one line rather than with new lines. My next post will show this, and you can see what I mean by quoting the post and looking at the code.jdaw1 wrote:Hmm. Problems with extra line breaks. Other difficulties with optional parameters, so I have made the table’s alignment mandatory and not allowed alignment in cells.
Comment welcomed.
Last edited by flash_uk on 15:46 Sun 27 Apr 2014, edited 1 time in total.
Re: Tables
first line
last line
Shipper | Year | Score |
---|---|---|
Fonseca | 63 | 10 |
Dow | 60 | 3 |
last line
Re: Tables
It is also possible by doing this and simply counting the characters on each line to ensure they appear in tabulated format...
Code: Select all
Shipper Vintage Score
Dow 1960 95
Warre 1966 91
"The first duty of Port is to be red"
Ernest H. Cockburn
Ernest H. Cockburn
-
- Dalva Golden White Colheita 1952
- Posts: 3534
- Joined: 14:22 Wed 15 Dec 2010
- Location: Near Cambridge, UK
Re: Tables
Just attempted a table in a post, but it did not seem to work at all, using the format previously mentioned table/th/td format.
Could someone who knows how it should work check, and if it does still work please explain?
Could someone who knows how it should work check, and if it does still work please explain?