Template:MainMenu
| Line 32: | Line 32: | ||
** [[UniUploader:BasicSetup|Basic Setup]] | ** [[UniUploader:BasicSetup|Basic Setup]] | ||
** [[UniUploader:Advanced|Advanced Techniques]] | ** [[UniUploader:Advanced|Advanced Techniques]] | ||
| + | ** [[UniUploader:PluginFramework|Plugin Framework]] | ||
** [[UniUploader:Distribution|Distribution]] | ** [[UniUploader:Distribution|Distribution]] | ||
|}} | |}} | ||
Revision as of 19:39, 26 August 2007
| Important note: When you edit this page, you agree to release your contribution into the public domain. |
Template
This is the Main Menu for our wiki
It uses a template parameter and conditionals to display sub menus
The Roster menu is called like so
{{MainMenu|Roster}}
MainMenu is the name of this template
Roster is the first parameter
{{#ifeq:{{{1}}}|Roster|
** [[SomePage|SomePage]]
|}}
This is a conditional that determines if we are printing a sub menu
{{#ifeq:{{{1}}}|Roster|
This means if the first template parameter equals Roster, then display the sub menu
|}}
This closes the conditional
If we want a sub menu in a sub menu, then we use more parameters when calling the template
{{MainMenu|Roster|Addons}}
MainMenu is the name of this template
Roster is the first parameter
Addons is the second parameter
{{#ifeq:{{{1}}}|Roster|
** [[SomePage|SomePage]]
{{#ifeq:{{{2}}}|Addons|
*** [[AnotherPage|AnotherPage]]
|}}
|}}