In this article, we will explore Wikipedia:WikiProject User scripts/Scripts/CleanupTab.js from different perspectives, analyzing its importance, impact and relevance in various contexts. From its origin to its evolution today, Wikipedia:WikiProject User scripts/Scripts/CleanupTab.js has been the subject of interest and debate among experts, academics and hobbyists. Through a detailed analysis, we aim to shed light on the lesser-known aspects of Wikipedia:WikiProject User scripts/Scripts/CleanupTab.js, as well as highlight its influence in fields as varied as science, culture, technology or society in general. With a multidisciplinary approach, we will address the multiple facets of Wikipedia:WikiProject User scripts/Scripts/CleanupTab.js to provide a comprehensive and enriching vision on this topic.
// <pre>
// CleanupTab.js
//
// This script adds a "cleanup" tab to the top of article pages
// when in edit mode. It is disabled for the User namespace.
function doCleanup() {
document.editform.wpTextbox1.value = '{' + '{' + 'Cleanup|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
document.editform.wpSummary.value = 'Marked for cleanup.';
document.editform.wpMinoredit.checked = true;
document.editform.submit();
}
$.when($.ready, mw.loader.using('mediawiki.util')).then(function () {
if (mw.config.get('wgCanonicalNamespace') == "User" || mw.config.get('wgCanonicalNamespace') == "User_talk") {
return;
}
if (document.editform) {
mw.util.addPortletLink("p-cactions", "javascript:doCleanup()", "cleanup", "ca-cleanup", "Mark for cleanup", "");
}
});
// </pre>