Let's talk now about more advanced use of lists in bbCode. You are not limited in posting plain lists, you can combine tags with different option to get some advanced lists with sub-lists under them.
This might be a bit complicated, you may make some errors while creating your list, & may have to preview your messages before you publish them to check if all is correct. All the popular forums allow posts previews, so don't hesitate to use this feature to make sure you're posting a well formated message, or just for testing, why not? ;)
Let's see step by step how to make sub-lists:
As an example, we will create a list with main titles numbered using capital Roman digits, under them, lists with titles numbered using Arabic digits, and finally, a sub-sub-list that is alphabetic with lowercase letters.
Here's what we'll going to get in the end of this tutorial:
- American Continent
- USA
- New York
- Los Angeles
- Miami
- Mexico
- USA
- Africa
- Egypt
- Algeria
- Sudan
- Europe
- Spain
- Switzerland
As we saw, unless with Simple Machines Lists, all others are made using two tags: the [list] tag & the [*] tag, let's first type the code for our main list containing continents, we will use the I option for it:
[list=I]
[*]American Continent
[*]Africa
[*]Europe
[/list]
Result:
- American Continent
- Africa
- Europe
[list=I]
[*]American Continent
[list=1]
[*]USA
[*]Mexico
[/list]
[*]Africa
[list=1]
[*]Egypt
[*]Algeria
[*]Sudan
[/list]
[*]Europe
[list=1]
[*]Spain
[*]Switzerland
[/list]
[/list]
Notice how the first & second lists we added, had their starting tag [list] inserted just after the continent name it should be under, and their end tag [/list] put just before the next continent.
For the list under Europe, and as it's the last one, the end tag was inserted before the end tag of the main list of continents.
Result:
- American Continent
- USA
- Mexico
- USA
- Africa
- Egypt
- Algeria
- Sudan
- Europe
- Spain
- Switzerland
[list=I]
[*]American Continent
[list=1]
[*]USA
[list=a]
[*]New York
[*]Los Angeles
[*]Miami
[/list]
[*]Mexico
[/list]
[*]Africa
[list=1]
[*]Egypt
[*]Algeria
[*]Sudan
[/list]
[*]Europe
[list=1]
[*]Spain
[*]Switzerland
[/list]
[/list]
We already saw the result, this:
- American Continent
- USA
- New York
- Los Angeles
- Miami
- Mexico
- USA
- Africa
- Egypt
- Algeria
- Sudan
- Europe
- Spain
- Switzerland
Any questions? As always, drop a comment! :)
1 comment:
انتم تستحقوا العيش في منزل نظيف وخالي من اي اتربة ولكن كيف ستحقوا هذا الحلم مع شركة تنظيف بيوت بالمدينة المنورة هذا الحلم سيتحقق وبصورة لم تتخيلوها فقط تواصلوا معانا عبر
http://www.forsan-elkhaleg.com
Post a Comment