Difference between revisions of "Template:Main2017"

Line 13: Line 13:
 
 
  
if ( wgPageName == "Competition") {
+
 
load_menu (wgPageName);
+
switch ( wgPageName.match( /\//g ) || []).length ) {
}
+
else {
+
case 0:
load_menu ("Main");
+
load_menu (wgPageName);
 +
break;
 +
 
 +
case 1:
 +
load_menu (wgPageName);
 +
break;
 +
 
 +
// case 2:
 +
// break;
 +
 
 +
default:
 +
load_menu ("Main");
 +
break;
 +
 
 
}
 
}
  

Revision as of 17:32, 14 November 2016