Bitcoin Forum

Other => Beginners & Help => Topic started by: Casdinyard on August 12, 2020, 06:40:09 AM



Title: [LEARN] BBCODE Shorthand listing, naming code and colors, and table generating
Post by: Casdinyard on August 12, 2020, 06:40:09 AM
Hello guys! I've been experimenting lately with the Forum's BBCodes. And while quoting most of the topics I've been replying, I noticed that most use too many bbcodes to show something that is just short. I know there are a lot of BBCode guide in the forum yet this is a tip that focuses on posts and how to use bbcode with less work, shorthand, and have same results. I know some would say that this is just a duplicate of most, yet I still even find only less users do the following. Hope you like it!!  ;D


Note: if you'd notice, some bbcode are in normal form without using the code tag, I just used [nobbc]{value}[/nobbc] tags to show it by default bbcode.

Table of contents:
  • Shorthand List Formatting (#post_x)
  • Code name and code colors using PHP tag (#post_xx)
  • Useful websites for bbcode (#post_xxx)
  • References (#post_xxxx)


LIST FORMATTING
I've noticed that many still uses closing tags in list items such as [li]ITEM1[/li] in their posts. And having many items and closing it manually takes both the user's time and character in a post. Meanwhile, you'll notice I used [*] in the start of each item on the list as it would only output the same (using other options than asterisk will result to error).
____________________
____________________
____________________
____________________
____________________
____________________
LIST TYPE
BBCODE
OUTPUT
LIST TYPE
BBCODE
OUTPUT
____________________
____________________
____________________
____________________
____________________
____________________
Decimal
Code:
[list type=decimal]
[*] First
[*] Second
[*] Third
[/list]
  • First
  • Second
  • Third
Square
Code:
[list]
[+] First
[x] Second
[#] Third
[/list]
  • First
  • Second
  • Third
lower-roman
Code:
[list type=lower-roman]
[*] First
[*] Second
[*] Third
[/list]
  • First
  • Second
  • Third
circle
Code:
[list]
[o] First
[O] Second
[0] Third
[/list]
  • First
  • Second
  • Third
upper-roman
Code:
[list type=upper-roman]
[*] First
[*] Second
[*] Third
[/list]
  • First
  • Second
  • Third
disc
Code:
[list type=lower-roman]
[*] First
[@] Second
[/list]
  • First
  • Second
lower-latin
Code:
[list type=lower-latin]
[*] First
[*] Second
[*] Third
[/list]
  • First
  • Second
  • Third
upper-latin
Code:
[list type=upper-latin]
[*] First
[*] Second
[*] Third
[/list]
  • First
  • Second
  • Third



Code name and code colors using PHP tag
Have you know that you can post programming codes here without formatting colors? I know some often uses the code tag, but do you know it can have some name to it?

____________________
____________________
CODE NAME
CODE COLOR WITH PHP TAG
In naming Code Tags, simply use [code={any name you want}]{value}[/code] to insert a name with it.

Example:
[code=java]
class Simple{  
    public static void main(String args[]){  
     System.out.println("Hello Java");  
    }  
}  
[/code]

Output:
Code: (java)
class Simple{  
    public static void main(String args[]){  
     System.out.println("Hello Java");  
    }  
}  
If you would post some codes and wanted to have colors with it, simply use [php]{any code here}[/php] to have it colored automatically (note that it wasn't fairly colored based on what language you'll insert in those tags)

Example:
[php]
class Simple{  
    public static void main(String args[]){  
     System.out.println("Hello Java");  
    }  
}  
[/php]

Output:
class Simple{  
    public static void main(String args[]){  
     System.out.println("Hello Java");  
    }  
}  



Useful websites for bbcode

I know a lot had struggles manually making tables, but do you know that there is a table to bbcode generator?

Simply use www.theenemy.dk/table/ (http://www.theenemy.dk/table/) and simply paste your table there.


Aug. 15. Edit: This wouldn't work if you would have bbcode in your cells or you have multiple lines in a single cell as it would read per line with your data pasted as raw text.


Here is the following instructions:
__________________________
____________________________________________________
____________________________________________________
COPY YOUR EXCEL CELLS TO CONVERT IN BBCODE THEN GO TO THE WEBSITE
SIMPLY PASTE (CTRL+V) TO THE CORRESPONDING BOX
CHOOSE ANY OPTIONS YOU LIKE THEN CLICK GENERATE BUTTON
https://i.imgur.com/0cxZgcq.pnghttps://i.imgur.com/6xcBdop.pnghttps://i.imgur.com/13SlnAo.png

To be updated when there are more useful websites to come...



References
  • How did I format my tables? Crypto-DesignService: Re: Technical Issue BBCode/HTML (https://bitcointalk.org/index.php?topic=5105539.msg49578210#msg49578210)
  • The default bitcointalk forum bbcode post: SMF User Help: Posting (https://bitcointalk.org/index.php?action=help;page=post#bbcref)
  • The common listing many users are using: edwardceng: Re: Instructions on how to use BBCode (https://bitcointalk.org/index.php?topic=4738016.msg42789759#msg42789759)