Template:Dropdown

Purpose
This template is used to create a hidden dropdown area that becomes visible after the user selects a keyword on the page. There are many different parameters that can be passed into this template, see the Usage section below for details. It is important to understand the structure of dropdown menus in order to get this template to work properly. The most important thing to remember is that every time this template is used, make sure to also close the dropdown area by adding a call to.

Usage
To use this template insert the code on a page, with a combination of the following parameter:


 * Page title=|
 * Page title will change the page title from the URL to whatever is set as Page title. For example,


 * Section title=| and Section title size=|
 * Section title will output the text that you enter, and will use Section title size as the text size value. Section title size must be a number from 1-5, since it will use this number to generate the size of the text using, , , , and . Following are the current text sizes for numberes 1-6:
 * This is text size 1, including the underline across the width of the section
 * This is text size 2, including the underline across the width of the section
 * This is text size 3
 * This is text size 4
 * This is text size 5
 * This is text size 6
 * This is text size 6


 * Section text=|
 * At the moment, Section text and Page text are identical, placing text at the top of the current working area. This may change in the future with different sizes based on which text is being defined.
 * example:


 * Page text=|
 * Page text can be as much text as you need in order to explain something. It will be put above the Dropdown area.  If you need to put a carriage return in the middle of the text, use   .  The text size that will be used will be


 * Begin text=|
 * Begin text will place text immediately after the dropdown keyword, and will be visible after the user has selected the keyword to open up the dropdown area.


 * Page image=|
 * Page image will place an image on the page, exactly as you specify the image. In other words, use wiki code to define the Page image.
 * example:


 * Dropdown title=|
 * Dropdown title will be the keyword displayed that the user must select in order to open up the dropdown area.
 * example:


 * Previous dropdown title=|
 * Previous dropdown title' is used when you are created dropdown areas inside of dropdown areas. For example, if you create 3 top-level options of Birth, Marriage and Death, and then create dropdown areas within the 3 different areas.  In the code that creates the dropdown area, a proper name is assigned to the area, so when the keyword is selected, the wiki knows exactly which area is to be opened or closed.  These areas are named based on the title (or keyword) given to that particular dropdown areas, however, sometimes there are duplicate keywords that are used on the same page.  (Example: Under Birth, Marriage and Death, you may want to create dates like '1850 to 1900', as keywords under all three of the main options.  In this case, when you create the 2nd level dropdown using these duplicate keywords, you must also define the keyword that was used as the top-level option.
 * example:


 * and


 * Dropdown text style=|
 * Dropdown text style defines how the text for the Dropdown title will look. If you do not use this parameter,   will be used.  If you wish to have the dropdown look like a link, you can use the following.


 * example:

Troubleshooting
If you are unable to get the dropdown areas to work correctly, there are several things that you should verify.
 * 1) Verify that all parameters passed into the Dropdown template are spelled correctly, with correct lowercase and uppercase letters.
 * 2) If any of the keyword links you have created are red in color, that means that the call to the template is not recognized.  Check spelling and spacing of the template name.
 * 3) Make sure all calls to  are coupled with a call to , however, you must include all information inside the dropdown area BEFORE.

Code Example
Here's a simple example of code, which can be used to create your own dropdown area on a page.

Inside each dropdown area, you can place images, links or additional dropdown options.

Inside each dropdown area, you can place images, links or additional dropdown options.

Inside each dropdown area, you can place images, links or additional dropdown options.

Inside each dropdown area, you can place images, links or additional dropdown options.

Inside each dropdown area, you can place images, links or additional dropdown options.

Inside each dropdown area, you can place images, links or additional dropdown options.