User:AndyZ/monobook.js/checklist.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:AndyZ/monobook.js/checklist. |
if ((document.title=="User:AndyZ/Suggestions - Wikipedia, the free encyclopedia") || (document.title=="User:AndyZ/Suggestions 2 - Wikipedia, the free encyclopedia")){
theChecks= "<html><head><title>Checklist</title></head><body>"
theChecks+= "<script type='text/javascript' src='http://en.wikipedia.org/w/index.php?title=User:AndyZ/monobook.js/checklist.js&action=raw&ctype=text/javascript&dontcountme=s'></script>"
theChecks+= "<form name='theForm'><div id='cb0' name='hello' style='background:#99ff99;'><input type='checkbox' name='cb0' value='cb0_value' onclick='noGreen1(this.name)'>Not list-weighty</div>"
theChecks+="<div id='cb1' style='background:#99ff99;'><input type='checkbox' name='cb1' value='cb1_value' onclick='noGreen1(this.name)'>Copyedited</div>"
theChecks+="<div id='cb2' style='background:#99ff99;'><input type='checkbox' name='cb2' value='cb2_value' onclick='noGreen1(this.name)'>Flows</div>"
theChecks+="<div id='cb3' style='background:#99ff99;'><input type='checkbox' name='cb3' value='cb3_value' onclick='noGreen1(this.name)'>No short paragraphs/sections</div>"
theChecks+="<div id='cb4' style='background:#99ff99;'><input type='checkbox' name='cb4' value='cb4_value' onclick='noGreen1(this.name)'>No ==Trivia==</div>"
theChecks+="<div id='cb5' style='background:#99ff99;'><input type='checkbox' name='cb5' value='cb5_value' onclick='noGreen1(this.name)'>Comprehensive</div>"
theChecks+="<div id='cb6' style='background:#99ff99;'><input type='checkbox' name='cb6' value='cb6_value' onclick='noGreen1(this.name)'>Has references</div>"
theChecks+="<div id='cb7' style='background:#99ff99;'><input type='checkbox' name='cb7' value='cb7_value' onclick='noGreen1(this.name)'>Has inline citations (footnotes)</div>"
theChecks+="<div id='cb8' style='background:#99ff99;'><input type='checkbox' name='cb8' value='cb8_value' onclick='noGreen1(this.name)'>Cited per WP:CITE</div>"
theChecks+="<div id='cb9' style='background:#99ff99;'><input type='checkbox' name='cb9' value='cb9_value' onclick='noGreen1(this.name)'>Sources are reliable</div>"
theChecks+="<div id='cb10' style='background:#99ff99;'><input type='checkbox' name='cb10' value='cb10_value' onclick='noGreen1(this.name)'>Quotes have footnotes</div>"
theChecks+="<div id='cb11' style='background:#99ff99;'><input type='checkbox' name='cb11' value='cb11_value' onclick='noGreen1(this.name)'>No POVs</div>"
theChecks+="<div id='cb12' style='background:#99ff99;'><input type='checkbox' name='cb12' value='cb12_value' onclick='noGreen1(this.name)'>No weasel terms</div>"
theChecks+="<div id='cb13' style='background:#99ff99;'><input type='checkbox' name='cb13' value='cb13_value' onclick='noGreen1(this.name)'>Stable (no edit wars)</div>"
theChecks+="<div id='cb14' style='background:#99ff99;'><input type='checkbox' name='cb14' value='cb14_value' onclick='noGreen1(this.name)'>Context links about dates (months, days, years, etc.)</div>"
theChecks+="<div id='cb15' style='background:#99ff99;'><input type='checkbox' name='cb15' value='cb15_value' onclick='noGreen1(this.name)'>Full dates linked; no -th-s</div>"
theChecks+="<div id='cb16' style='background:#99ff99;'><input type='checkbox' name='cb16' value='cb16_value' onclick='noGreen1(this.name)'>Accurate dates</div>"
theChecks+="<div id='cb17' style='background:#99ff99;'><input type='checkbox' name='cb17' value='cb17_value' onclick='noGreen1(this.name)'>Date comma consistency</div>"
theChecks+="<div id='cb18' style='background:#99ff99;'><input type='checkbox' name='cb18' value='cb18_value' onclick='noGreen1(this.name)'>Conversions</div>"
theChecks+="<div id='cb19' style='background:#99ff99;'><input type='checkbox' name='cb19' value='cb19_value' onclick='noGreen1(this.name)'>Nbsp</div>"
theChecks+="<div id='cb20' style='background:#99ff99;'><input type='checkbox' name='cb20' value='cb20_value' onclick='noGreen1(this.name)'>Source units spelled, converted abbreviated</div>"
theChecks+="<div id='cb21' style='background:#99ff99;'><input type='checkbox' name='cb21' value='cb21_value' onclick='noGreen1(this.name)'>Currency</div>"
theChecks+="<div id='cb22' style='background:#99ff99;'><input type='checkbox' name='cb22' value='cb22_value' onclick='noGreen1(this.name)'>No over-bolding</div>"
theChecks+="<div id='cb23' style='background:#99ff99;'><input type='checkbox' name='cb23' value='cb23_value' onclick='noGreen1(this.name)'>No over-linking</div>"
theChecks+="<div id='cb24' style='background:#99ff99;'><input type='checkbox' name='cb24' value='cb24_value' onclick='noGreen1(this.name)'>No space between punctuation and then footnote</div>"
theChecks+="<div id='cb25' style='background:#99ff99;'><input type='checkbox' name='cb25' value='cb25_value' onclick='noGreen1(this.name)'>Categories + interlanguage links alphabetized</div>"
theChecks+="<div id='cb26' style='background:#99ff99;'><input type='checkbox' name='cb26' value='cb26_value' onclick='noGreen1(this.name)'>Lead follows guidelines</div>"
theChecks+="<div id='cb27' style='background:#99ff99;'><input type='checkbox' name='cb27' value='cb27_value' onclick='noGreen1(this.name)'>Lead is only summary</div>"
theChecks+="<div id='cb28' style='background:#99ff99;'><input type='checkbox' name='cb28' value='cb28_value' onclick='noGreen1(this.name)'>Infobox (if applicable)</div>"
theChecks+="<div id='cb29' style='background:#99ff99;'><input type='checkbox' name='cb29' value='cb29_value' onclick='noGreen1(this.name)'>No links in headings</div>"
theChecks+="<div id='cb30' style='background:#99ff99;'><input type='checkbox' name='cb30' value='cb30_value' onclick='noGreen1(this.name)'>No capitalized words in headings outside of first/proper nouns</div>"
theChecks+="<div id='cb31' style='background:#99ff99;'><input type='checkbox' name='cb31' value='cb31_value' onclick='noGreen1(this.name)'>No repetitions of title in headings</div>"
theChecks+="<div id='cb32' style='background:#99ff99;'><input type='checkbox' name='cb32' value='cb32_value' onclick='noGreen1(this.name)'>Headings don't start with -The- unless necessary</div>"
theChecks+="<div id='cb33' style='background:#99ff99;'><input type='checkbox' name='cb33' value='cb33_value' onclick='noGreen1(this.name)'>Concise headings</div>"
theChecks+="<div id='cb34' style='background:#99ff99;'><input type='checkbox' name='cb34' value='cb34_value' onclick='noGreen1(this.name)'>Headings follow relevant WikiProjects</div>"
theChecks+="<div id='cb35' style='background:#99ff99;'><input type='checkbox' name='cb35' value='cb35_value' onclick='noGreen1(this.name)'>Headings form hierarchy</div>"
theChecks+="<div id='cb36' style='background:#99ff99;'><input type='checkbox' name='cb36' value='cb36_value' onclick='noGreen1(this.name)'>End headings follow WP:GTL</div>"
theChecks+="<div id='cb37' style='background:#99ff99;'><input type='checkbox' name='cb37' value='cb37_value' onclick='noGreen1(this.name)'>ToC of substantial size</div>"
theChecks+="<div id='cb38' style='background:#99ff99;'><input type='checkbox' name='cb38' value='cb38_value' onclick='noGreen1(this.name)'>ToC is not too long</div>"
theChecks+="<div id='cb39' style='background:#99ff99;'><input type='checkbox' name='cb39' value='cb39_value' onclick='noGreen1(this.name)'>Has images (if possible)</div>"
theChecks+="<div id='cb40' style='background:#99ff99;'><input type='checkbox' name='cb40' value='cb40_value' onclick='noGreen1(this.name)'>Right-hand top corner image</div>"
theChecks+="<div id='cb41' style='background:#99ff99;'><input type='checkbox' name='cb41' value='cb41_value' onclick='noGreen1(this.name)'>Proper image copyright tags</div>"
theChecks+="<div id='cb42' style='background:#99ff99;'><input type='checkbox' name='cb42' value='cb42_value' onclick='noGreen1(this.name)'>Fair use images have rationales</div>"
theChecks+="<div id='cb43' style='background:#99ff99;'><input type='checkbox' name='cb43' value='cb43_value' onclick='noGreen1(this.name)'>No excessive images</div>"
theChecks+="<div id='cb44' style='background:#99ff99;'><input type='checkbox' name='cb44' value='cb44_value' onclick='noGreen1(this.name)'>Concise captions that meet WP:CAPTION</div>"
theChecks+="<div id='cb45' style='background:#99ff99;'><input type='checkbox' name='cb45' value='cb45_value' onclick='noGreen1(this.name)'>Sufficiently long</div>"
theChecks+="<div id='cb46' style='background:#99ff99;'><input type='checkbox' name='cb46' value='cb46_value' onclick='noGreen1(this.name)'>Uses Summary style (WP:SS)</div>"
winName = false
if (winName && !winName.closed){
alert("Checklist is already open.")
}
else{
winName = window.open("http://en.wikipedia.org/wiki/User:AndyZ/Suggestions","winName","toolbar=0, location=0, directories=0")
winName.document.write(theChecks)
winName.document.close()
}
}
try{
function noGreen1(theObj){
x=47
if(document.getElementById(theObj).style.background=="#99ff99"){
document.getElementById(theObj).style.background = "#ffffff"
x--
}
else{
document.getElementById(theObj).style.background = "#99ff99"
x++
}
if(x==0){
alert("Congradulations! You have just completed AndyZ’s comprehensive suggestion guideline to articles on peer review/featured article candidates. Good luck on your FAC.")
}
if(x==5){
alert("Excellent job! You have nearly completed the checklist of this suggestion guideline.")
}
if(x==15){
alert("Nice job! Your article certainly is heading in the right direction. As of now, you have completed two-thirds of this list.")
}
}
}
catch(e){
function noGreen1(theObj){
if(document.getElementById(theObj).style.background=="#99ff99"){
document.getElementById(theObj).style.background = "#ffffff"
}
else{
document.getElementById(theObj).style.background = "#99ff99"
}
}
}