Jump to content

User:1F616EMO/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:SD0001/GAR-helper.js'); // Backlink: [[User:SD0001/GAR-helper.js]]

/* PageStatusReport */

window.PageStatusReportItems = window.PageStatusReportItems || {};

window.PageStatusReportItems['Declined AfC submissions'] = {
	'class': 'afc-declined',
	'except': [
		'Category:AfC submissions declined as an advertisement',
		'Category:AfC submissions declined as all plot',
		'Category:AfC submissions declined as already existing',
		'Category:AfC submissions declined as blank',
		'Category:AfC submissions declined as BLP violations',
		'Category:AfC submissions declined as a non-notable book',
		'Category:AfC submissions declined as copyright violations',
		'Category:AfC submissions declined with a custom reason',
		'Category:AfC submissions declined as a dictionary definition',
		'Category:AfC submissions declined as a duplicate',
		'Category:AfC submissions declined as an essay',
		'Category:Inactive draft AfC submissions',
		'Category:AfC submissions declined as jokes',
		'Category:AfC submissions declined as lacking context',
		'Category:AfC submissions declined as lacking reliable third-party sources',
		'Category:AfC submissions declined as needing footnotes',
		'Category:AfC submissions declined as needing to be merged',
		'Category:AfC submissions declined as a neologism',
		'Category:AfC submissions declined as a news report on a single event',
		'Category:AfC submissions declined as non-notable',
		'Category:AfC submissions declined as a non-notable academic topic',
		'Category:AfC submissions declined as a non-notable athletic topic',
		'Category:AfC submissions declined as a non-notable biography',
		'Category:AfC submissions declined as a non-notable event',
		'Category:AfC submissions declined as a non-notable film',
		'Category:AfC submissions declined as a non-notable musical topic',
		'Category:AfC submissions declined as a non-notable organization',
		'Category:AfC submissions declined as non-notable web content',
		'Category:AfC submissions declined as not in English',
		'Category:AfC submissions declined as not suitable for Wikipedia',
		'Category:AfC submissions declined as not written in a neutral point of view',
		'Category:AfC submissions declined as being previously deleted',
		'Category:AfC submissions declined as a redirect',
		'Category:AfC submissions declined as a test',
		'Category:Declined AfC submissions in userspace',
		'Category:AfC submissions declined as being vandalism or attack pages',
	],
};
window.PageStatusReportItems['Rejected AfC submissions'] = {
	'class': 'afc-rejected',
	'except': [
		'Category:AfC submissions rejected as non-notable',
		'Category:Rejected AfC submissions in userspace',
		'Category:AfC submissions rejected as unencyclopedic',
	],
};
window.PageStatusReportItems['Pending AfC submissions'] = {
	'class': 'afc-pending',
	'except': [
		'Category:AfC pending submissions by age',
		'Category:Pending template and disambiguation AfC submissions',
		'Category:Pending AfC submissions in userspace',
		'Category:Pending AfC submissions less than 450 bytes long',
		'Category:Pending AfC submissions without a section',
		'Category:Pending AfC submissions being reviewed now',
		'Category:Pending AfC submissions in article space',
		'Wikipedia:AfC sorting',
		'Wikipedia:Articles for creation/Categories',
		'Wikipedia:Articles for creation/Redirects',
		'Wikipedia:Files for upload',
	],
};
window.PageStatusReportItems['Living people'] = {
	'class': 'blp',
};
window.PageStatusReportItems['All non-free media'] = {
	'class': 'fairuse',
	'except': [
		'Category:WikiProject Highways non-free media',
		'Category:All non-free logos',
		'Category:WikiProject U.S. Roads non-free media',
	],
};

mw.util.addCSS(`
    .page-status-report-afc-pending::after {
        color: blue;
        content: '\\0000a0PAFC';
    }
    a.page-status-report-processed:has(> .page-status-report-afc-rejected) .page-status-report-afc-declined::after,
    a.page-status-report-processed:has(> .page-status-report-afc-pending) .page-status-report-afc-declined::after
    {
    	display: none;
    }
    .page-status-report-afc-declined::after {
        color: #727200;
        content: '\\0000a0DAFC';
    }
    .page-status-report-afc-rejected::after {
        color: red;
        content: '\\0000a0RAFC';
    }
    .page-status-report-blp::after {
        color: green;
        content: '\\0000a0BLP';
    }
    .page-status-report-fairuse::after {
        color: green;
        content: '\\0000a0NFM';
    }

	@media print {
		.mw-file-description:has(.page-status-report-fairuse) {
			display: none;
		}
	}
`);


mw.loader.load('//zh.wikipedia.org/w/index.php?title=User:1F616EMO/PageStatusReport/enwiki.js&action=raw&ctype=text/javascript');