Tables
Posted: 08:18 Sun 27 Apr 2014
Is it possible for some bbcode to be created to allow a table to be used within a post. Maybe this already exists and I have missed it.
A place for those passionate about port, and for those new to it. We hold lots of Port tastings: please join us!
https://www.theportforum.com/
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.
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?
Used to produce this...flash_uk wrote:And to avoid having to type the code, someone has created a code generator here.
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.
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] |
It should be transparent, which I much prefer.djewesbury wrote:Could default cell bgcolor be white?
You didn't answer the question.jdaw1 wrote:It should be transparent, which I much prefer.djewesbury wrote:Could default cell bgcolor be white?
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?
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
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.
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.
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.
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.
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.
Shipper | Year | Score |
---|---|---|
Fonseca | 63 | 10 |
Dow | 60 | 3 |
Code: Select all
Shipper Vintage Score
Dow 1960 95
Warre 1966 91