Line 13: | Line 13: | ||
− | + | ||
− | load_menu (wgPageName); | + | switch ( wgPageName.match( /\//g ) || []).length ) { |
− | + | ||
− | + | 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