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
"done" then -- Handle simple DONE response = " Done" elseif key
"notdone" then -- Handle simple Not DONE response = " Not done" -- Look into optional parameter for reason elseif key
"notdone2" then -- Handle Will Not be DONE response = " Not done and will not be done" elseif key
"prod" or key
"unprod" then -- Handle PROD response = " Done - as a contested " .. "proposed deletion, the article has " .. "been restored on request." elseif key
"user" or key
"g13" or key
"g13-ns" or key
"b" or key
"blocked" then -- Handle Blocked response = " Blocked" -- NOT DONE - need to do the Refund templates elseif key
"malformed" then -- Handle Malformed response = " Please repair your request - we cannot process malformed requests. Please use the code (replacing pagename
with the name of the page you wish to have restored and reasoning
with the reason for your request)." elseif key
"ex" 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
"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
"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
"notdoneband" 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
"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
"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
"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 . 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
"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
"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
"notyetdeletedprod" then -- Handle Page hasn't been deleted but it is a PROD response = " This page has not yet been deleted. Please see for the instructions for responding to a proposed deletion." elseif 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
"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 responseend
return p -- Output selected response