Jump to content

User:EpochFail/ArticleQuality.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by EpochFail (talk | contribs) at 14:06, 24 January 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
$.getScript(
	'//meta.wikimedia.org/w/index.php?title=User:EpochFail/ArticleQuality-system.js&action=raw&ctype=text/javascript',
	function(){
		articleQuality = new ArticleQuality({
			ores_host: "https://ores.wikimedia.org",
			weights: {
				Stub: 1, 
				Start: 2,
				C: 3,
				B: 4,
				GA: 5,
				FA: 6
			},
			names: {
				Stub: "Bosquexo", 
				Start: "En progreso",
				C: "C",
				B: "B",
				GA: "AB",
				FA: "AC"
			},
			assessment_system: "ORES Valoración",
			dbname: "glwiki"
		});
		if(mw.config.get('wgAction') === "history" && (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118)){
			articleQuality.getAndRenderHistoryScores();
		}
		if(mw.config.get('wgAction') === "view" && (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118)){
			articleQuality.getAndRenderScoreHeader();
		}
		articleQuality.addScoresToArticleLinks();
	}
);
importStylesheetURI("//meta.wikimedia.org/w/index.php?title=User:EpochFail/ArticleQuality.css&action=raw&ctype=text/css");