User:Mike Dillon/Scripts/toolboxTogglePersondata.js

/* */

// Show/Hide Persondata function doTogglePersondata { var element = document.getElementById('persondata');

if (element.style.display == 'none') { element.style.display = 'table'; } else { element.style.display = 'none'; } }

addOnloadHook(function {    if (document.getElementById('persondata') != null) {        mw.util.addPortletLink("p-tb", "javascript:doTogglePersondata", "Show/hide persondata", "t-togglepersondata", "Toggle persondata on/off");   } });

/* */