Drop Down Menus

From TLKMuck Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '=Example= <table><tr> <td><dropDownMenu css="tlkmenu" name="Main" menuTarget="index.php?title=Main_Page" sub1="Kopje Pride" sub1target="index.php?title=Kopje:Main Page" /></td> <…')
(Fleshed out the page with content and not just the test menu. ;))
 
Line 1: Line 1:
 +
=Overview=
 +
Drop Down Menus are an extension that have been added to the TLKMuck MediaWiki installation to allow editors to place menus within pages throughout the site.
 +
 +
The <nowiki><dropDownMenu></nowiki> tag is used to create a single drop down menu and up to ten associated sub-menus. Multiple menus may be combined within a row in a table to create a menu bar. Alternatively, having one menu on each row of a table would create a sidebar style menu.
 +
 +
The following options are available:
 +
<b><u>Parameter</u>  <u>Example</u></b>                    <b><u>Notes</u></b>
 +
css        tlkmenu                    Required. tlkmenu is the default. For additional options, contact Ketekh.
 +
name      Main                      Name of the menu. Each menu on a page must have a unique name.
 +
                                      The name is displayed as the menu's top-level item.
 +
menuTarget index.php?title=Main_Page  Optional. For pages within the TLKMuck Wiki, you must include
 +
                                      index.php?title=Name_Of_Page. For external sites, you must include the
 +
                                      entire address, beginning with http.
 +
sub1      What's New                Required to create a sub-menu. Up to ten sub-menus may be created.
 +
                                      (ie: sub1, sub2, ... sub10)
 +
sub1target index.php?title=What's_New If provided, targets must follow the same guidelines listed above
 +
                                      for menuTarget.
 +
=Example=
=Example=
<table><tr>
<table><tr>
-
<td><dropDownMenu css="tlkmenu" name="Main" menuTarget="index.php?title=Main_Page" sub1="Kopje Pride" sub1target="index.php?title=Kopje:Main Page" /></td>
+
<td><dropDownMenu css="tlkmenu" name="Home Page" menuTarget="index.php?title=Main_Page" sub1="What's New" sub1target="index.php?title=What's_New" /></td>
-
<td><dropDownMenu css="tlkmenu" name="Main2" menuTarget="index.php?title=Main_Page" sub1="Kopje Pride 2" sub1target="index.php?title=Kopje:Main Page" /></td>
+
<td><dropDownMenu css="tlkmenu" name="Resources & Tutorials" menuTarget="/index.php?title=Category:Resources_and_Tutorials" sub1="Glossary" sub1target="index.php?title=Glossary" sub2="MUCK Intro Guide" sub2target="index.php?title=MUCK_Intro_Guide" /></td>
</tr></table>
</tr></table>
These two menus were created with the following code:
These two menus were created with the following code:
-
<table><tr>
+
 
-
<td><dropDownMenu css="tlkmenu
+
<pre>
-
" name="Main" menuTarget="index.php?title=Main_Page" sub1="Kopje Pride" sub1target="index.php?title=Kopje:Main Page" /></td>
+
<table><tr>
-
<td><dropDownMenu css="tlkmenu
+
<td><dropDownMenu css="tlkmenu" name="Home Page" menuTarget="index.php?title=Main_Page" sub1="What's New"
-
" name="Main2" menuTarget="index.php?title=Main_Page" sub1="Kopje Pride 2" sub1target="index.php?title=Kopje:Main Page" /></td>
+
                  sub1target="index.php?title=What's_New" /></td>
-
</tr></table>
+
<td><dropDownMenu css="tlkmenu " name="Resources & Tutorials" menuTarget="/index.php?title=Category:Resources_and_Tutorials"  
 +
                  sub1="glossary" sub1target="index.php?title=Glossary"
 +
                  sub2="MUCK Intro Guide" sub2target="index.php?title=MUCK_Intro_Guide" /></td>
 +
</tr></table>
 +
</pre>
 +
[[Category:Resources and Tutorials|{{SUBPAGENAME}}]]
 +
[[Category:Wiki Help|{{SUBPAGENAME}}]]

Latest revision as of 23:29, 20 June 2010

Overview

Drop Down Menus are an extension that have been added to the TLKMuck MediaWiki installation to allow editors to place menus within pages throughout the site.

The <dropDownMenu> tag is used to create a single drop down menu and up to ten associated sub-menus. Multiple menus may be combined within a row in a table to create a menu bar. Alternatively, having one menu on each row of a table would create a sidebar style menu.

The following options are available:

Parameter  Example                    Notes
css        tlkmenu                    Required. tlkmenu is the default. For additional options, contact Ketekh.
name       Main                       Name of the menu. Each menu on a page must have a unique name. 
                                      The name is displayed as the menu's top-level item.
menuTarget index.php?title=Main_Page  Optional. For pages within the TLKMuck Wiki, you must include 
                                      index.php?title=Name_Of_Page. For external sites, you must include the 
                                      entire address, beginning with http.
sub1       What's New                 Required to create a sub-menu. Up to ten sub-menus may be created.
                                      (ie: sub1, sub2, ... sub10) 
sub1target index.php?title=What's_New If provided, targets must follow the same guidelines listed above
                                      for menuTarget.

Example

These two menus were created with the following code:

<table><tr>
<td><dropDownMenu css="tlkmenu" name="Home Page" menuTarget="index.php?title=Main_Page" sub1="What's New"
                  sub1target="index.php?title=What's_New" /></td>
<td><dropDownMenu css="tlkmenu " name="Resources & Tutorials" menuTarget="/index.php?title=Category:Resources_and_Tutorials" 
                  sub1="glossary" sub1target="index.php?title=Glossary"
                  sub2="MUCK Intro Guide" sub2target="index.php?title=MUCK_Intro_Guide" /></td>
</tr></table>
Personal tools
TOOLBOX
LANGUAGES