MediaWiki:MoveArticleStates.js

function moveArticleStates { var spacing = 10, coordPadding = 0, tagCoord, tagCoordOld, tagDoM; if (document.getElementById) { tagCoord = document.getElementById("geoCoord"); tagCoordOld = document.getElementById("geoCoordOld"); tagDoM = document.getElementById("DoM"); if ((tagCoord == null) && (tagCoordOld != null)) tagCoordOld.style.display = "block"; if (tagDoM != null) coordPadding = tagDoM.offsetWidth + spacing; if (tagCoord != null) { tagCoord.style.paddingRight = coordPadding + 'px'; coordPadding += tagCoord.offsetWidth + spacing; } if (tagCoordOld != null) tagCoordOld.style.paddingRight = coordPadding + 'px'; } } addOnloadHook(moveArticleStates);