MediaWiki:Common.js: Difference between revisions

User page & Talk page staff icons.
m (this is quite the test, but...)
(User page & Talk page staff icons.)
Line 470: Line 470:
}
}


// Webmaster staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-WM" style="float:right; display:none;"><a href="/wiki/Bulbanews:Webmasters" title="This user is a Webmaster of Bulbagarden."><img src="http://cdn.bulbagarden.net/media/upload/2/26/IconBNWebmaster.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});
// Board of Editors staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-BE" style="float:right; display:none;"><a href="/wiki/Bulbanews:Board_of_Editors" title="This user is a member of the Bulbanews Board of Editors."><img src="http://cdn.bulbagarden.net/media/upload/b/b2/IconBNBoardofEditors.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});
// Executive staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-ES" style="float:right; display:none;"><a href="/wiki/Bulbanews:Executive_Staff" title="This user is a Bulbanews Executive Staff member."><img src="http://cdn.bulbagarden.net/media/upload/b/b2/IconBNBoardofEditors.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});
// Bureaucrat staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-BC" style="float:right; display:none;"><a href="/wiki/Bulbanews:Bureaucrats" title="This user is a Bulbanews Bureaucrat."><img src="http://cdn.bulbagarden.net/media/upload/c/c0/IconBNBureaucrat.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});
// Senior Writer staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-SW" style="float:right; display:none;"><a href="/wiki/Bulbanews:Senior_Writers" title="This user is a Bulbanews Senior Writer."><img src="http://cdn.bulbagarden.net/media/upload/0/0c/IconBNSeniorWriter.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});
// Support Staff staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-SS" style="float:right; display:none;"><a href="/wiki/Bulbanews:Support_Staff" title="This user is a Bulbanews Support Staff member."><img src="http://cdn.bulbagarden.net/media/upload/5/52/IconBNSupportStaff.png.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});
// Columnist staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-CO" style="float:right; display:none;"><a href="/wiki/Bulbanews:Columnists" title="This user is a Bulbanews Columnist."><img src="http://cdn.bulbagarden.net/media/upload/0/0e/IconBNColumnist.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});
// Translator staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-TR" style="float:right; display:none;"><a href="/wiki/Bulbanews:Translators" title="This user is a Bulbanews Translator."><img src="http://cdn.bulbagarden.net/media/upload/3/33/IconBNTranslator.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});
// Writer staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-WR" style="float:right; display:none;"><a href="/wiki/Bulbanews:Writers" title="This user is a Bulbanews Writer."><img src="http://cdn.bulbagarden.net/media/upload/a/a0/IconBNWriter.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});
// Inactive staff icons
addOnloadHook(function () {
if(
window.location.href.indexOf("/wiki/User:") == -1
) {
if(
  window.location.href.indexOf("/wiki/User_talk:") == -1
  ) {
return;
  }
};
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="stafflink-IN" style="float:right; display:none;"><a href="/wiki/Bulbanews:Inactive_Staff" title="This user is an inactive Bulbanews staff member. Please direct your inquiries to an active staff member."><img src="http://cdn.bulbagarden.net/media/upload/4/4e/IconBNInactive.png"></a></div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1) {
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
}
});


/* </pre> */
/* </pre> */