User:Rachitarora

 'my JavaScript Extension',   'version'      => '1.0.0',   'author'       => 'Your Name',   'url'          => 'http://www.your.com/myJavaScript/',   'description'  => 'This extension is for demonstration only.');

// Add JavaScript function myJavaScript { global $wgOut; // Insert javascript script that hooks up to create button. $wgOut->addScript("\n".      "function myJavaScriptAlert{\n".       "  alert(\"Hello from myJavaScript\");".       "  }\n".       "addOnloadHook(myJavaScriptAlert);\n".       " "); return; } ?> function addlimenu(tabs, name, id, href, position) { var na, mn; var li; if (!id) id = name; if (!href) href = '#'; na = document.createElement("a"); na.appendChild(document.createTextNode(name)); na.href = href; mn = document.createElement("ul"); li = document.createElement("li"); li.appendChild(na); li.appendChild(mn); if (id) li.id = id; li.className = 'tabmenu'; if (position) { tabs.insertBefore(li, position); } else { tabs.appendChild(li); }   return mn; }