Module:Sandbox/Sphilbrick/UNDiftest

local p = {} -- Don't forget Draft space issue function p.response(frame) key = frame.args[1] -- Define first argument key = mw.text.trim(key) -- remove whitespace key = key:lower -- make lower case

if key=="d" or key=="done" then -- Handle simple DONE response = " Done" elseif key=="nd" or key=="notdone" then -- Handle simple Not DONE response = " Not done" -- Look into optional parameter for reason elseif key=="nd2" or key=="notdone2" then -- Handle Will Not be DONE response = " Not done and will not be done" elseif key=="p" or key=="prod" or key=="proposed" or key=="unprod" then -- Handle PROD response = " Done - as a contested " .. "proposed deletion, the article has " .. "been restored on request." elseif key=="u" or key=="user" or key=="userfy" then -- Handle Userfied userlocation = frame.args[2] -- Define second argument userlocation response = " Userfied - the page has " .. "been restored to the userspace at " ..		userlocation ..		"" elseif key=="g13" or key=="afc" then -- Handle standard G13 response = "Done - as an Articles for creation submission deleted under " .. "CSD G13, the page has been restored on request. " .. "Please edit the page to address the issues raised when it was " .. "declined, and re-submit it; \34Articles for creation\34 is not for " .. "the indefinite hosting of material found to be unsuitable for " .. "inclusion in the encyclopedia." -- NOT DONE - need to do the green font elseif key=="g13-ns" or key=="afc-ns" then -- Handle  G13 nover submitted response = " Done - as an Articles for creation submission deleted under CSD G13, the page has been restored on request. Please note that you never submitted the entry for review. When you are ready, you need to click the green notice in the template at the top of the page that says \34Submit your draft when you are ready for it to be reviewed!\34" elseif key=="b" or key=="block" or key=="blocked" then -- Handle Blocked response = " Blocked" -- NOT DONE - need to do the Refund templates elseif key=="m" or key=="malformed" then -- Handle Malformed response = " Please repair your request - we cannot process malformed requests. Please use the code (replacing   with the name of the page you wish to have restored and   with the reason for your request)." elseif key=="dne" or key=="ex" or key=="exist" or key=="doesnotexist" then -- Handle Not Done because if didn't exist response = " Not done - a deleted page with this name does not appear to exist." elseif key=="ndc" or key=="notdonecompany" then -- Handle Not Done because it fails Companies Guidelines response = " Not done - this article has not been restored because it does not appear to meet our guidelines for inclusion of articles about companies. In general, Wikipedia considers a topic to be notable if there exist multiple reliable sources of information on the topic, external to the subject itself.  Articles concerning companies will be deleted on sight if they are considered to be unambiguous advertising or promotion, or if they do not contain a credible assertion of the significance of the subject." elseif key=="ndp" or key=="notdoneperson" then -- Handle Not Done because it fails People Guidelines response = " Not done - this article has not been restored because it does not appear to meet our guidelines for inclusion of articles about people. In general, Wikipedia considers a topic to be notable if there exist multiple reliable sources of information on the topic, external to the subject itself.  Articles concerning people will be deleted on sight if they are considered to be unambiguous advertising or promotion, or if they do not contain a credible assertion of the significance of the subject." elseif key=="ndb" or key=="notdoneband" or key=="music" or key=="ndm" then -- Handle Not Done because it fails Music (band) Guidelines response = " Not done - this article has not been restored because it does not appear to meet our guidelines for inclusion of articles about music. In general, Wikipedia considers a topic to be notable if there exist multiple reliable sources of information on the topic, external to the subject itself.  Articles concerning musicians or music groups will be deleted on sight if they are considered to be unambiguous advertising or promotion, or if they do not contain a credible assertion of the significance of the subject." -- NOT DONE - need to do the User templates (removed) elseif key=="a" or key=="a7" then -- Handle Userfied but Contact admin userlocation = frame.args[2] -- Define second argument userlocation Adminname =frame.args[3] -- Define third argument Adminname response = " Userfied - the page has been restored to the userspace at "..userlocation..". You may work on improving the article's assertion of notability at its new location, but please contact "..Adminname.." the administrator who deleted the page, before moving it back to the article space.  Please see the criteria for speedy deletion and the relevant notability guidelines - articles that are not in compliance will be deleted." -- NOT DONE - need to do the AFD location and User templates (removed) elseif key=="afd" or key=="afdund" then -- Handle Contact admin re A7		afdlocation = frame.args[2] -- Define second argument userlocation Adminname =frame.args[3] -- Define third argument Adminname response = " Not done - this Requests for Undeletion process is only for articles that were deleted uncontroversially, and does not apply to articles deleted after a deletion discussion. Since the article you are here about was deleted after a discussion took place at "..afdlocation..", it cannot be undeleted through this process. However, if you believe that the outcome of the discussion did not reflect the consensus of the participants, or that significant new information has come to light since the article was deleted, you may contact the administrator who closed the discussion "..Adminname..". After you do so, if your concerns are not addressed and you still seek undeletion, a request may be made at deletion review." -- NOT DONE - need to do the AFD location and User templates (removed) elseif key=="c" or key=="csd" then -- Handle Contact admin re A7		CSDCriteria = frame.args[2] -- Define second argument CSD criterion Adminname =frame.args[3] -- Define third argument Adminname response = " Not done - this page was deleted in accordance with criteria for speedy deletion. If you believe that this decision was made in error, or that significant new information has come to light since the deletion, please contact the administrator who carried out the deletion "..Adminname..". If you have already done so, your concerns can be taken to deletion review." elseif key=="in" or key=="inappropriate" then -- Handle Not Done because it fails People Guidelines response = " Not done - this is not an appropriate topic for inclusion on Wikipedia. Please see Wikipedia's notability guidelines.  Wikipedia does not accept articles which consist of original research, or which lack any reliable sources of information." elseif key=="nyd" or key=="notyetdeleted" then -- Handle Page hasn't been deleted response = " This page has not yet been deleted. Please visit the page to find out how to object to the deletion request." elseif key=="nydp" or key=="notyetdeletedprod" then -- Handle Page hasn't been deleted but it is a PROD response = " This page has not yet been deleted. Please see WP:PROD for the instructions for responding to a proposed deletion." elseif key=="nydb" or key=="notyeddeletedblp" then -- Handle Page hasn't been deleted but see PROD BLP response = " This page has not yet been deleted. Please see Proposed deletion of biographies of living people for the instructions for responding to a proposed deletion of a biography of a living person" elseif key=="copy" or key=="copyvio" then -- Handle Page is a copyright problem CopyrightedSource= frame.args[2] -- Define second argument CopyrightedSource response = " Not done - this page is a copyright violation of ["..CopyrightedSource.." this site]" else response = "Not a valid parameter" end  -- Handle remainder return response end

return p -- Output selected response