SecondBreaking
The Dragon Reborn
Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
CRiTiCAL ERR0R] [URL="https://www.rpnation.com/profile/17998-corgi/ said:@Corgi[/URL];
Sorry I haven't replied. I actually have been incredibly inactive on RPN as of late. For that reason, I can't accept your request at this time.
I deeply apologize for this inconvenience. ;;A:;
Aww... All good!CRiTiCAL ERR0R] [URL="https://www.rpnation.com/profile/21154-lostviolence/ said:@lostviolence[/URL]
Unfortunately not in here. :c
However, if you would like to help people in general with BBCode, I don't see why you can't apply for The Helper Initiative
Also, if you would like to collaborate with other BBCoders, maybe we can arrange a convo to see what we can come up with?
CRiTiCAL ERR0R][bg=#999977][COLOR=#ccdd88][sh]TEAHOUSE TUTORIAL: ACCORDION[/sh][/COLOR][/bg] [URL="https://www.rpnation.com/threads/rpnation-bbcode-guide.34813/page-3#post-3315787 said:The Accordion BBCode[/URL] has been one of my recent favorites. Especially when you start to implement color and graphics to make them clickable buttons instead of that solid gray. If you haven't noticed, I used quite a bit of accordions myself in the Teahouse.
This tutorial was requested by our very own @welian. I will go through how each section words, and how to apply it with other codes. So let's begin!
WHAT IS ACCORDION BBCODE?
Just like the BBCode Guide says, the Accordion is an alternative to the Tabs BBCode. It allows users to organize, compartmentalize and condense the amount of writing all together. I would consider this code to be one of the more versatile ones, considering its alteration capabilities.
The standard unaltered code for Accordion looks like this:
Code:[accordion] {slide=Text}Blurb{/slide} [/accordion]
And will give you this:
- Text
- Blurb
BREAKING DOWN THE ACCORDION
The reason why I say the Accordion seems to be the most versatile is because its many different options.
In the BBCode Guide, there are given the options you can do to the [accordion] tag.
So for example:
You want a small accordion to display. You would place the percentage number as 40%. The code would look like this:
[accordion=50%][/SIZE]
[SIZE=12px]
{slide=Text}Blurb{/slide}[/SIZE]
[SIZE=12px]
[/accordion]
And would look like this:
no slide
- Text
- Blurb
If you decide to add any other code edits, they will be separated by | ( Shift+\ key)
So you want it to float right of a text, it will look like this: no slide
- Text
- Blurb
[accordion=50% | fright][/SIZE]
[SIZE=12px]
{slide=Text}Blurb{/slide}[/SIZE]
[SIZE=12px]
[/accordion]
The bleft, bright, and bcenter will just align it, but won't float it (float is like what you do to images. See Image Float).
Here comes the fun part. Slides. Slides have the most customization, and are the trickiest part of this entire code. Slides go inside of the [accordion] [/accordion] tags, controlling the bars and the content that reveals itself when the bar is clicked on.
I'm going to put this in caps: BE INCREDIBLY CAREFUL WITH SLIDES. You can break the entire thread if its not done properly (I know, I've seen it. >_>;; ). Okay, maybe not break per se, but anyways.
Slides do NOT use brackets like the accordion ( [ ] ). They use these things: { }. Be careful when placing your slides. They won't work if the Slides are not in those special little brackets.
Just like the options for the accordion, you can align the text within the bar:
[accordion=50%][/SIZE]
[SIZE=12px]
{slide=left | Text}Blurb{/slide}[/SIZE]
[SIZE=12px]
[/accordion]
no slide
- Text
- Blurb
You still must use Shift+\ in order to separate the different functions.
The 'open' option will keep the accordion open when you first look at the post.
CUSTOMIZING ACCORDIONS
Now this is the section that everybody is looking forward to. I am going to break it down into sections:
• Editing Titles
• Adding Backgrounds
• Adding Borders to Erase Borders
Editing Titles
The titles are what I will be calling the text inside of the Slide tag. So essentially, what we are editing, is how the Slide bar looks.
If we take our sample 50% accordion code, we add edits to the title.
[accordion=50%]{slide=left | [B][COLOR=#778833][SIZE=18px]Text[/COLOR][/SIZE][/B]}Blurb{/slide}
[/accordion]
- Text
- Blurb
Pretty much anything you do to the text INSIDE the {Slide} will show up. So feel free to play around with it. Just make sure that it is in between those funny brackets.
Adding Backgrounds
Here we go. This is the stuff everyone really wants. Just like you can edit the text in the slides, you can give them backgrounds. The code will look like this:
[accordion=50%]{slide=left | [bg=#ccdd88][B][COLOR=#778833][SIZE=18px]Text[/COLOR][/SIZE][/B][/bg]}Blurb{/slide}
[/accordion]
Text- Blurb
Its as simple as that! You can add backgrounds around it as well (inside and outside of the code) to camouflage it. Example:
[bg=#ccdd88][accordion=50%]{slide=left | [bg=#ccdd88][B][COLOR=#778833][SIZE=18px]Text[/COLOR][/SIZE][/B][/bg]}[bg=#ccdd88]Blurb[/bg]{/slide}
[/accordion][/bg]
Text Blurb
Adding Borders to Erase Borders
Do you see that ugly border around it?! Well there is a way to get rid of it. You simply put a 0px border around it using the [border] tag! Here's an example:
[bg=#ccdd88][border=0px solid #ccdd88][accordion=50%]{slide=left | [bg=#ccdd88][B][COLOR=#778833][SIZE=18px]Text[/COLOR][/SIZE][/B][/bg]}[bg=#ccdd88]Blurb[/bg]{/slide}
[/accordion][/border][/bg]
Text Blurb
Make sure the border is around the [accordion] [/accordion] tags or else it won't disappear.
And that's about all it takes, guys! I hope this was beneficial to you all. If you have any more questions or more clarification, feel free to ask!
Arigatou gozaimashita!
//bows
This is amazing But im not sure how you would make multiple slides?
You repeat the {slide} {/slide} part while keeping it before the [/accordion] tag.Kimi said:This is amazing But im not sure how you would make multiple slides?
CRiTiCAL ERR0R][bg=#999977][COLOR=#ccdd88][sh]TEAHOUSE TUTORIAL: ACCORDION[/sh][/COLOR][/bg] [URL="https://www.rpnation.com/threads/rpnation-bbcode-guide.34813/page-3#post-3315787 said:The Accordion BBCode[/URL] has been one of my recent favorites. Especially when you start to implement color and graphics to make them clickable buttons instead of that solid gray. If you haven't noticed, I used quite a bit of accordions myself in the Teahouse.
This tutorial was requested by our very own @welian. I will go through how each section words, and how to apply it with other codes. So let's begin!
WHAT IS ACCORDION BBCODE?
Just like the BBCode Guide says, the Accordion is an alternative to the Tabs BBCode. It allows users to organize, compartmentalize and condense the amount of writing all together. I would consider this code to be one of the more versatile ones, considering its alteration capabilities.
The standard unaltered code for Accordion looks like this:
Code:[accordion] {slide=Text}Blurb{/slide} [/accordion]
And will give you this:
- Text
- Blurb
BREAKING DOWN THE ACCORDION
The reason why I say the Accordion seems to be the most versatile is because its many different options.
In the BBCode Guide, there are given the options you can do to the [accordion] tag.
So for example:
You want a small accordion to display. You would place the percentage number as 40%. The code would look like this:
[accordion=50%][/SIZE]
[SIZE=12px]
{slide=Text}Blurb{/slide}[/SIZE]
[SIZE=12px]
[/accordion]
And would look like this:
no slide
- Text
- Blurb
If you decide to add any other code edits, they will be separated by | ( Shift+\ key)
So you want it to float right of a text, it will look like this: no slide
- Text
- Blurb
[accordion=50% | fright][/SIZE]
[SIZE=12px]
{slide=Text}Blurb{/slide}[/SIZE]
[SIZE=12px]
[/accordion]
The bleft, bright, and bcenter will just align it, but won't float it (float is like what you do to images. See Image Float).
Here comes the fun part. Slides. Slides have the most customization, and are the trickiest part of this entire code. Slides go inside of the [accordion] [/accordion] tags, controlling the bars and the content that reveals itself when the bar is clicked on.
I'm going to put this in caps: BE INCREDIBLY CAREFUL WITH SLIDES. You can break the entire thread if its not done properly (I know, I've seen it. >_>;; ). Okay, maybe not break per se, but anyways.
Slides do NOT use brackets like the accordion ( [ ] ). They use these things: { }. Be careful when placing your slides. They won't work if the Slides are not in those special little brackets.
Just like the options for the accordion, you can align the text within the bar:
[accordion=50%][/SIZE]
[SIZE=12px]
{slide=left | Text}Blurb{/slide}[/SIZE]
[SIZE=12px]
[/accordion]
no slide
- Text
- Blurb
You still must use Shift+\ in order to separate the different functions.
The 'open' option will keep the accordion open when you first look at the post.
CUSTOMIZING ACCORDIONS
Now this is the section that everybody is looking forward to. I am going to break it down into sections:
• Editing Titles
• Adding Backgrounds
• Adding Borders to Erase Borders
Editing Titles
The titles are what I will be calling the text inside of the Slide tag. So essentially, what we are editing, is how the Slide bar looks.
If we take our sample 50% accordion code, we add edits to the title.
[accordion=50%]{slide=left | [B][COLOR=#778833][SIZE=18px]Text[/COLOR][/SIZE][/B]}Blurb{/slide}
[/accordion]
- Text
- Blurb
Pretty much anything you do to the text INSIDE the {Slide} will show up. So feel free to play around with it. Just make sure that it is in between those funny brackets.
Adding Backgrounds
Here we go. This is the stuff everyone really wants. Just like you can edit the text in the slides, you can give them backgrounds. The code will look like this:
[accordion=50%]{slide=left | [bg=#ccdd88][B][COLOR=#778833][SIZE=18px]Text[/COLOR][/SIZE][/B][/bg]}Blurb{/slide}
[/accordion]
Text- Blurb
Its as simple as that! You can add backgrounds around it as well (inside and outside of the code) to camouflage it. Example:
[bg=#ccdd88][accordion=50%]{slide=left | [bg=#ccdd88][B][COLOR=#778833][SIZE=18px]Text[/COLOR][/SIZE][/B][/bg]}[bg=#ccdd88]Blurb[/bg]{/slide}
[/accordion][/bg]
Text Blurb
Adding Borders to Erase Borders
Do you see that ugly border around it?! Well there is a way to get rid of it. You simply put a 0px border around it using the [border] tag! Here's an example:
[bg=#ccdd88][border=0px solid #ccdd88][accordion=50%]{slide=left | [bg=#ccdd88][B][COLOR=#778833][SIZE=18px]Text[/COLOR][/SIZE][/B][/bg]}[bg=#ccdd88]Blurb[/bg]{/slide}
[/accordion][/border][/bg]
Text Blurb
Make sure the border is around the [accordion] [/accordion] tags or else it won't disappear.
And that's about all it takes, guys! I hope this was beneficial to you all. If you have any more questions or more clarification, feel free to ask!
Arigatou gozaimashita!
//bows
Thank you very much for this! I do have a very noobish question...
what does before mean? -> {slide=left | Text}Blurb{/slide}
If there was any explanation regarding that on here, I may have missed it~
Thanks!
Hey there! So no, you didn't miss anything. the COLOR tags are standard BBCode for changing the color of font and other codes (that are applicable).ArcticViolin said:Thank you very much for this! I do have a very noobish question...
what does before mean? -> {slide=left | Text}Blurb{/slide}
If there was any explanation regarding that on here, I may have missed it~
Thanks!
Thanks you for the explanation!Color Hex Color Codes[/URL] ). Instead of using "color name", you can use a HEX code. HEX codes are great when you want to use various shades of colors or a color that you may not know the name of. You place them in just like the example above, however, you MUST have a hashtag before the letter/number sequence.
[/FONT][FONT='PT Sans'][COLOR=#C3B0C3]This is a thistle color[/COLOR][/FONT][FONT='PT Sans']
seen like this: This is a thistle color
I hope this all makes sense. Feel free to ask more questions if you have any!