Module:Sandbox/Sphilbrick/UNDtest

From Wikipedia

Documentation for this module may be created at Module:Sandbox/Sphilbrick/UNDtest/doc

-- Create table
 
local p = {}
 
function p.response(frame)
	key = frame.args[1] -- Now this will work with the code {{#invoke:Sandbox/Sphilbrick/UNDtest|response|u}}, etc.
	page = frame.args[2]
	key = mw.text.trim(key) -- remove whitespace
	page = mw.text.trim(page)

	ResponseTable = {}

	ResponseTable["u"]= "[[File:Yes check.svg|18px]] '''Userfied''' - the page has been restored to the [[Wikipedia:Userfication|userspace]] at [[" .. page .. "]]."

	ResponseTable["a"]= "[[File:Yes check.svg|18px]] '''Userfied''' - the page has been restored to the [[WP:Userfication|userspace]] at [[{{{2}}}]].  You may work on improving the article's [[Wikipedia:A7|assertion]] of [[Wikipedia:Notability|notability]] at its new location, but '''please contact''' {{{{{|safesubst:}}}#if:{{{3|}}}|{{user|{{{3}}}}}, }}the administrator who deleted the page, '''before [[Help:Moving a page|moving]] it back''' to the [[Wikipedia:Main namespace|article space]].  Please see the [[WP:CSD|criteria for speedy deletion]] and the [[WP:N|relevant notability guidelines]] - articles that are not in compliance will be deleted."

	ResponseTable["afd"]= "[[File:X mark.svg|18px]] '''Not done''' - this Requests for Undeletion process is only for articles that were deleted uncontroversially, and does not apply to articles deleted after a [[Wikipedia:Deletion discussions|deletion discussion]]. Since the article you are here about was deleted after a discussion took place{{{{{|safesubst:}}}#if:{{{2|}}}| at [[{{{2}}}]]}}, 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 [[WP:administrator|administrator]] who closed the discussion{{{{{|safesubst:}}}#if:{{{3|}}}|, user {{user1|{{{3}}}}}}}. After you do so, if your concerns are not addressed and you still seek undeletion, a request may be made at [[Wikipedia:Deletion review|deletion review]]." 
 
	ResponseTable["c"]="[[File:X mark.svg|18px]] '''Not done''' - this page was deleted in accordance with {{{{{|safesubst:}}}#if:{{{2|}}}|[[Wikipedia:criteria for speedy deletion#{{{2|}}}|criterion for speedy deletion {{{2|}}}]]|the [[Wikipedia:criteria for speedy deletion|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 [[WP:administrator|administrator]] who carried out the deletion{{{{{|safesubst:}}}#if:{{{3|}}}|, user {{user1|{{{3}}}}}}}. If you have already done so, your concerns can be taken to [[Wikipedia:Deletion review|deletion review]]." 

	ResponseTable["p"]="[[File:Yes check.svg|18px]] '''Done''' - as a contested [[Wikipedia:proposed deletion|proposed deletion]], the article has been restored on request."
 
	ResponseTable["afc"]="[[File:Yes check.svg|18px]] '''Done''' - as an [[Wikipedia:Articles for creation|Articles for creation]] submission deleted under [[WP:CSD#G13|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; 'Articles for creation' is not for the indefinite hosting of material found to be unsuitable for inclusion in the encyclopedia."  
 
	response = ResponseTable[key]
	return response
end
 
return p