Bitcoin Forum
December 15, 2024, 04:20:32 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to create Table with BBCode  (Read 698 times)
pkmoney (OP)
Member
**
Offline Offline

Activity: 205
Merit: 29

Love yourself.


View Profile
May 26, 2018, 10:33:51 AM
 #1

Recently, I have created a thread where table was required for a better look of the post. As I am new, I had problem to create table. Googled it and got some tutorials from which I was able to create table. I also got a tutorial in Bitcointalk but that was not sufficient for me as i am newbie.
So, I decided to create a tutorial so that newbie can easily create table.

You will easily understand if you have a little knowledge in html.

What you need to know:
1. Each code start with [] and end with [/]. For example, table code start with
Code:
[table]
and end with
Code:
[/table]
.
2. Code for row "tr" and code for column "td"
3. All text will be located in between the starting and ending code.For example,
Code:
[table]username[/table]

Code:
We will create a table with 1 row in which there will be a column. Take a table code and inside the table create a row. Then inside the row, create a column.

[table]
[tr]
[td]Username[/td]
[/tr]
[/table]

So,if we want to put 3 row with 3 column, the code will be,
Code:
[table]
[color=red]This is the 1st row.[/color]
[tr]
[td]Name[/td]
[td]age[/td]
[td]year of birth[/td]
[/tr]
[color=red]This is the 2nd row[/color]
[tr]
[td]Alice[/td]
[td]20[/td]
[td]1998[/td]
[/tr]
[color=red]This is the 3rd row.[/color]
[tr]
[td]Bob[/td]
[td]21[/td]
[td]1997[/td]
[/tr]
[/table]

Preview of above code:
Nameageyear of birth
Alice201998
Bob211997

I hope it will help you a little bit. you can also use the code automatically. Have a look at the image below.


   ⚡⚡ PRiVCY ⚡⚡   ▂▃▅▆█ ✅ PRiVCY (PRIV) is a new PoW/PoS revolutionary privacy project ● ☞ ✅ Best privacy crypto-market! ● █▆▅▃▂
    Own Your Privacy! ─────────────────║ WebsiteGithub  |  Bitcointalk  |  Twitter  |  Discord  |  Explorer ║─────────────────
   ✯✯✯✯✯                 ✈✈✈[Free Airdrop - Starts 9th June]✅[Tor]✈✈✈ ║───────────║ Wallet ➢ ✓ Windows  |  ✓ macOS  |  ✓ Linux
mdayonliner
Copper Member
Sr. Member
****
Offline Offline

Activity: 630
Merit: 420


We are Bitcoin!


View Profile
May 26, 2018, 12:30:38 PM
 #2

~
Good to see that you are trying to create good posts that is helpful to others but before creating a topic you really need to do a little Search (Click here) to check if the answer has already been given in anywhere in the forum.

Knowing about BBCode and learning it's use (archive): Thanks to roslinpl for the well presented topic.

Be happy be at peace. Looking forward to BTC at $1M
sncc
Hero Member
*****
Offline Offline

Activity: 536
Merit: 513


View Profile
May 26, 2018, 12:45:16 PM
 #3

You can check many examples of BB code in the "Help" of the forum -- here is the link:

https://bitcointalk.org/index.php?action=help;page=post#bbcref
pkmoney (OP)
Member
**
Offline Offline

Activity: 205
Merit: 29

Love yourself.


View Profile
May 26, 2018, 01:12:57 PM
 #4

~
Good to see that you are trying to create good posts that is helpful to others but before creating a topic you really need to do a little Search (Click here) to check if the answer has already been given in anywhere in the forum.

Knowing about BBCode and learning it's use (archive): Thanks to roslinpl for the well presented topic.
I have shared the link above. Don't know whether you have noticed it or not.

You can check many examples of BB code in the "Help" of the forum -- here is the link:

https://bitcointalk.org/index.php?action=help;page=post#bbcref
Thanks. Generally I searched on google with "bitcointalk" tail. Didn't find a good one without the one mentioned above.

   ⚡⚡ PRiVCY ⚡⚡   ▂▃▅▆█ ✅ PRiVCY (PRIV) is a new PoW/PoS revolutionary privacy project ● ☞ ✅ Best privacy crypto-market! ● █▆▅▃▂
    Own Your Privacy! ─────────────────║ WebsiteGithub  |  Bitcointalk  |  Twitter  |  Discord  |  Explorer ║─────────────────
   ✯✯✯✯✯                 ✈✈✈[Free Airdrop - Starts 9th June]✅[Tor]✈✈✈ ║───────────║ Wallet ➢ ✓ Windows  |  ✓ macOS  |  ✓ Linux
LoyceV
Legendary
*
Offline Offline

Activity: 3528
Merit: 17827


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 26, 2018, 03:36:19 PM
Last edit: May 26, 2018, 04:36:54 PM by LoyceV
 #5

Code:
We will create a table with 1 row in which there will be a column. Take a table code and inside the table create a row. Then inside the row, create a column.

[table]
[tr]
[td]Username[/td]
[/tr]
[/table]
Until now, this is indeed what I did. It can be pain staking to add a column, as the data is spread out through the code (example).
I only recently found out you can also have columns within rows instead of rows within columns.

Example:
Code:
[table]
[tr][td]Username1[/td][td]Username2[/td][/tr]
[tr][td]UsernameA[/td][td]UsernameB[/td][/tr]
[/table]
Looks like:
Username1Username2
UsernameAUsernameB

