Differenze tra le versioni di "Utente:FRacco/sandbox.js"

m
fix minori e commenti
(ottimizzazione del codice con controllo completo degli errori)
m (fix minori e commenti)
 
 
/*
* Workaround for [[bugzillaphabricator:708]] via [[commons:Template:InterProject]].
* Originally based on code from [[wikt:de:MediaWiki:Common.js]] by
* by [[wikt:de:User:Melancholie]], cleaned up and modified for compatibility
* cleaned up and modified for compatibility with the Vector skin.
* @source: [[commons:MediaWiki:InterProject.js]]
* @maintainer: [[commons:User:Krinkle]]
// interproject inclusion without wikibase otherprojects
var langBox = document.getElementById( 'p-lang' );
var panellegacyPanel;
 
if ( !langBox ) {
panel// =legacy langBox.parentNode;skins
} else {
// stupid incompatible skins...
var panelIds = [ 'mw-panel', 'panel', 'column-one', 'mw_portlets' ];
for ( var i = 0; !panellegacyPanel && i < panelIds.length; i++ ) {
panellegacyPanel = document.getElementById( panelIds[i] );
}
// can't find a place for the portlet, try to undo hiding
if ( !panellegacyPanel ) {
interPr.style.display = 'block';
sisterPr.style.display = 'block';
 
if ( langBox ) {
panellangBox.parentNode.insertBefore( interProject, langBox );
} else {
panellegacyPanel.appendChild( interProject );
}
 
5 786

contributi