Name / Type of Formatting | Example | Code | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Basic Formatting | Bold, Italic, Underline | Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Color Change 1 | Color Change 1 - this uses colour hex codes. A useful site for finding those is here | Code: Select all
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Color Change 1 | Color Change 2 ~ this just names the colours. A table of colours, hex codes and names is below. If you can't see the colour on the black background, hover over with your mouse and it will turn the table cell white. | Code: Select all
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
colour names and numbers
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Quoting Text 1: Plain quote |
| Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Quoting Text 2: Named quote |
| Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Quoting Text 3: Quoting a post | The name (here, Avalon) will take you to the account profile, and the ↑ will take you to the post you are quoting | Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Display Code | To display code without it being implemented, wrap it in [ code ] (without the spaces). | Code: Select all
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bullet pointed lists |
|
Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ordered Lists: Number |
|
Code: Select all
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ordered Lists: Letter |
|
Code: Select all
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ordered list: Dotty i |
|
Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Lists: Roman Numerals |
|
Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Stacked Lists |
|
Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changing Text Size | SMALL HUGE! | Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Spoiler 1: Spoil | ► Show Spoiler | Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Spoiler 2: Plain Spoiler | Spoiler Hidden inside this | Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Spoiler 2: Named Spoiler | This is my spoiler Hidden inside this | Code: Select all
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A Guide to BB Code & Box Code Creation!
This thread shows the available BB Code on the site, and then gives a basic tutorial on boxcode construction
Moderator: Staff
- Pegasus Pug!!!
- City Moderator
- Posts: 10497
- Joined: Sun Sep 11, 2016 1:08 am
- Race: Prophet
- Renown: 666
- Plot Notes
- Office
- Templates
- Point Bank Thread
- Wealth Tier: Tier 1
A Guide to BB Code & Box Code Creation!
Focusing on my PCs. Replies will be slow!
Tags:
- Pegasus Pug!!!
- City Moderator
- Posts: 10497
- Joined: Sun Sep 11, 2016 1:08 am
- Race: Prophet
- Renown: 666
- Plot Notes
- Office
- Templates
- Point Bank Thread
- Wealth Tier: Tier 1
Re: A Guide to BB Code & Box Code Creation!
cont'd
#F0F8FF Alicewhite | #FAEBD7 Antiquewhite | #00FFFF Aqua | #7FFFD4 Aquamarine |
#F0FFFF Azure | #F5F5DC Beige | #FFE4C4 Bisque | #FFEBCD Blanchedalmond |
#0000FF Blue | #8A2BE2 Blueviolet | #A52A2A Brown | #DEB887 Burlywood |
#5F9EA0 Cadetblue | #7FFF00 Chartreuse | #D2691E Chocolate | #FF7F50 Coral |
#6495ED Cornflowerblue | #FFF8DC Cornsilk | #DC143C Crimson | #00FFFF Cyan |
#00008B Darkblue | #008B8BDarkcyan | #B8860B Darkgoldenrod | #A9A9A9 Darkgray |
#006400Darkgreen | #BDB76B Darkkhaki | #8B008B Darkmagenta | #556B2F Darkolivegreen |
#FF8C00 Darkorange | #9932CCDarkorchid | #8B0000 Darkred | #E9967A Darksalmon |
#8FBC8F Darkseagreen | #483D8B Darkslateblue | #2F4F4F Darkslategray | #00CED1Darkturquoise |
#9400D3Darkviolet | #FF1493 Deeppink | #00BFFF Deepskyblue | #696969 Dimgray |
#1E90FF Dodgerblue | #B22222 Firebrick | #FFFAF0 Floralwhite | #228B22 Forestgreen |
#FF00FF Fuchsia | #DCDCDC Gainsboro | #F8F8FF Ghostwite | #FFD700 Gold |
#DAA520 Goldenrod | #808080 Gray | #008000 Green | #ADFF2F Greenyellow |
#F0FFF0 Honeydew | #FF69B4 Hotpink | #CD5C5C Indianred | #4B0082 Indigo |
#FFFFF0 Ivory | #F0E68C Khaki | #E6E6FA Lavender | #FFF0F5 Lavenderblush |
#7CFC00 Lawngreen | #FFFACD Lemonchiffon | #ADD8E6 Lightblue | #F08080 Lightcoral |
#E0FFFF Lightcyan | #FAFAD2 Lightgoldenrodyellow | #90EE90 Lightgreen | #D3D3D3 Lightgrey |
#FFB6C1 Lightpink | #FFA07A Lightsalmon | #20B2AA Lightseagreen | #87CEFA Lightskyblue |
#778899 Lightslategray | #B0C4DE Lightsteelblue | #FAF0E6 Linen | #FF00FF Magenta |
#800000 Maroon | #66CDAA Mediumaquamarine | #0000CD Mediumblue | #BA55D3 Mediumorchid |
#9370D8 Mediumpurple | #3CB371 Mediumseagreen | #7B68EE Mediumslateblue | #00FA9A Mediumspringgreen |
#48D1CC Mediumturquoise | #C71585 Mediumvioletred | #191970 Midnightblue | #F5FFFA Mintcream |
#FFE4E1 Mistyrose | #FFE4B5 Moccasin | #FFDEAD Navajowhite | #000080 Navy |
#FDF5E6 Oldlace | #808000 Olive | #688E23 Olivedrab | #FFA500 Orange |
#FF4500 Orangered | #DA70D6 Orchid | #EEE8AA Palegoldenrod | #98FB98 Palegreen |
#AFEEEE Paleturquoise | #D87093 Palevioletred | #FFEFD5 Papayawhip | #FFDAB9 Peachpuff |
#CD853F Peru | #FFC0CB Pink | #DDA0DD Plum | #B0E0E6 Powderblue |
#800080 Purple | #FF0000 Red | #BC8F8F Rosybrown | #4169E1 Royalblue |
#8B4513 Saddlebrown | #FA8072 Salmon | #F4A460 Sandybrown | #2E8B57 Seagreen |
#FFF5EE Seashell | #A0522D Sienna | #C0C0C0 Silver | #87CEEB Skyblue |
#6A5ACD Slateblue | #708090 Slategray | #FFFAFA Snow | #00FF7F Springgreen |
#4682B4 Steelblue | #D2B48C Tan | #008080 Teal | #D8BFD8 Thistle |
#FF6347 Tomato | #40E0D0 Turquoise | #EE82EE Violet | #F5DEB3 Wheat |
#FFFFFF White | #F5F5F5 Whitesmoke | #FFFF00 Yellow | #9ACD32 Yellowgreen |
Spoiler 1: Spoil | ► Show Spoiler | Code: Select all
|
Spoiler 2: Plain Spoiler | Spoiler Hidden inside this | Code: Select all
|
Spoiler 2: Named Spoiler | This is my spoiler Hidden inside this | Code: Select all
|
Spoiler 3: Sptitle | These Must Be Named Hidden inside this! | Code: Select all
|
Spoiler 4: Offtopic | Off Topic Not hidden, but still! | Code: Select all
|
Links 1: Tagging a site | I like Standing Trials as a rpg site | Code: Select all
|
Links 2: Displaying a URL | www.standingtrials.com | Code: Select all
|
Horizontal Rule | A line, across the page Or the cell of a table | Code: Select all
|
Indent | Not indented Indented 30px Indented 100px Please note that this BB Code only works on a PX level. Be aware that this can mess with mobile phone users and so we'd ask that you keep that in mind. | Code: Select all
|
Font | Accessible from the drop down menu above "Font Menu" This is Bradley Hand ITC | Code: Select all
|
Googlefont | Turns your text to the relevant Google Font . Note that this is case (and format) sensitive. This is the font Dancing Script | Code: Select all
|
Image 1: From the image url | This is how to link to an external image. It can not be resized (although putting it in a table does constrain it). | Code: Select all
|
Image 2: From Gallery image url / medium | This is the "Image URL" from under the image in "My Gallery". | Code: Select all
|
Image 3: From Gallery image url / source | This is the "Image URL" from under the image in "My Gallery". Same as /medium | Code: Select all
|
Image 4: From Gallery image url / mini | This is the "Image URL" from under the image in "My Gallery". | Code: Select all
|
Linking Image to Page | Note that this can link to any page - just change the URL. Clicking this image will take you to our home / front page. | Code: Select all
|
Highlight Text | Highlight your text in a colour of your choice. Can use colour names or hex codes You may need to set the colour of the text, too | Code: Select all
Code: Select all
|
Align Text | Text can be aligned to the left to the right or centered it can also be justified. That means equally aligned both sides and requires more text to really show up. Fundamentally, though, it's just the same options as on most word procesessors. | Code: Select all
Code: Select all
Code: Select all
Code: Select all
|
Focusing on my PCs. Replies will be slow!
- Pegasus Pug!!!
- City Moderator
- Posts: 10497
- Joined: Sun Sep 11, 2016 1:08 am
- Race: Prophet
- Renown: 666
- Plot Notes
- Office
- Templates
- Point Bank Thread
- Wealth Tier: Tier 1
Re: A Guide to BB Code & Box Code Creation!
cont'd
#F0F8FF Alicewhite | #FAEBD7 Antiquewhite | #00FFFF Aqua | #7FFFD4 Aquamarine |
#F0FFFF Azure | #F5F5DC Beige | #FFE4C4 Bisque | #FFEBCD Blanchedalmond |
#0000FF Blue | #8A2BE2 Blueviolet | #A52A2A Brown | #DEB887 Burlywood |
#5F9EA0 Cadetblue | #7FFF00 Chartreuse | #D2691E Chocolate | #FF7F50 Coral |
#6495ED Cornflowerblue | #FFF8DC Cornsilk | #DC143C Crimson | #00FFFF Cyan |
#00008B Darkblue | #008B8BDarkcyan | #B8860B Darkgoldenrod | #A9A9A9 Darkgray |
#006400Darkgreen | #BDB76B Darkkhaki | #8B008B Darkmagenta | #556B2F Darkolivegreen |
#FF8C00 Darkorange | #9932CCDarkorchid | #8B0000 Darkred | #E9967A Darksalmon |
#8FBC8F Darkseagreen | #483D8B Darkslateblue | #2F4F4F Darkslategray | #00CED1Darkturquoise |
#9400D3Darkviolet | #FF1493 Deeppink | #00BFFF Deepskyblue | #696969 Dimgray |
#1E90FF Dodgerblue | #B22222 Firebrick | #FFFAF0 Floralwhite | #228B22 Forestgreen |
#FF00FF Fuchsia | #DCDCDC Gainsboro | #F8F8FF Ghostwite | #FFD700 Gold |
#DAA520 Goldenrod | #808080 Gray | #008000 Green | #ADFF2F Greenyellow |
#F0FFF0 Honeydew | #FF69B4 Hotpink | #CD5C5C Indianred | #4B0082 Indigo |
#FFFFF0 Ivory | #F0E68C Khaki | #E6E6FA Lavender | #FFF0F5 Lavenderblush |
#7CFC00 Lawngreen | #FFFACD Lemonchiffon | #ADD8E6 Lightblue | #F08080 Lightcoral |
#E0FFFF Lightcyan | #FAFAD2 Lightgoldenrodyellow | #90EE90 Lightgreen | #D3D3D3 Lightgrey |
#FFB6C1 Lightpink | #FFA07A Lightsalmon | #20B2AA Lightseagreen | #87CEFA Lightskyblue |
#778899 Lightslategray | #B0C4DE Lightsteelblue | #FAF0E6 Linen | #FF00FF Magenta |
#800000 Maroon | #66CDAA Mediumaquamarine | #0000CD Mediumblue | #BA55D3 Mediumorchid |
#9370D8 Mediumpurple | #3CB371 Mediumseagreen | #7B68EE Mediumslateblue | #00FA9A Mediumspringgreen |
#48D1CC Mediumturquoise | #C71585 Mediumvioletred | #191970 Midnightblue | #F5FFFA Mintcream |
#FFE4E1 Mistyrose | #FFE4B5 Moccasin | #FFDEAD Navajowhite | #000080 Navy |
#FDF5E6 Oldlace | #808000 Olive | #688E23 Olivedrab | #FFA500 Orange |
#FF4500 Orangered | #DA70D6 Orchid | #EEE8AA Palegoldenrod | #98FB98 Palegreen |
#AFEEEE Paleturquoise | #D87093 Palevioletred | #FFEFD5 Papayawhip | #FFDAB9 Peachpuff |
#CD853F Peru | #FFC0CB Pink | #DDA0DD Plum | #B0E0E6 Powderblue |
#800080 Purple | #FF0000 Red | #BC8F8F Rosybrown | #4169E1 Royalblue |
#8B4513 Saddlebrown | #FA8072 Salmon | #F4A460 Sandybrown | #2E8B57 Seagreen |
#FFF5EE Seashell | #A0522D Sienna | #C0C0C0 Silver | #87CEEB Skyblue |
#6A5ACD Slateblue | #708090 Slategray | #FFFAFA Snow | #00FF7F Springgreen |
#4682B4 Steelblue | #D2B48C Tan | #008080 Teal | #D8BFD8 Thistle |
#FF6347 Tomato | #40E0D0 Turquoise | #EE82EE Violet | #F5DEB3 Wheat |
#FFFFFF White | #F5F5F5 Whitesmoke | #FFFF00 Yellow | #9ACD32 Yellowgreen |
Strike Through | Text with a strike through | Code: Select all
|
Superscript | Normal Text Superscript Text | Code: Select all
|
Subscript | Normal Text Subscript Text | Code: Select all
|
Glowing Text | Text with a glowing effect You choose the colour of the glow You may have to set the text colour too - this must be INSIDE the glow brags. Especially if the glow is light and your text is too | Code: Select all
Code: Select all
|
Dropshadow Text | Text with a coloured dropshadow Colour can be colour name or hex | Code: Select all
|
Shadow Text | Text with a coloured shadow Colour can be colour name or hex | Code: Select all
|
Blur Text | Text with a coloured blur Colour can be colour name or hex | Code: Select all
|
FadingText | Text which fades in and out | Code: Select all
|
Text Direction | This text is right to left (This text is right to left) This text is left to right | Code: Select all
Code: Select all
|
Marquee Text | Code: Select all
Code: Select all
Code: Select all
Code: Select all
|
|
OOC Text 1 (hover over the underlined text) | This is in between the open and close ooc brags . | Code: Select all
|
OOC Text 2 (hover over the underlined text) | This is inside the note brag This is in between the open and close note brag. It can be an image, too | Code: Select all
|
Hidden From Guests | Code: Select all
|
|
Embed Video | Code: Select all
| |
Tabs | Code: Select all
|
|
Tables | How to create a table. | See individual details below |
Table 1: Starting and ending a table | Denote the beginning and end of a table with table and /table brags | Code: Select all
|
Table 2: Starting and ending a row in a table | Denote the beginning and end of a row with TR and /TR brags | Code: Select all
|
Table 3: Starting and ending a cell in a row | Denote the beginning and end of a cell with TD and /TD brags | Code: Select all
|
Float | | Code: Select all
|
Code: Select all
[table]
[tr]
[td] ~~ a new cell in the first row [/td]
[td] ~~ a second cell in the first row [/td]
[/tr]
[tr]
[td] ~~~ second row, cell 1 [/td]
[td] ~~~ second row, cell 2 [/td]
[/tr]
[/table]
Focusing on my PCs. Replies will be slow!
- Pegasus Pug!!!
- City Moderator
- Posts: 10497
- Joined: Sun Sep 11, 2016 1:08 am
- Race: Prophet
- Renown: 666
- Plot Notes
- Office
- Templates
- Point Bank Thread
- Wealth Tier: Tier 1
Re: A Guide to BB Code & Box Code Creation!
Before we begin: A note on width!
The "theme" that we purchased for this forum is fully responsive, which means that it scales with the size of the screen; this is especially important for mobile users. However, if we use the "max-width: 500px" command in a style brag (can be any size, 500px is an example), then it forces the post to be that width. This messes up the screen for mobile users, and we do not allow that command to be used in our coding. We have a script which runs daily which changes that to max-width, in the example below, but we ask that you don't use it. Instead use one of these two:
max-width: 500px - this sets the width to 500px for those whose screen can take it. For mobile users, it allows scaling.
max-width: 50% - this sets the width of the screen to 50% of the screen size, no matter what the screen size is. It's not recommended because what looks good on a larger screen doesn't on a smaller one, and vice versa.
1. Styles!
- A boxcode covers the whole page of a post, and therefore you use the "style" code (called a "style brag") to tell the forum what you want. It sets information like height of your post, width, colours etc. Therefore, you have to put things into these "style" brags.
- So - you start with the code and you end with
Code: Select all
[style= ]
Code: Select all
[/style]
- We can have up to 5 styles in any one post - if you don't close out the first style in the post, then the next style in there will appear inside it .
- Each bit of information in a style brag must be formatted a certain way. There are rules for this:
- Each command is formatted as "Command: Details" so - if you are formatting a border, for example, it's "Border: Details".
- Each command must be separated by a semicolon " ; " That's how the software knows that you've finished talking about the border and have moved on to something else.
- There are lot of commands / ways to structure your boxcode / style brag. Here are a few.
Command | What it does. | Example text | What the example text would do |
max-width | Defines the maximum width of your boxcode. This should usually be formatted in px, but can be a % proportion of the whole area available. If the posting area is not as wide as the amount you set, it will scale with the screen. | max-width: 500px; | Set the maximum width of the posting area to 500px. If 500px aren't available, then it will scale what you see. |
Margin: Auto | Centers the contants of this style brag in the middle of the posting area | margin: auto; | makes sure the post is center aligned in the posting area |
Padding (%) | Puts a "pad" inside the 4 edges of your chosen width. | padding: 2% | makes sure the text doesn't go right up to the edge of your post. Also adds 4% to your chosen box width |
Padding (px) | Puts a "pad" inside the 4 edges of your chosen width. | padding: 5px | makes sure the text doesn't go right up to the edge of your post. Also adds 10px to your chosen box width |
background-color: | Sets the background colour of your style brag. Can be the name of a colour, the hex code or the rgba of the colour | background-color: black | makes the background of the post black (note, this could also be #000000 or rgba(0,0,0,1) |
Color: | Sets the default colour of the text inside this style brag. Is over-ruled by using color bbcode in the text. | color: white | makes the text of the post white (note, this could also be #ffffff or rgba(255255,255,1) |
box-sizing: border-box | Stops the padding from increasing the size of the box by forcing the padding to be "inside" | max-width: 500px; padding: 2%; box-sizing: border-box; | Keeps the max width of the post at 500px, no matter how big the padding. |
This post is in the following style brag.
Code: Select all
[style=max-width: 500px; Margin: Auto; padding: 2%; background-color: black; color: white;]
I write here.
[/style]
It's 500px wide (where 500px are available, smaller if not), in the middle of the posting area. My text is 2% of the available posting area away from the bottom, top and sides of my style brag, the background is black and the colour of the text is white. These are the things we set up previously, and this is how they look.
This post is in the following style brag.
Code: Select all
[style=max-width: 500px; Margin: Auto; padding: 20%; background-color: black; color: white;]
I write here.
[/style]
It's 500px wide (where 500px are available, smaller if not), in the middle of the posting area. My text is 20% of the available posting area away from the bottom, top and sides of my style brag, the background is black and the colour of the text is white. These are the things we set up previously, and this is how they look.
This post is in the following style brag.
Code: Select all
[style=max-width: 500px; Margin: Auto; padding: 2%; box-sizing: border-box; background-color: black; color: white;]
I write here.
[/style]
It's 500px wide (where 500px are available, smaller if not), in the middle of the posting area. My text is 2% of the available posting area away from the bottom, top and sides of my style brag, without making the box size bigger (so reducing the posting area available) the background is black and the colour of the text is white. These are the things we set up previously, and this is how they look.
Focusing on my PCs. Replies will be slow!
- Pegasus Pug!!!
- City Moderator
- Posts: 10497
- Joined: Sun Sep 11, 2016 1:08 am
- Race: Prophet
- Renown: 666
- Plot Notes
- Office
- Templates
- Point Bank Thread
- Wealth Tier: Tier 1
Re: A Guide to BB Code & Box Code Creation!
2.Borders
We've already looked at Styles. Now, lets have a look at how we put a border on our style brag. There are two ways to do this. With the command "border" or "box shadow". We'll look at both here.
Border
This puts a border (unsurprisingly!) around the style brag is it for. It has a particular format
border: <type> <size> <colour>
- Border Types
- dotted - Defines a dotted border
- dashed - Defines a dashed border
- solid - Defines a solid border
- double - Defines a double border
- groove - Defines a 3D grooved border. The effect depends on the border-color value
- ridge - Defines a 3D ridged border. The effect depends on the border-color value
- inset - Defines a 3D inset border. The effect depends on the border-color value
- outset - Defines a 3D outset border. The effect depends on the border-color value
- Border Size
- This is denoted in pixels (px) - it can not be denoted in % so we ask that you keep your borders reasonable, to ensure that they don't disrupt mobile users.
- It must be formatted with px after the number.
- Border Colour
- This can be the name of the colour
- It can be the hex code - this must be denoted by # before it.
- It can be the rgba code in the format rgba(X,X,X,1)
Box-Shadow
Not literally a boarder, but this is a shadow which goes around the outside of a style brag so can be used as one. It, also, has a particular format
box-shadow: h-offset v-offset blur spread colour
as with borders, this can only be set in PX and we ask that you take this into account and are considerate of mobile users.
- H-offset. This is how horizontally offset from the style brag box the shadow is. This is a number and px. A positive value puts the shadow on the right side of the box (by the number of px you've defined), a negative one on the left.
- V-offset. This is how vertically offset from the style brag box the shadow is. This is a number and px. A positive value puts the shadow below the box (by the number of px you've defined), a negative one puts it above.
- Blur. This is the blur of the shadow. It is a number followed by px. The bigger the number, the more blurred and less solid the shadow is.
- Spread. This is how far the blur spreads out. It is a number followed by px. The bigger the number, the bigger the shadow.
- Colour. This is the colour of the blur. It can be denoted by name, hex code or rgba of colour.
Focusing on my PCs. Replies will be slow!
- Pegasus Pug!!!
- City Moderator
- Posts: 10497
- Joined: Sun Sep 11, 2016 1:08 am
- Race: Prophet
- Renown: 666
- Plot Notes
- Office
- Templates
- Point Bank Thread
- Wealth Tier: Tier 1
Re: A Guide to BB Code & Box Code Creation!
1. BBCode Tables
The bbcode is much more flexible.
1a: Basic BBCode for Tables.
Tables | How to create a table. | See individual details below |
Table 1: Starting and ending a table | Denote the beginning and end of a table with table and /table brags | Code: Select all
|
Table 2: Starting and ending a row in a table: with highlight function | Denote the beginning and end of a row with TR and /TR brags. Hovering over with the mouse creates a highlight in a contrast colour. | Code: Select all
|
Table 2: Starting and ending a row in a table: without highlight function | Denote the beginning and end of a row with TR and /TR brags. No highlight as the cell colours are set. Colour can be changed and can be hex, name or rgba | Code: Select all
|
Table 3: Starting and ending a cell in a row | Denote the beginning and end of a cell with TD and /TD brags | Code: Select all
|
Code: Select all
[table]
[tr style=background-color:black;]
[td] ~~ a new cell in the first row [/td]
[td] ~~ a second cell in the first row [/td]
[/tr]
[tr style=background-color:black;]
[td] ~~~ second row, cell 1 [/td]
[td] ~~~ second row, cell 2 [/td]
[/tr]
[/table]
~~ a new cell in the first row | ~~ a second cell in the first row |
~~~ second row, cell 1 | ~~~ second row, cell 2 |
1b: Pre-Formatted Tables
There are more than this though. If you click on the table image in the top menu bar above (marked 1 in the diagram below) you will open up a menu for creating BB code tables.
Diagram 1: Placement of Top Menu Button.
Diagram 2: Tables Menu
Underneath each choice, there are small squares (which are tiny table icons). Those are the options for how many rows - hover over them to see what you're choosing. In the diagram, I've circled (and marked as B) the choice which is for 3 columns, 4 rows.
If I press that, it gives me the following output.
Code: Select all
[table=45,null]
[thead]
[tr=textleft]
[th=33,null]Title1[/th]
[th=33,null]Title2[/th]
[th=34,null]Title3[/th]
[/tr]
[/thead]
[tbody]
[tr=bg2]
[td=null,1]Text11[/td]
[td=null,1]Text21[/td]
[td=null,1]Text31[/td]
[/tr]
[tr=bg1]
[td=null,1]Text12[/td]
[td=null,1]Text22[/td]
[td=null,1]Text32[/td]
[/tr]
[tr=bg2]
[td=null,1]Text13[/td]
[td=null,1]Text23[/td]
[td=null,1]Text33[/td]
[/tr]
[tr=bg1]
[td=null,1]Text14[/td]
[td=null,1]Text24[/td]
[td=null,1]Text34[/td]
[/tr]
[/tbody]
[/table]
Title1 | Title2 | Title3 |
---|---|---|
Text11 | Text21 | Text31 |
Text12 | Text22 | Text32 |
Text13 | Text23 | Text33 |
Text14 | Text24 | Text34 |
Diagram 3: Table Guidelines.
1c. Customisable BBCode Tables
Our tables code is really powerful and customisation is fully enabled. Therefore, we can set out background images, height, etc. An example of what we can do is here:
Table Title
Title1 | Title2 | Title3 |
---|---|---|
Text11 | Text21 | Text31 |
Text12 | Text22 | Text32 |
Text13 | Text23 | Text33 |
Text14 | Look AT ME!!!! | Text34 |
Text15 | Text25 | Text35 |
Text16 | Text26 | Text36 |
Text17 | Text27 | Text37 |
Text18 | Text28 | Text38 |
The code for this is:
Code: Select all
[size=130]Table Title[/size]
[table style=background-image: url('https://www.finetunedfinances.com/wp-content/uploads/2018/01/fun-on-a-holiday-768x576.jpg'); border_color=orange ]
[thead]
[tr]
[th style=background-color: #c234e1;]Title1[/th]
[th]Title2[/th]
[th]Title3[/th]
[/tr]
[/thead]
[tbody]
[tr]
[td width=30% style=background-color: red;]Text11[/td]
[td]Text21[/td]
[td]Text31[/td]
[/tr]
[tr]
[td]Text12[/td]
[td style=background-color: red;]Text22[/td]
[td]Text32[/td]
[/tr]
[tr]
[td]Text13[/td]
[td]Text23[/td]
[td style=background-color: red;]Text33[/td]
[/tr]
[tr]
[td style="border: 1px solid red;"]Text14[/td]
[td style=height: 62px; text-align: center; padding-top: 1%; background-color: #e9e9e9; text-transform: uppercase; font-size: 16px; color: #000000; letter-spacing: 2px; margin-right: 5px;]Look AT ME!!!! [/td]
[td]Text34[/td]
[/tr]
[tr]
[td]Text15[/td]
[td style="border: 1px solid red;"]Text25[/td]
[td]Text35[/td]
[/tr]
[tr]
[td]Text16[/td]
[td]Text26[/td]
[td style="border: 1px solid red;"]Text36[/td]
[/tr]
[tr]
[td]Text17[/td]
[td]Text27[/td]
[td]Text37[/td]
[/tr]
[tr style="background-color: red;"]
[td]Text18[/td]
[td]Text28[/td]
[td]Text38[/td]
[/tr]
[/tbody]
[/table]
There may come a day when I make a tutorial for this - and if anyone wants to do so, it's gratefully received. But if you've got a good grasp of tables, then you should be able to work it out!
2. Pipes Tables
2a. Basic Pipes Tables
To add a table, use three or more hyphens (---) to create each column’s header, and use pipes (|) to separate each column. Put the header cells syntax above the hyphens, then put a pipe on the beginning and end of each row.
Code: Select all
| Header 1 | Header 2 |
| ----------- | ----------- |
| Text1 | Text2 |
| Text3 | Text 4 |
Header 1 | Header 2 |
---|---|
Text1 | Text2 |
Text3 | Text 4 |
Focusing on my PCs. Replies will be slow!