MediaWiki:Gadget-pestanas-abajo.js

$( function {   var cactions, tabs, listitems, listitemsLength, i, content;

cactions = document.getElementById('p-cactions');

if ( cactions === null ) { return; }

tabs = cactions.cloneNode(true); listitems = tabs.getElementsByTagName('li'); listitemsLength = listitems.length;

tabs.id = 'mytabs'; for ( i = 0; i < listitemsLength; i++ ) { if ( listitems[i].id ) { listitems[i].id = 'mytabs-' + listitems[i].id; }   }

content = document.getElementById("content");   // Find the content div content.parentNode.insertBefore(tabs, content.nextSibling);   // Place tab list right after content div });