Code:
[table]
[td][tr]Username1[/tr][tr]UsernameA[/tr][/td]
[td][tr]Username2[/tr][tr]UsernameB[/tr][/td]
[/table]
Looks exactly the same:
Username1
UsernameA
Username2
UsernameB
Update: the above code works fine, but when I edit my post, the forum changed it into something much bigger:
Code:
[table][tr]
[td][table][tr][td]Username1[/td][/tr][tr][td]UsernameA[/td][/tr][/table][/td]
[td][table][tr][td]Username2[/td][/tr][tr][td]UsernameB[/td][/tr][/table][/td][/tr][/table]
Now I'm confused why Tongue

By choosing the correct format based on your needs you make it easier for yourself later on.

Vertical borders
Use columns with just "|" to make vertical borders in or around your table (click for an example).

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
mdayonliner
Copper Member
Sr. Member
****
Offline Offline

Activity: 630
Merit: 420


We are Bitcoin!


View Profile
May 26, 2018, 05:27:36 PM
 #6

Update: the above code works fine, but when I edit my post, the forum changed it into something much bigger:
Code:
[table][tr]
[td][table][tr][td]Username1[/td][/tr][tr][td]UsernameA[/td][/tr][/table][/td]
[td][table][tr][td]Username2[/td][/tr][tr][td]UsernameB[/td][/tr][/table][/td][/tr][/table]
Now I'm confused why Tongue

Pretty simple.... The system restructure the code so that the machine understand the language.

table tag with one tr
Code:
[table]

[tr][/tr]

[/table]

First td
Code:
[td][table][tr][td]Username1[/td][/tr][tr][td]UsernameA[/td][/tr][/table][/td]

Second td
Code:
[td][table][tr][td]Username2[/td][/tr][tr][td]UsernameB[/td][/tr][/table][/td]

The main table is moving column wise left to right where in regular case a table can be imaginable moving raw wise top to bottom.

Hope now you get the change  Smiley


Be happy be at peace. Looking forward to BTC at $1M
Angry Panda
Newbie
*
Offline Offline

Activity: 165
Merit: 0


View Profile WWW
June 13, 2018, 09:39:30 AM
 #7

How to fix the width of a cell?
LoyceV
Legendary
*
Offline Offline

Activity: 3528
Merit: 17827


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
June 13, 2018, 10:23:07 AM
 #8

How to fix the width of a cell?
Adding an (invisible) image under cell contents works.
I've used a white image for this example:
Title A
Title 2
UsernameAUsernameB

Code:
[table]
[tr][td]Title A
[img width=300 height=1]http://i64.tinypic.com/288z487.gif[/img][/td][td]Title 2
[img width=300 height=1]http://i64.tinypic.com/288z487.gif[/img][/td][/tr]
[tr][td]UsernameA[/td][td]UsernameB[/td][/tr]
[/table]

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
Angry Panda
Newbie
*
Offline Offline

Activity: 165
Merit: 0


View Profile WWW
June 13, 2018, 10:27:14 AM
Last edit: June 13, 2018, 10:39:52 AM by Angry Panda
 #9

It's a good solution but unfortunately it's not applicable to my case, because of my rank  Sad
LoyceV
Legendary
*
Offline Offline

Activity: 3528
Merit: 17827


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
June 13, 2018, 10:34:02 AM
 #10

It's a good solution but unfortunately it's not applicable to my case, because of my rank  Sad
If you get a Copper membership, you can post images.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
Angry Panda
Newbie
*
Offline Offline

Activity: 165
Merit: 0


View Profile WWW
June 13, 2018, 10:42:23 AM
 #11

I found a way to solve before, thanks for your idea  Wink

Code:
[table]
[tr][td]___________[/td][td]_______________[/td][/tr]
[tr][td]This way[/td][td]Works too :)[/td][/tr]
[tr][td]___________[/td][td]_______________[/td][/tr]
[/table]
uchegod-21
Hero Member
*****
Offline Offline

Activity: 1162
Merit: 643


BTC, a coin of today and tomorrow.


View Profile
November 26, 2021, 12:42:06 PM
 #12

How to fix the width of a cell?
Adding an (invisible) image under cell contents works.
I've used a white image for this example:
Title A
Title 2
UsernameAUsernameB

Code:
[table]
[tr][td]Title A
[img width=300 height=1]http://i64.tinypic.com/288z487.gif[/img][/td][td]Title 2
[img width=300 height=1]http://i64.tinypic.com/288z487.gif[/img][/td][/tr]
[tr][td]UsernameA[/td][td]UsernameB[/td][/tr]
[/table]

How to create table in HTML is beautiful than here. If you use Bbcode you will not get table head (th) with bold. All will be table data (td) and you will not have space. I have bin trying it but is not working. I now use this code which I also know in HTML.
Code:
[pre][/pre]
.
It help me to transfer the style I did it in MS word to this forum.
See it...


Quality     Bitcoin     Fiat
Centralized     No     Yes
Currency        Yes     Yes
Privacy         Yes     No


 
█▄
R


▀▀██████▄▄
████████████████
▀█████▀▀▀█████
████████▌███▐████
▄█████▄▄▄█████
████████████████
▄▄██████▀▀
LLBIT▀█ 
  TH#1 SOLANA CASINO  
████████████▄
▀▀██████▀▀███
██▄▄▀▀▄▄████
████████████
██████████
███▀████████
▄▄█████████
████████████
████████████
████████████
████████████
█████████████
████████████▀
████████████▄
▀▀▀▀▀▀▀██████
████████████
███████████
██▄█████████
████▄███████
████████████
█░▀▀████████
▀▀██████████
█████▄█████
████▀▄▀████
▄▄▄▄▄▄▄██████
████████████▀
........5,000+........
GAMES
 
......INSTANT......
WITHDRAWALS
..........HUGE..........
REWARDS
 
............VIP............
PROGRAM
 .
   PLAY NOW    
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!