Template:MainMenu
Line 65: | Line 65: | ||
* [[Roster/{{SUBPAGENAME}}|Roster]] | * [[Roster/{{SUBPAGENAME}}|Roster]] | ||
{{#ifeq:{{{1}}}|Roster| | {{#ifeq:{{{1}}}|Roster| | ||
− | ** [[Roster:Requirements|Requirements]] | + | ** [[Roster:Requirements/{{SUBPAGENAME}}|Requirements]] |
− | ** [[Roster:ChangeLog|Change Log]] | + | ** [[Roster:ChangeLog/{{SUBPAGENAME}}|Change Log]] |
− | ** [[Roster:Install|Installing Roster]] | + | ** [[Roster:Install/{{SUBPAGENAME}}|Installing Roster]] |
− | ** [[Roster:FirstUpload|First Upload]] | + | ** [[Roster:FirstUpload/{{SUBPAGENAME}}|First Upload]] |
− | ** [[Roster:CP|Control Panel]] | + | ** [[Roster:CP/{{SUBPAGENAME}}|Control Panel]] |
− | ** [[Roster:RosterDiag|Roster Diagnosics]] | + | ** [[Roster:RosterDiag/{{SUBPAGENAME}}|Roster Diagnosics]] |
− | ** [[Roster:Menu|Roster Main Menu]] | + | ** [[Roster:Menu/{{SUBPAGENAME}}|Roster Main Menu]] |
− | ** [[Roster:Updating|Updating Character and Guild Data to Roster]] | + | ** [[Roster:Updating/{{SUBPAGENAME}}|Updating Character and Guild Data to Roster]] |
− | ** [[Roster:Addon|Roster Addons]] ([[AddonSDK|AddOn SDK]]) | + | ** [[Roster:Addon/{{SUBPAGENAME}}|Roster Addons]] ([[AddonSDK|AddOn SDK]]) |
− | ** [[Roster:FunctionsOverview|Functions Overview]] | + | ** [[Roster:FunctionsOverview/{{SUBPAGENAME}}|Functions Overview]] |
− | ** [[Roster:Port|Roster CMS Integration]] | + | ** [[Roster:Port/{{SUBPAGENAME}}|Roster CMS Integration]] |
{{#ifeq: {{{2}}}|Port| | {{#ifeq: {{{2}}}|Port| | ||
− | *** [[Roster:Port:WoWRosterDF|WoWRosterDF]] | + | *** [[Roster:Port:WoWRosterDF/{{SUBPAGENAME}}|WoWRosterDF]] |
|}} | |}} | ||
|}} | |}} | ||
* [[UniUploader]] | * [[UniUploader]] | ||
{{#ifeq:{{{1}}}|UniUploader| | {{#ifeq:{{{1}}}|UniUploader| | ||
− | ** [[UniUploader:BasicSetup|Basic Setup]] | + | ** [[UniUploader:BasicSetup/{{SUBPAGENAME}}|Basic Setup]] |
− | ** [[UniUploader:Advanced|Advanced Techniques]] | + | ** [[UniUploader:Advanced/{{SUBPAGENAME}}|Advanced Techniques]] |
− | ** [[UniUploader:PluginFramework|Plugin Framework]] | + | ** [[UniUploader:PluginFramework/{{SUBPAGENAME}}|Plugin Framework]] |
− | *** [[UniUploader:PluginFramework:Tutorial|Plugin Tutorial]] | + | *** [[UniUploader:PluginFramework:Tutorial/{{SUBPAGENAME}}|Plugin Tutorial]] |
− | ** [[UniUploader:Distribution|Distribution]] | + | ** [[UniUploader:Distribution/{{SUBPAGENAME}}|Distribution]] |
|}} | |}} | ||
− | * [[JUniUploader|java UniUploader]] | + | * [[JUniUploader/{{SUBPAGENAME}}|java UniUploader]] |
{{#ifeq:{{{1}}}|jUniUploader| | {{#ifeq:{{{1}}}|jUniUploader| | ||
− | ** [[JUniUploader:BasicSetup|Basic Setup]] | + | ** [[JUniUploader:BasicSetup/{{SUBPAGENAME}}|Basic Setup]] |
|}} | |}} | ||
− | * [[phpUniUploader|PHP UniUploader]] | + | * [[phpUniUploader/{{SUBPAGENAME}}|PHP UniUploader]] |
{{#ifeq: {{{1}}}|phpUniUploader | {{#ifeq: {{{1}}}|phpUniUploader | ||
||}} | ||}} | ||
* [[UniAdmin]] | * [[UniAdmin]] | ||
{{#ifeq:{{{1}}}|UniAdmin| | {{#ifeq:{{{1}}}|UniAdmin| | ||
− | ** [[UniAdmin:Help|Help]] | + | ** [[UniAdmin:Help/{{SUBPAGENAME}}|Help]] |
|}} | |}} | ||
* [[WoWAddon]]s | * [[WoWAddon]]s | ||
{{#ifeq:{{{1}}}|WoWAddon| | {{#ifeq:{{{1}}}|WoWAddon| | ||
− | ** [[CharacterProfiler|CharacterProfiler]] | + | ** [[CharacterProfiler/{{SUBPAGENAME}}|CharacterProfiler]] |
− | ** [[GuildProfiler|GuildProfiler]] | + | ** [[GuildProfiler/{{SUBPAGENAME}}|GuildProfiler]] |
− | ** [[PvPLog|PvPLog]] | + | ** [[PvPLog/{{SUBPAGENAME}}|PvPLog]] |
{{#ifeq: {{{2}}}|PvPLog| | {{#ifeq: {{{2}}}|PvPLog| | ||
− | *** [[PvPLog:Changes|Change Log]] | + | *** [[PvPLog:Changes/{{SUBPAGENAME}}|Change Log]] |
− | *** [[PvPLog:TODO|TODO]] | + | *** [[PvPLog:TODO/{{SUBPAGENAME}}|TODO]] |
|}} | |}} | ||
|}} | |}} | ||
Line 112: | Line 112: | ||
* [[CodingStandards|Coding Standards]] | * [[CodingStandards|Coding Standards]] | ||
* [[Special:Categories|Categories]] | * [[Special:Categories|Categories]] | ||
− | * [[MYSQL_Guide|MySQL Guide]] | + | * [[MYSQL_Guide/{{SUBPAGENAME}}|MySQL Guide]] |
}} | }} | ||
Revision as of 04:32, 10 February 2008
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]] |}} |}}