Template:MainMenu
| Line 3: | Line 3: | ||
==Template== | ==Template== | ||
| − | {{Warning|Other Locales|For now, this menu has to be duplicated for | + | {{Warning|Other Locales|For now, this menu has to be made for English, then duplicated once for other languages, which is a huge bummer<br>So for now, when you change this menu, make sure you scroll down and change the duplicate}} |
| Line 12: | Line 12: | ||
<span style="font-size:12px;font-weight:bold;">[[Main_Page|Main Page]]</span> | <span style="font-size:12px;font-weight:bold;">[[Main_Page|Main Page]]</span> | ||
</div> | </div> | ||
| + | {{ifneq:{{SUBPAGENAME}}|{{BASEPAGENAME}}| | ||
* [[Roster]] | * [[Roster]] | ||
| + | {{#ifeq:{{{1}}}|Roster| | ||
| + | ** [[Roster:Requirements|Requirements]] | ||
| + | ** [[Roster:ChangeLog|Change Log]] | ||
| + | ** [[Roster:Install|Installing Roster]] | ||
| + | ** [[Roster:FirstUpload|First Upload]] | ||
| + | ** [[Roster:CP|Control Panel]] | ||
| + | ** [[Roster:RosterDiag|Roster Diagnosics]] | ||
| + | ** [[Roster:Menu|Roster Main Menu]] | ||
| + | ** [[Roster:Updating|Updating Character and Guild Data to Roster]] | ||
| + | ** [[Roster:Addon|Roster Addons]] ([[AddonSDK|AddOn SDK]]) | ||
| + | ** [[Roster:FunctionsOverview|Functions Overview]] | ||
| + | ** [[Roster:Port|Roster CMS Integration]] | ||
| + | {{#ifeq: {{{2}}}|Port| | ||
| + | *** [[Roster:Port:WoWRosterDF|WoWRosterDF]] | ||
| + | |}} | ||
| + | |}} | ||
| + | * [[UniUploader]] | ||
| + | {{#ifeq:{{{1}}}|UniUploader| | ||
| + | ** [[UniUploader:BasicSetup|Basic Setup]] | ||
| + | ** [[UniUploader:Advanced|Advanced Techniques]] | ||
| + | ** [[UniUploader:PluginFramework|Plugin Framework]] | ||
| + | *** [[UniUploader:PluginFramework:Tutorial|Plugin Tutorial]] | ||
| + | ** [[UniUploader:Distribution|Distribution]] | ||
| + | |}} | ||
| + | * [[JUniUploader|java UniUploader]] | ||
| + | {{#ifeq:{{{1}}}|jUniUploader| | ||
| + | ** [[JUniUploader:BasicSetup|Basic Setup]] | ||
| + | |}} | ||
| + | * [[phpUniUploader|PHP UniUploader]] | ||
| + | {{#ifeq: {{{1}}}|phpUniUploader | ||
| + | ||}} | ||
| + | * [[UniAdmin]] | ||
| + | {{#ifeq:{{{1}}}|UniAdmin| | ||
| + | ** [[UniAdmin:Help|Help]] | ||
| + | |}} | ||
| + | * [[WoWAddon]]s | ||
| + | {{#ifeq:{{{1}}}|WoWAddon| | ||
| + | ** [[CharacterProfiler|CharacterProfiler]] | ||
| + | ** [[GuildProfiler|GuildProfiler]] | ||
| + | ** [[PvPLog|PvPLog]] | ||
| + | {{#ifeq: {{{2}}}|PvPLog| | ||
| + | *** [[PvPLog:Changes|Change Log]] | ||
| + | *** [[PvPLog:TODO|TODO]] | ||
| + | |}} | ||
| + | |}} | ||
| + | * [[OurTeam|The WR.net Team]] | ||
| + | * [[CodingStandards|Coding Standards]] | ||
| + | * [[Special:Categories|Categories]] | ||
| + | * [[MYSQL_Guide|MySQL Guide]]| | ||
| + | * [[Roster/{{SUBPAGENAME}}]] | ||
{{#ifeq:{{{1}}}|Roster| | {{#ifeq:{{{1}}}|Roster| | ||
** [[Roster:Requirements|Requirements]] | ** [[Roster:Requirements|Requirements]] | ||
| Line 62: | Line 113: | ||
* [[Special:Categories|Categories]] | * [[Special:Categories|Categories]] | ||
* [[MYSQL_Guide|MySQL Guide]] | * [[MYSQL_Guide|MySQL Guide]] | ||
| + | }} | ||
| + | |||
</div></onlyinclude> | </div></onlyinclude> | ||
Revision as of 04:25, 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]]
|}}
|}}