|
|
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> |
− | {{#ifeq:{{SUBPAGENAME}}|{{BASEPAGENAME}}| | + | <!-- {{#ifeq:{{SUBPAGENAME}}|{{BASEPAGENAME}}| BEGIN ENGLISH MENU --> |
− | <!-- BEGIN ENGLISH MENU -->
| + | |
| * [[Roster]] | | * [[Roster]] |
| {{#ifeq:{{{1}}}|Roster| | | {{#ifeq:{{{1}}}|Roster| |
Line 63: |
Line 62: |
| * [[CodingStandards|Coding Standards]] | | * [[CodingStandards|Coding Standards]] |
| * [[Special:Categories|Categories]] | | * [[Special:Categories|Categories]] |
− | * [[MYSQL_Guide|MySQL Guide]]| | + | * [[MYSQL_Guide|MySQL Guide]] |
− | <!-- BEGIN OTHER LOCAES MENU -->
| + | |
− | * {{#ifexist: Roster/{{SUBPAGENAME}}|[[Roster/{{SUBPAGENAME}}|Roster]]|[[Roster/{{SUBPAGENAME}}|Roster]]}}
| + | |
− | {{#ifeq:{{{1}}}|Roster|
| + | |
− | ** {{#ifexist: Roster:Requirements/{{SUBPAGENAME}}|[[Roster:Requirements/{{SUBPAGENAME}}|Requirements]]|[[Roster:Requirements/{{SUBPAGENAME}}|Requirements]]}}
| + | |
− | ** {{#ifexist: Roster:ChangeLog/{{SUBPAGENAME}}|[[Roster:ChangeLog/{{SUBPAGENAME}}|Change Log]]|[[Roster:ChangeLog/{{SUBPAGENAME}}|Change Log]]}}
| + | |
− | ** {{#ifexist: Roster:Install/{{SUBPAGENAME}}|[[Roster:Install/{{SUBPAGENAME}}|Installing Roster]]|[[Roster:Install/{{SUBPAGENAME}}|Installing Roster]]}}
| + | |
− | ** {{#ifexist: Roster:FirstUpload/{{SUBPAGENAME}}|[[Roster:FirstUpload/{{SUBPAGENAME}}|First Upload]]|[[Roster:FirstUpload/{{SUBPAGENAME}}|First Upload]]}}
| + | |
− | ** {{#ifexist: Roster:CP/{{SUBPAGENAME}}|[[Roster:CP/{{SUBPAGENAME}}|Control Panel]]|[[Roster:CP/{{SUBPAGENAME}}|Control Panel]]}}
| + | |
− | ** {{#ifexist: Roster:RosterDiag/{{SUBPAGENAME}}|[[Roster:RosterDiag/{{SUBPAGENAME}}|Roster Diagnosics]]|[[Roster:RosterDiag/{{SUBPAGENAME}}|Roster Diagnosics]]}}
| + | |
− | ** {{#ifexist: Roster:Menu/{{SUBPAGENAME}}|[[Roster:Menu/{{SUBPAGENAME}}|Roster Main Menu]]|[[Roster:Menu/{{SUBPAGENAME}}|Roster Main Menu]]}}
| + | |
− | ** {{#ifexist: Roster:Updating/{{SUBPAGENAME}}|[[Roster:Updating/{{SUBPAGENAME}}|Updating Character and Guild Data to Roster]]|[[Roster:Updating/{{SUBPAGENAME}}|Updating Character and Guild Data to Roster]]}}
| + | |
− | ** {{#ifexist: Roster:Addon/{{SUBPAGENAME}}|[[Roster:Addon/{{SUBPAGENAME}}|Roster Addons]]|[[Roster:Addon/{{SUBPAGENAME}}|Roster Addons]]}} ([[AddonSDK|AddOn SDK]])
| + | |
− | ** {{#ifexist: Roster:FunctionsOverview/{{SUBPAGENAME}}|[[Roster:FunctionsOverview/{{SUBPAGENAME}}|Functions Overview]]|[[Roster:FunctionsOverview/{{SUBPAGENAME}}|Functions Overview]]}}
| + | |
− | ** {{#ifexist: Roster:Port/{{SUBPAGENAME}}|[[Roster:Port/{{SUBPAGENAME}}|Roster CMS Integration]]|[[Roster:Port/{{SUBPAGENAME}}|Roster CMS Integration]]}}
| + | |
− | {{#ifeq: {{{2}}}|Port|
| + | |
− | *** {{#ifexist: Roster:Port:WoWRosterDF/{{SUBPAGENAME}}|[[Roster:Port:WoWRosterDF/{{SUBPAGENAME}}|WoWRosterDF]]|[[Roster:Port:WoWRosterDF/{{SUBPAGENAME}}|WoWRosterDF]]}}
| + | |
− | |}}
| + | |
− | |}}
| + | |
− | * {{#ifexist: UniUploader/{{SUBPAGENAME}}|[[UniUploader/{{SUBPAGENAME}}|UniUploader]]|[[UniUploader/{{SUBPAGENAME}}|UniUploader]]}}
| + | |
− | {{#ifeq:{{{1}}}|UniUploader|
| + | |
− | ** {{#ifexist: UniUploader:BasicSetup/{{SUBPAGENAME}}|[[UniUploader:BasicSetup/{{SUBPAGENAME}}|Basic Setup]]|[[UniUploader:BasicSetup/{{SUBPAGENAME}}|Basic Setup]]}}
| + | |
− | ** {{#ifexist: UniUploader:Advanced/{{SUBPAGENAME}}|[[UniUploader:Advanced/{{SUBPAGENAME}}|Advanced Techniques]]|[[UniUploader:Advanced/{{SUBPAGENAME}}|Advanced Techniques]]}}
| + | |
− | ** {{#ifexist: UniUploader:PluginFramework/{{SUBPAGENAME}}|[[UniUploader:PluginFramework/{{SUBPAGENAME}}|Plugin Framework]]|[[UniUploader:PluginFramework/{{SUBPAGENAME}}|Plugin Framework]]}}
| + | |
− | *** {{#ifexist: UniUploader:PluginFramework:Tutorial/{{SUBPAGENAME}}|[[UniUploader:PluginFramework:Tutorial/{{SUBPAGENAME}}|Plugin Tutorial]]|[[UniUploader:PluginFramework:Tutorial/{{SUBPAGENAME}}|Plugin Tutorial]]}}
| + | |
− | ** {{#ifexist: UniUploader:Distribution/{{SUBPAGENAME}}|[[UniUploader:Distribution/{{SUBPAGENAME}}|Distribution]]|[[UniUploader:Distribution/{{SUBPAGENAME}}|Distribution]]}}
| + | |
− | |}}
| + | |
− | * {{#ifexist: JUniUploader/{{SUBPAGENAME}}|[[JUniUploader/{{SUBPAGENAME}}|java UniUploader]]|[[JUniUploader/{{SUBPAGENAME}}|java UniUploader]]}}
| + | |
− | {{#ifeq:{{{1}}}|jUniUploader|
| + | |
− | ** {{#ifexist: JUniUploader:BasicSetup/{{SUBPAGENAME}}|[[JUniUploader:BasicSetup/{{SUBPAGENAME}}|Basic Setup]]|[[JUniUploader:BasicSetup/{{SUBPAGENAME}}|Basic Setup]]}}
| + | |
− | |}}
| + | |
− | * {{#ifexist: phpUniUploader/{{SUBPAGENAME}}|[[phpUniUploader/{{SUBPAGENAME}}|PHP UniUploader]]|[[phpUniUploader/{{SUBPAGENAME}}|PHP UniUploader]]}}
| + | |
− | {{#ifeq: {{{1}}}|phpUniUploader
| + | |
− | ||}}
| + | |
− | * {{#ifexist: UniAdmin/{{SUBPAGENAME}}|[[UniAdmin/{{SUBPAGENAME}}|UniAdmin]]|[[UniAdmin/{{SUBPAGENAME}}|UniAdmin]]}}
| + | |
− | {{#ifeq:{{{1}}}|UniAdmin|
| + | |
− | ** {{#ifexist: UniAdmin:Help/{{SUBPAGENAME}}|[[UniAdmin:Help/{{SUBPAGENAME}}|Help]]|[[UniAdmin:Help/{{SUBPAGENAME}}|Help]]}}
| + | |
− | |}}
| + | |
− | * {{#ifexist: WoWAddon/{{SUBPAGENAME}}|[[WoWAddon/{{SUBPAGENAME}}|WoWAddons]]|[[WoWAddon/{{SUBPAGENAME}}|WoWAddons]]}}
| + | |
− | {{#ifeq:{{{1}}}|WoWAddon|
| + | |
− | ** {{#ifexist: CharacterProfiler/{{SUBPAGENAME}}|[[CharacterProfiler/{{SUBPAGENAME}}|CharacterProfiler]]|[[CharacterProfiler/{{SUBPAGENAME}}|CharacterProfiler]]}}
| + | |
− | ** {{#ifexist: GuildProfiler/{{SUBPAGENAME}}|[[GuildProfiler/{{SUBPAGENAME}}|GuildProfiler]]|[[GuildProfiler/{{SUBPAGENAME}}|GuildProfiler]]}}
| + | |
− | ** {{#ifexist: PvPLog/{{SUBPAGENAME}}|[[PvPLog/{{SUBPAGENAME}}|PvPLog]]|[[PvPLog/{{SUBPAGENAME}}|PvPLog]]}}
| + | |
− | {{#ifeq: {{{2}}}|PvPLog|
| + | |
− | *** {{#ifexist: PvPLog:Changes/{{SUBPAGENAME}}|[[PvPLog:Changes/{{SUBPAGENAME}}|Change Log]]|[[PvPLog:Changes/{{SUBPAGENAME}}|Change Log]]}}
| + | |
− | *** {{#ifexist: PvPLog:TODO/{{SUBPAGENAME}}|[[PvPLog:TODO/{{SUBPAGENAME}}|TODO]]|[[PvPLog:TODO/{{SUBPAGENAME}}|TODO]]}}
| + | |
− | |}}
| + | |
− | |}}
| + | |
− | * [[OurTeam|The WR.net Team]]
| + | |
− | * [[CodingStandards|Coding Standards]]
| + | |
− | * [[Special:Categories|Categories]]
| + | |
− | * {{#ifexist: MYSQL_Guide/{{SUBPAGENAME}}|[[MYSQL_Guide/{{SUBPAGENAME}}|MySQL Guide]]|[[MYSQL_Guide/{{SUBPAGENAME}}|MySQL Guide]]}}
| + | |
| }} | | }} |
| | | |
Line 163: |
Line 111: |
| Each link needs to look like this: | | Each link needs to look like this: |
| <pre>{{#ifexist: PageName/{{SUBPAGENAME}}|[[PageName/{{SUBPAGENAME}}|Page Name Text]]|[[PageName/{{SUBPAGENAME}}|Page Name Text]]}}</pre> | | <pre>{{#ifexist: PageName/{{SUBPAGENAME}}|[[PageName/{{SUBPAGENAME}}|Page Name Text]]|[[PageName/{{SUBPAGENAME}}|Page Name Text]]}}</pre> |
| + | |
| + | Some links need to stay linked to the English version, such as the Coding Standards, The Team, and the AddOn SDK |
If we want a sub menu in a sub menu, then we use more parameters when calling the template
To make the menu keep linking to the same language, we copy the menu once and add "/MainMenu" to the link
If the page does not exist for that locale, then it should link to the English version
Some links need to stay linked to the English version, such as the Coding Standards, The Team, and the AddOn SDK