Forum:Infobox Insertion drop-down menu

I am helping with Pendragonpedia, and I am wondering how Wookiepedia made their drop-down menu to insert infoboxes. Could someone tell me how that is accomplished? Blurrr (Talk) 23:12, 15 November 2008 (UTC)
 * Is due to modications to MediaWiki:Common.js. You can view Wookieepedia's version at w:c:starwars:MediaWiki:Common.js. You must have a good understanding of Java Script before attempting to modify it yourself however. --Michaeldsuarez (Talk) (Deeds) 01:29, 17 November 2008 (UTC)

The Java Script that they use in MediaWiki:Common.js is found below. Copy and paste it to w:c:Pendragonadventure:MediaWiki:Common.js. Before doing that however, create infobox templates like Template:Character infobox/preload as seen in w:c:starwars:Template:Character infobox/preload. function fillPreloads {   var div = document.getElementById("lf-preload");

if(div == null) return;

div.style.display = 'block'; var span = document.getElementById('lf-preload-cbox');

var comboString = ""; comboString += " "; span.innerHTML = comboString; span = document.getElementById('lf-preload-pagename'); span.innerHTML = ''; span = document.getElementById('lf-preload-button'); span.innerHTML = '';

requestComboFill('stdPreloads', "Template:Stdpreloads"); }

function doCustomPreload {   doPreload(document.getElementById('lf-preload-pagename').getElementsByTagName('input')[0].value); }

function onPreloadChange {   var combo = document.getElementById("stdPreloads"); var value = combo.options[combo.selectedIndex].value;

if(value == "") return;

value = "Template:" + value + "/preload"; value = value.replace(" ", "_"); doPreload(value); } --Michaeldsuarez (Talk) (Deeds) 01:57, 17 November 2008 (UTC)

You're welcome. --Michaeldsuarez (Talk) (Deeds) 22:04, 17 November 2008 (UTC)
 * Thanks!!! Blurrr (Talk) 21:56, 17 November 2008 (UTC)