Jump to content

Module:Speedy/config

From Wikipedia, the free encyclopedia

-- transcription in progress
local config = {
	["deletionCodes"] = {
		--[[
		Format:
		["reasonCode"] = {
			code = deletion code,
			name = name of reason,
			description = description of reason,
			inputFormat = {list for how to format each parameter for the deletion notice},
			more = more information,
			notes = additional end note,
			willProvide = true/false, whether to provide information on undeletion,
			drv = deletion review instead of requests for undeletion,
			blank = true/false, whether to prompt for blanking the page,
			hide = true/false, whether to hide the contents of the page
			aliases = {list of aliases for deletion reason},
			notice = alert level (0 = no specific icon other than deletion icon (also hides contest button), 1 = welcome, 2 = notice, 3 = copyright, 4 = warning),
			additionalMessage = additional message for creator on talk page,
			customHeader = custom header for talk page,
			customIntro = custom intro message for talk page,
			customIntroDeleted = custom intro message for talk page if page is deleted on substitution,
		}
		]]
		-- general
		["g1"] = {
			name = "Patent nonsense",
			description = "as a page that is [[Wikipedia:Patent nonsense|patent nonsense]], consisting purely of incoherent text or gibberish with no meaningful content or history",
			more = "This does not include poor writing, coherent [[Wikipedia:Vandalism|vandalism]] and [[Wikipedia:Don't create hoaxes|hoaxes]] ([[Wikipedia:G3|G3]]), coherent material [[Template:Not English|not written in English]], [[Wikipedia:Pages needing translation into English|badly translated material]], etc. This criterion also does not apply to pages in the user namespace.",
			additionalMessage = "If the page you created was a test, please use the [[Wikipedia:sandbox|sandbox]] for any other experiments that you wish to do.",
			willProvide = false,
			aliases = {"nonsense"}
		},
		["g2"] = {
			name = "Test page",
			description = "as a test page",
			more = "This criterion neither applies to sandboxes nor to user pages.",
			additionalMessage = "Please use the [[Wikipedia:sandbox|sandbox]] for any other test edits that you wish to do. Take a look at the [[Help:Getting started|welcome page]] if you would like to learn more about contributing to our encyclopedia.",
			notice = 1,
			aliases = {"test"}
		},
		["g3"] = {
			name = "Pure vandalism",
			description = "as pure vandalism or a blatant hoax",
			more = "This includes blatant and obvious misinformation, and redirects created during cleanup of page move vandalism.",
			additionalMessage = "If you are interested in how accurate Wikipedia is, a more constructive test method would be to try to find inaccuracies already present on Wikipedia, and then correct them if possible. If you only meant to experiment, please use the [[Wikipedia:sandbox|sandbox]]. Repeated vandalism will unfortunately result in the '''[[Wikipedia:BLOCK|loss of editing privileges]]'''.",
			willProvide = false,
			aliases = {"vandalism", "hoax"}
		},
		["g4"] = {
			name = "Recreation of a page that was deleted per a deletion discussion",
			description = "as a page that was [{{fullurl:Special:Log|type=delete&page=$1}} previously deleted] via a [[Wikipedia:Deletion discussions|deletion discussion]], is substantially identical to the deleted version, and any changes do not address the reasons for which the material was deleted$2",
			inputFormat = {' (see $2)'},
			args = {'The link to the deletion discussion'},
			notice = 1,
			additionalMessage = "When a page has substantially identical content to that of a page deleted after a discussion, and any changes in the content do not address the reasons for which the material was previously deleted, it may be deleted at any time.",
			drv = true,
			aliases = {"repost"}
		},
		["g5"] = {
			name = "Block or ban evasion",
			description = "as a page created by a [[Wikipedia:Banning policy|banned]] or [[Wikipedia:Blocking policy|blocked]] user $2 in violation of the user's ban or block, with no substantial edits by others",
			inputFormat = {'<span class="plainlinks">[{{fullurl:User:$2}} $2]</span>'},
			notes = "<small>This criterion doesn't apply to templates which are transcluded by other pages, unless these transclusions were all done by the banned user in question.</small>",
			args = {'The name of the blocked/banned user'},
			aliases = {"banned", "blocked"}
		},
		["g6"] = {
			name = "Housekeeping or uncontroversial maintenance",
			description = "as a page that needs to be deleted to perform uncontroversial maintenance tasks, such as merging page histories or reversing redirects$2",
			inputFormat = {' $2'},
			args = {'The reason for the housekeeping'},
			notice = 0
		},
		["g7"] = {
			name = "Author requests deletion",
			description = "as a page where the author of the only substantial content has requested deletion and/or blanked the page in good faith",
			notice = 0,
			customIntro = '<span class="error">Page exists. Please delete the page first then use this message.</span>',
			customIntroDeleted = "Hello, {{subst:BASEPAGENAME}}. As per your good faith request, the page [[:$1]] has been deleted. If you would like the page restored, please send a request to [[WP:RFUND|requests for undeletion]]. Thanks, and happy editing!",
			customCloser = "",
			aliases = {"author", "blanked", "self"}
		},
		["g8"] = {
			name = "Page dependent on non-existent page",
			description = "as a page that is dependent on a page that has never existed or has been deleted$2",
			more = "This does '''not''' include pages which are useful to the project such as user subpages and talk pages, talk page archives, information for a future article, redirects that can be retargeted to existing pages, etc.",
			inputFormat = {' [[:$2|$2]]'},
			args = {'The non-existent page the page is dependent on'},
			--notes = "Please use a more specific reason – {{Tl|Db-talk}}, {{Tl|Db-subpage}}, {{Tl|Db-imagepage}}, {{Tl|Db-redirnone}} or {{Tl|Db-templatecat}} – where possible.",
			notice = 0
		},
		["g9"] = {
			name = "Office action",
			description = "to enforce an office action",
			notice = 0
		},
		["g10"] = {
			name = "Attack page",
			description = "as a page that serves no other purpose but to [[Wikipedia:Attack page|disparage or threaten its subject]] or some other entity",
			more = "This includes [[Wikipedia:Libel|libel]], [[Wikipedia:No legal threats|legal threats]], material intended purely to [[Wikipedia:Harassment|harass or intimidate]] a person, or an [[Wikipedia:Biographies of living persons|article about a living person]] that is entirely negative in tone and unsourced, where there is no [[Wikipedia:Neutral point of view|neutral]] version in the history to revert to.",
			notice = 4,
			customHeader = "Speedy deletion notice",
			customIntro = "A page [[Special:Log/create/{{safesubst:BASEPAGENAME}}|you created]] has been nominated for speedy deletion as an [[Wikipedia:CSD#G10|attack page]].",
			customIntroDeleted = "A page [[Special:Log/create/{{safesubst:BASEPAGENAME}}|you created]] has been deleted as an [[Wikipedia:CSD#G10|attack page]].",
			customCloser = "Please '''do not''' create pages that [[Wikipedia:Attack page|attack, threaten, or disparage]] their subject or any other entity. Attack pages and files '''are not tolerated''' by Wikipedia, and users who create or add such material may be '''[[Wikipedia:Blocking policy|blocked]] from editing'''. ",
			willProvide = false,
			aliases = {"attack", "attackorg", "personal attack"},
			blank = true
		},
		["negublp"] = {
			code = "G10",
			name = "Negative BLP",
			description = "as a page [[Wikipedia:Biographies of living persons|about a living person]] that is entirely negative in tone and unsourced, where there is no [[Wikipedia:Neutral point of view|neutral]] version in the history to revert to",
			notice = 4,
			customHeader = "Speedy deletion notice",
			customIntro = "A page you created has been nominated for deletion because it is a biography of a living person that is entirely negative in tone and contains unsourced content, according to [[WP:CSD#G10|section G10 of the criteria for speedy deletion]].",
			customIntroDeleted = "A page you created has been deleted because it is a biography of a living person that is entirely negative in tone and contains unsourced content, according to [[WP:CSD#G10|section G10 of the criteria for speedy deletion]].",
			customCloser = "Please '''do not''' create [[Wikipedia:Biographies of living persons|articles about living people]] that are entirely negative in tone and [[WP:SOURCE|unsourced]]. Wikipedia has a policy of [[WP:V|verifiability]] and any negative information we use must be [[WP:RS|reliably sourced]], and our articles must be [[WP:NPOV|balanced]]. Negative, unreferenced biographies of living people, along with other [[WP:ATP|attack pages]], '''are not tolerated''' by Wikipedia, and users who create or repost such pages and images in violation of our [[Wikipedia:Biographies of living persons|biographies of living persons]] policy may be '''[[Wikipedia:Blocking policy|blocked]] from editing'''.",
			willProvide = false,
			blank = true
		},
		["g11"] = {
			name = "Unambiguous advertising or promotion",
			description = "because in its current form it serves only to [[Wikipedia:Spam|promote]] or publicize an entity, person, product, or idea, and would require a fundamental rewrite in order to become encyclopedic",
			more = "However, the mere fact that a company, organization, or product is a page's subject does not, on its own, qualify that page for deletion under this criterion.  This criterion also does not apply where substantial encyclopedic content would remain after removing the promotional material as [[Wikipedia:DINC|deletion is not cleanup]]; in this case please remove the promotional material yourself, or add the {{tl|advert}} tag to alert others to do so.",
			additionalMessage = "Please read the [[Wikipedia:SPAM|guidelines on spam]] and [[Wikipedia:FAQ/Organizations]] for more information.",
			drv = true,
			aliases = {"promo", "spam"}
		},
		["g12"] = {
			name = "Unambiguous copyright infringement",
			description = "as a copyright infringement$2",
			inputFormat = {' of $2 ({{Copyvios|url=$2|page=$1}})'},
			args = {'The URL of the copyright infringement'},
			more = "This criterion applies only in unequivocal cases, where there is no free-content material on the page worth saving and no later edits requiring attribution &ndash; for more complicated situations, see [[Wikipedia:Copyright violations]].",
			notes = '<div class="sysop-show"><span style="text-align:center; color:green"><b>Note to administrators: If declining the request due to not meeting the criteria please consider whether there are still copyright problems with the page and if so, [[Wikipedia:New pages patrol#copyvio cleanup|see these instructions for cleanup]], or list it at [[Wikipedia:Copyright problems]]</b>.</span></div>Please be sure that the source of the alleged copyright violation is not itself a [[Wikipedia:Mirrors and forks|Wikipedia mirror]]. Also, ensure the submitter of this page has been notified about our [[Wikipedia:Copyrights|copyright policy]].',
			notice = 3,
			willProvide = false,
			hide = true,
			additionalMessage = "For legal reasons, we cannot accept copyrighted text or images taken from other web sites or printed material, and as a consequence, your addition will most likely be deleted. You may use external websites or other printed material as a source of ''information'', but not as a source of ''sentences''. This part is crucial: ''say it in your own words''. Wikipedia takes copyright violations very seriously; as such, persistent violators will [[Wikipedia:BLOCK|lose their editing privileges]].\n\nIf the external website or image belongs to you, and you want to allow Wikipedia to use the text or image — which means allowing other people to use it for any reason — then you ''must'' verify that externally by one of the processes explained at [[Wikipedia:Donating copyrighted materials]]. The same holds if you are not the owner but have their permission. If you are not the owner and do not have permission, see [[Wikipedia:Requesting copyright permission]] for how you may obtain it. You might want to look at [[Wikipedia:Copyrights|Wikipedia's copyright policy]] for more details, or ask a question [[Wikipedia:Help desk|here]].",
			aliases = {"copyvio"}
		},
		["g13"] = {
			name = "Abandoned AfC drafts",
			description = "as either a page in the [[Wikipedia:Drafts|draftspace]], a declined/unsubmitted [[Wikipedia:User pages|userspace]] Articles for Creation page, or a draft in either namespace with no content except the placeholder [[Wikipedia:Article wizard|article wizard]] text that has not been edited (''excluding'' bot edits) in over six months",
			notes = 'If you plan to improve this draft, simply edit this page and remove the <code><nowiki>{{db|g13}}</nowiki></code> code.',
			customHeader = "Your AFC draft",
			customIntro = "Hello, {{safesubst:BASEPAGENAME}}. It has been over six months since you last edited the [[Wikipedia:AFC|Articles for Creation]] submission or [[Wikipedia:Drafts|draft]] page you started, [[:$1]]. In accordance with our policy that Wikipedia is not for the indefinite hosting of material deemed unsuitable for the encyclopedia [[Wikipedia:mainspace|mainspace]], the draft has been nominated for deletion. If you plan on working on it further, or editing it to address the issues raised if it was declined, simply {{edit|$1|edit the submission}} and remove the {{tlc|db|g13}} code.\n\nIf your submission has already been deleted by the time you get there, and you wish to retrieve it, you can request its undeletion by following the instructions at [[Wikipedia:REFUND/G13|this link]]. An administrator will, in most cases, restore the submission so you can continue to work on it.",
			customIntroDeleted = "Hello, {{safesubst:BASEPAGENAME}}. It has been over six months since you last edited the [[Wikipedia:AFC|Articles for Creation]] submission or [[Wikipedia:Drafts|draft]] page you started, [[:$1]]. In accordance with our policy that Wikipedia is not for the indefinite hosting of material deemed unsuitable for the encyclopedia [[Wikipedia:mainspace|mainspace]], the draft has been deleted.\n\nIf you wish to retrieve it, you can request its undeletion by following the instructions at [[Wikipedia:REFUND/G13|this link]]. An administrator will, in most cases, restore the submission so you can continue to work on it.",
			customCloser = "Thank you for your submission to Wikipedia!",
			notice = 1,
			aliases = {"afc", "blankdraft"}
		},
		["g14"] = {
			name = "Unnecessary disambiguation",
			description = 'as either a disambiguation page that disambiguates zero extant Wikipedia pages or disambiguates only one extant Wikipedia page and ends in "(disambiguation)", or a redirect that ends in "(disambiguation)" that targets a page that is not a disambiguation page or a page that performs a disambiguation-like function',
			additionalMessage = "Please [[Wikipedia:MOSDAB|see the disambiguation page guidelines for more information]].",
			aliases = {"disambig"}
		},
		-- articles
		["a1"] = {
			name = "No context",
			description = "as a very short article lacking sufficient context to identify the subject of the article",
			additionalMessage = "Please see [[Wikipedia:Stub#Essential information about stubs|Wikipedia:Stub]] for our minimum information standards for short articles. Also please note that articles must be on [[Wikipedia:Notability|notable]] subjects and should provide references to [[Wikipedia:Reliable sources|reliable sources]] that [[Wikipedia:Verifiability|verify]] their content.",
			notice = 1,
			aliases = {"nocontext"}
		},
		["a2"] = {
			name = "Foreign-language articles that exist on another Wikimedia project",
			description = "as a foreign-language article that exists on another Wikimedia project$2",
			inputFormat = {'at [[:$2]]'},
			additionalMessage = "Please see [[Wikipedia:Translation]] to learn about requests for, and coordination of, translations from [[m:List of Wikipedias|foreign-language Wikipedias]] into English.",
			notice = 1,
			aliases = {"foreign"}
		},
		["a3"] = {
			name = "No content",
			description = "as an article that contains no content whatsoever, or consists only of external links, categories, a \"see also\" section, a rephrasing of the title, chat-like comments, template tags, and/or images",
			more = "[[Wikipedia:Disambiguation pages|Disambiguation pages]] and [[Wikipedia:Redirect|redirects]] are not eligible for this criterion.  A very short article may still be a valid [[Wikipedia:Stub|stub]] if there is sufficient context to identify the subject.",
			notes = "{{#ifexpr:({{#time:U}}-{{#time:U|{{{cts|1-1-1970}}}}}) <= 900|'''Warning''': This page was created less than 15 minutes ago. Consensus is that articles should not be tagged under [[WP:CSD#A3|CSD:A3]] immediately after creation as they may be works in progress. 10 minutes is suggested as a bare minimum.}}",
			additionalMessage = "Please see [[Wikipedia:Stub#Essential information about stubs|Wikipedia:Stub]] for our minimum information standards for short articles. Also please note that articles must be on [[Wikipedia:Notability|notable]] subjects and should provide references to [[Wikipedia:Reliable sources|reliable sources]] that [[Wikipedia:Verifiability|verify]] their content.",
			notice = 1,
			aliases = {"nocontent", "contact"}
		},
		["a7"] = {
			name = "No indication of importance (people, animals, organizations, web content, events)",
			description = "as an article about {{safesubst:#if:$2|$2|a real person, individual animal, organization (band, club, company, etc.), web content or organized event}} that does not [[Wikipedia:Credible claim of significance|credibly indicate]] the {{safesubst:#if:$3|[[:$3|importance or significance]]|importance or significance}} of the subject",
			more = "Note that books, albums, software, or other creative works or [[Types of educational institutions|educational institutions]] are <b><u>not</u></b> eligible under this criterion.",
			additionalMessage = "Please read more about [[Wikipedia:Notability|what is generally accepted as notable]].",
			drv = true,
			aliases = {"person", "animal", "band", "club", "inc", "web", "event"}
		},
		["a9"] = {
			name = "No indication of importance (musical recordings)",
			description = "as an article about {{safesubst:#if:$2|$2|a musical recording or list of musical recordings}} that does not [[Wikipedia:Credible claim of significance|credibly indicate]] the {{safesubst:#if:$3|[[:$3|importance or significance]]|importance or significance}} of the subject",
			more = "Note that other creative works and products are <b><u>not</u></b> eligible under this criterion.",
			additionalMessage = "Please [[Wikipedia:Notability|see the guidelines for what is generally accepted as notable]], as well as our subject-specific [[Wikipedia:Notability (music)|notability guideline for music]].",
			drv = true,
			aliases = {"album", "song", "discog"}
		},
		["a10"] = {
			name = "Recently created article that duplicates an existing topic",
			description = "as a recently created article with no relevant page history that does not expand upon, detail, or improve information within the existing article(s) on the subject$2",
			inputFormat = {' [[:$2]] ([{{fullurl:Special:ComparePages|page1={{urlencode:$1|wiki}}&page2={{urlencode:$2|wiki}}}} compare pages]'},
			more = "Note that splits of large articles are <b><u>not</u></b> eligible under this criterion. If the title of the page is a plausible [[Wikipedia:Redirect|redirect]] to an existing page, it is not eligible for speedy deletion, and should be redirected instead.",
			additionalMessage = "{{safesubst:#if:$2|If the topic of the article you created is one that interests you, then perhaps you would like to help out at [[:$2]]. If you have new information to add, you might want to discuss it at [[Talk:$2|the article's talk page]].}}",
			notice = 1,
			aliases = {"same", "dup"}
		},
		["a11"] = {
			name = "Obviously invented",
			description = "as an article which plainly indicates that the subject was [[Wikipedia:Wikipedia is not for things made up one day|invented/coined/discovered by the article's creator or someone they know personally]], and does not [[WP:CCS|credibly indicate]] why its subject is important or significant",
			more = "The criterion does '''not''' apply to any article that makes '''any credible claim of significance or importance''' even if the claim is not supported by a reliable source or does not satisfy Wikipedia's notability guidelines.",
			drv = true,
			aliases = {"invented", "madeup"}
		},
		-- redirects
		["r2"] = {
			name = "Cross namespace redirect",
			description = "as a redirect from the [[Wikipedia:What is an article?|main/article space]] to any other namespace except the Category:, Template:, Wikipedia:, Help: and Portal: namespaces",
			notice = 0,
			aliases = {"rediruser", "redirdraft"}
		},
		["r3"] = {
			name = "Implausible typo",
			description = "as a recently created redirect from an implausible [[Typographical error|typo]] or [[Wikipedia:Article titles|misnomer]], which is not in another language pertinent to the topic",
			aliases = {"redirtypo", "typo", "misnomer"}
		},
		["r4"] = {
			name = "File namespace redirect that matches a Wikimedia Commons page",
			description = "as a redirect in the File namespace that has the same name as a page on [[Wikipedia:Wikimedia Commons|Wikimedia Commons]]: [[Commons:$1]] and no incoming [[Wikipedia:File link|file links]]",
			notice = 0,
			aliases = {"redircom"}
		},
		-- files
		["f1"] = {
			name = "Redundant",
			description = "as an unused image or other media file that is a redundant copy, in the same [[Wikipedia:Image use policy#Format|file format]], and at the same or lower quality/resolution, of [[:$2]], which is on Wikipedia, and all inward links have been updated {{safesubst:#ifeq:{{Is Commons|$2}}|yes|.<br>{{error|[[:{{file title | $2 }}]] is on [[commons:Main Page|Commons]], please use {{nowrap|{{tlx|db|f8}}}}}}|}}",
			notice = 1,
			aliases = {"redundantfile"}
		},
		["f2"] = {
			name = "Corrupt, missing, or empty file",
			description = "as a corrupt or empty file, or a file description page for a file on Commons",
			more = "Try previewing a resized thumbnail before deleting.",
			notice = 1,
			aliases = {"nofile", "fpcfail"}
		},
		["f3"] = {
			name = "Improper license",
			description = "as an image or other media file licensed with an unacceptable license",
			more = 'This includes "[[WP:NONCOM|for non-commercial use only]]", "non-derivative use", "for Wikipedia use only", "used with permission", or an image licensed only under the [[GNU Free Documentation License]] (GFDL) 1.2 or earlier. If this file is being used under a claim of [[Wikipedia:Non-free content criteria|fair use]], this criterion does not apply.',
			additionalMessage = "If you agree with the deletion, there is no need to do anything. If, however, you believe that this image may be retained on Wikipedia under one of the [[Wikipedia:Image copyright tags|permitted conditions]] then please state clearly the source of the image and add the relevant [[Wikipedia:Image copyright tags|copyright tag]] and if necessary, a complete [[Wikipedia:Non-free use rationale guideline|fair use rationale]]. If it has been copied from elsewhere on the web you should provide links to: the image itself, the page which uses it and the page which contains the license conditions.",
			aliases = {"noncom"}
		},
		["f4"] = {
			name = "Lack of licensing information",
			description = "as an image or other media file missing important licensing information, including the source and the licensing status",
			more = 'This media may be deleted if this notice remains in place for seven days.',
			customHeader = "File copyright problem with [[:$1]]",
			customIntro = "Thank you for uploading [[:$1]]. However, it is currently missing information on its '''copyright''' status and/or '''source'''. Wikipedia takes [[Wikipedia:Copyrights|copyright]] very seriously. It may be deleted soon, unless we can verify that it has an acceptable license status and a verifiable source.\n\nIf you did not create this work entirely yourself, you will need to specify the owner of the copyright. If you obtained it from a website, please add a link to the page from which it was taken, together with a brief restatement of the website's terms of use of its content. If the original copyright holder is a party unaffiliated with the website, that author should also be credited. You will also need to state under what licensing terms it was released. Please refer to the '''[[WP:IUP#Adding images|image use policy]]''' to learn what files you can or cannot upload on Wikipedia. The page on '''[[Wikipedia:Image copyright tags|copyright tags]]''' may help you to find the correct tag to use for your file.\n\nPlease also check any other files you may have uploaded to make sure they are correctly tagged. Here is [{{fullurl:Special:Log|type=upload&user={{ {{{|safesubst:}}}PAGENAMEE}}}} a list of your uploads].",
			customIntroDeleted = "Thank you for uploading [[:$1]]. However, it was currently missing information on its '''copyright''' status and/or '''source'''. Wikipedia takes [[Wikipedia:Copyrights|copyright]] very seriously, and as such the file has been deleted.",
			notice = 3,
			delayCategorization = 7,
			aliases = {"nsd", "nld", "nsdnld"}
		},
		["f5"] = {
			name = "Orphaned non-free file",
			description = "as a non-free file that is currently not being used in any articles",
			more = 'This media may be deleted if this notice remains in place for seven days.',
			customHeader = "Orphaned non-free file [[:$1]]",
			customIntro = "Thank you for uploading [[:$1]]. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a [[Wikipedia:Non-free content|claim of fair use]]. However, the image is currently not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see [[Wikipedia:Non-free content#Policy|our policy for non-free media]]).",
			customIntroDeleted = "Thank you for uploading [[:$1]]. The image description page specified that the image is non-free and may only be used on Wikipedia under a [[Wikipedia:Non-free content|claim of fair use]]. However, the image was not being used in any articles on Wikipedia, so it has been deleted.",
			delayCategorization = 7,
			notice = 0,
			aliases = {"orfud"}
		},
		["f5imm"] = {
			code = "F5",
			name = "Orphaned non-free file (immediate)",
			description = "as a non-free file that is not used in any articles or was only used in a now deleted article and is very unlikely to have any use on any other valid article",
			customHeader = "Orphaned non-free file [[:$1]]",
			customIntro = "Thank you for uploading [[:$1]]. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a [[Wikipedia:Non-free content|claim of fair use]]. However, the image is currently not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see [[Wikipedia:Non-free content#Policy|our policy for non-free media]]).",
			customIntroDeleted = "Thank you for uploading [[:$1]]. The image description page specified that the image is non-free and may only be used on Wikipedia under a [[Wikipedia:Non-free content|claim of fair use]]. However, the image was not being used in any articles on Wikipedia, so it has been deleted.",
			notice = 0
		},
		["f6"] = {
			name = "Missing non-free use rationale",
			description = "as a non-free file that has no explanation as to why the file meets the [[WP:NFCC|non-free content criteria]]",
			more = 'This media may be deleted if this notice remains in place for seven days.',
			customHeader = "Non-free rationale for [[:$1]]",
			customIntro = "Thanks for uploading or contributing to '''[[:$1]]'''. I noticed the file page specifies that the file is being used under [[WP:NFCC|non-free content criteria]], but there is not a suitable explanation or rationale as to why each specific use in Wikipedia is acceptable. Please go to [[:$1|the file description page]], and edit it to include a [[Wikipedia:Non-free use rationale guideline|non-free rationale]].\n\nIf you have uploaded other non-free media, consider checking that you have specified the non-free rationale on those pages too. You can find a list of 'file' pages you have edited by clicking on the \"[[Special:Contributions/{{safesubst:PAGENAME}}|my contributions]]\" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting \"File\" from the dropdown box. Note that any non-free media lacking such an explanation will be deleted one week after they have been tagged, as described in [[Wikipedia:Criteria for speedy deletion#F6|section F6 of the criteria for speedy deletion]]. If you have any questions, please ask them at the [[Wikipedia:media copyright questions|Media copyright questions page]].",
			customIntroDeleted = "Thanks for uploading or contributing to '''[[:$1]]'''. I noticed the file page specifies that the file is being used under [[WP:NFCC|non-free content criteria]], but there is not a suitable explanation or rationale as to why each specific use in Wikipedia is acceptable. As such, the file has been deleted.",
			notice = 3,
			delayCategorization = 7,
			aliases = {"nrd"}
		},
		["f7"] = {
			name = "Invalid fair use claim",
			description = "as a non-free file from a commercial source (e.g. Associated Press, Getty), where the file itself is not the subject of sourced commentary",
			drv = true,
			aliases = {"badfairuse"}
		},
		["f8"] = {
			name = "Available as identical copy on Wikimedia Commons",
			description = "as a file that is available as an identical copy of a file on Wikimedia Commons$2",
			inputFormat = {" (see [[:File:$2]])"},
			more = "This only applies if the file is of the same format as that on Commons, with a similar resolution or better, if the file has a compatible license with Commons, the file is not marked as {{tlx|do not move to commons}}, and the image is not protected.",
			notes = "<span class=\"sysop-show\">If the image description page contains any information pertinent to the use of the file on the English Wikipedia, please remember to undelete it after deleting the file.</span>",
			notice = 0,
			aliases = {"nowcommons"}
		},
		["f9"] = {
			name = "Unambiguous file copyright infringement",
			description = "because it appears to have been [[Wikipedia:Copyright violations|copied]] from {{safesubst:#if:$2|$2<!-- avoid trailing comma being parsed as part of the URL -->, which does not|an unspecified source, which does not}} have a license compatible with Wikipedia, and the uploader does not assert [[Wikipedia:Non-free content|fair use]] or make a credible claim of permission",
			additionalMessage = "For legal reasons, we cannot accept copyrighted text or images taken from other web sites or printed material, and as a consequence, your addition will most likely be deleted. Wikipedia takes copyright violations very seriously; as such, persistent violators will [[Wikipedia:BLOCK|lose their editing privileges]].\n\nIf the image belongs to you, and you want to allow Wikipedia to use it — which means allowing other people to use it for any reason — then you ''must'' verify that externally by one of the processes explained at [[Wikipedia:Donating copyrighted materials]]. The same holds if you are not the owner but have their permission. If you are not the owner and do not have permission, see [[Wikipedia:Requesting copyright permission]] for how you may obtain it. You might want to look at [[Wikipedia:Copyrights|Wikipedia's copyright policy]] for more details, or ask a question [[Wikipedia:Help desk|here]].",
			willProvide = false,
			notice = 3,
			aliases = {"filecopyvio"}
		},
		["f11"] = {
			name = "No evidence of permission",
			description = "as a file in which the copyright holder has not provided evidence of permission or ownership",
			more = 'This media may be deleted if this notice remains in place for seven days.',
			customHeader = "File permission problem with [[:$1]]",
			customIntro = "Thanks for uploading '''[[:$1]]'''. I noticed that while you provided a valid copyright licensing tag, there is no proof that the creator of the file has agreed to release it under the given license. \n\nIf you are the copyright holder for this media entirely yourself but have previously published it elsewhere (especially online), please either \n* make a note permitting reuse under the [[WP:CC-BY-SA|CC-BY-SA]] or another acceptable free license (see [[Wikipedia:File copyright tags/Free licenses|this list]]) '''at the site of the original publication'''; or\n* Send an email from an address associated with the original publication to '''[mailto:permissions-en@wikimedia.org permissions-en@wikimedia.org]''', stating your ownership of the material and your intention to publish it under a free license. You can find a sample permission letter [[WP:CONSENT|here]]. If you take this step, add {{tl|permission pending}} to the file description page to prevent premature deletion.\n\nIf you did not create it entirely yourself, please ask the person who created the file to take one of the two steps listed above, or if the owner of the file has already given their permission to you via email, please forward that email to '''permissions-en@wikimedia.org'''. \n\nIf you believe the media meets the criteria at [[Wikipedia:Non-free content]], use a tag such as {{tl|non-free fair use}} or one of the other tags listed at [[Wikipedia:File copyright tags#Fair use]], and add a [[Wikipedia:Non-free use rationale guideline|rationale]] justifying the file's use on the article or articles where it is included. See [[Wikipedia:File copyright tags]] for the full list of copyright tags that you can use.\n\nIf you have uploaded other files, consider checking that you have provided evidence that their copyright owners have agreed to license their works under the tags you supplied, too. You can find a list of files you have created in [{{fullurl:Special:Log|type=upload&user={{ {{{|safesubst:}}}PAGENAMEE}}}} your upload log]. '''Files lacking evidence of permission may be deleted one week after they have been tagged''', as described in [[Wikipedia:Criteria for speedy deletion#F11|section F11 of the criteria for speedy deletion]]. You may wish to read Wikipedia's [[Wikipedia:image use policy|image use policy]]. If you have any questions please ask them at the [[Wikipedia:Media copyright questions|Media copyright questions page]].",
			customIntroDeleted = "Thanks for uploading '''[[:$1]]'''. I noticed that while you provided a valid copyright licensing tag, there is no proof that the creator of the file has agreed to release it under the given license. Thus, I had to delete that file.",
			willProvide = false,
			notice = 3,
			delayCategorization = 7,
			aliases = {"npd"}
		},
		-- categories
		["c1"] = {
			name = "Empty category",
			description = "as a category that is empty, is not currently under discussion at [[Wikipedia:Categories for discussion]] (or other such [[Wikipedia:deletion discussions|discussions]]), and is not a [[:Category:Disambiguation categories|disambiguation category]], [[:Category:Wikipedia soft redirected categories|category redirect]], [[:Category:Wikipedia featured topics categories|featured topics category]], or a project category that by its nature may become empty on occasion.",
			more = 'This category may be deleted if this notice remains in place for seven days.',
			notes = "If you know of pages which are appropriate for this category, please populate it and remove this notice.",
			delayCategorization = 7,
			notice = 0,
			aliases = {"catempty"}
		},
		-- user pages
		["u1"] = {
			name = "User request",
			description = "as a [[Wikipedia:User pages|user page]] or [[Wikipedia:Subpages|subpage]] requested to be deleted by its user",
			more = 'Note that in some cases such pages may need to be retained for administrative purposes<span class="sysop-show">. Before deleting, administrators are advised to check the contribution history of such pages to be sure they are not deleting a user talk page that has been moved</span>.',
			notes = " <span class=\"sysop-show\">{{#ifeq:{{REVISIONUSER}}|{{BASEPAGENAME}}||'''Warning: This page was last edited by a user other than the owner of the userspace in which it was used. Please make sure the page was tagged by the correct user before deleting. '''</span>}}",
			customIntro = '<span class="error">Page exists. Please delete the page first then use this message.</span>',
			customIntroDeleted = "Hello, {{subst:BASEPAGENAME}}. As per your good faith request, the page [[:$1]] has been deleted. If you would like the page restored, please send a request to [[WP:RFUND|requests for undeletion]]. Thanks, and happy editing!",
			customCloser = "",
			notice = 0,
			aliases = {"userreq"}
		},
		["u2"] = {
			name = "User page of non-existent user",
			description = "as a user page, subpage, or talk page of a user that does not exist ([[Special:CentralAuth/{{safesubst:BASEPAGENAMEE:$1}}|check]])",
			more = "This excludes userpages for anonymous users who have edited, redirects from misspellings of an established user's userpage, and the previous name of a [[WP:Changing username|renamed user]].",
			notice = 0,
			aliases = {"nouser"}
		},
		["u5"] = {
			name = "Misuse of Wikipedia as a webhost",
			description = "as a page in userspace consisting of [[Wikipedia:What Wikipedia is not#Wikipedia is not a blog, Web hosting service, social networking service, or memorial site|writings, information, discussions, and/or activities not closely related to Wikipedia's goals]], where the owner has made few or no edits outside of userspace",
			more = "Note that plausible drafts and pages adhering to [[WP:UPYES]] are <b><u>not</u></b> eligible under this criterion.",
			additionalMessage = "Please note that [[Wikipedia:What Wikipedia is not#Wikipedia is not a blog, web hosting service, social networking service, or memorial site|Wikipedia is not a free web hosting service]].",
			notice = 1,
			drv = true,
			aliases = {"webhost", "notwebhost"}
		}
	},
	["deletionReasonsSorting"] = {
		"g1", "g2", "g3", "g4", "g5", "g6", "g7", "g8", "g9", "g10", "negublp", "g11", "g12", "g13", "g14",
		"a1", "a2", "a3", "a5", "a7", "a9", "a10", "a11",
		"r2", "r3", "r4",
		"f1", "f2", "f3", "f4", "f5", "f5imm", "f6", "f7", "f8", "f9", "f11",
		"c1",
		"u1", "u2", "u5"
	},
	["messages"] =  {
		["botIntro"] = "An automated process has identified that this $1 may meet Wikipedia's [[Wikipedia:Criteria for speedy deletion|criteria for speedy deletion]] $2.",
		["botIntroMultiple"] = "An automated process has identified that this $1 may meet Wikipedia's [[Wikipedia:Criteria for speedy deletion|criteria for speedy deletion]]: $2",
		["deleteIntro"] = "This $1 may meet Wikipedia's [[Wikipedia:Criteria for speedy deletion|criteria for speedy deletion]] $2",
		["deleteIntroMultiple"] = "This $1 may meet Wikipedia's [[Wikipedia:Criteria for speedy deletion|criteria for speedy deletion]]: $2",
		["deleteCriteriaValid"] = "This page may be deleted under any criterion that is valid.",
		["deleteIntroCriteriaLink"] = "See CSD [[Wikipedia:Criteria for speedy deletion#$1|$1]]",
		["noReasonWarning"] = "<strong class=\"error\">No reason (or an incomplete reason) has been given as to why this page qualifies</strong>",
		["removeNoticeNoButton"] = "If this $1 does not meet the criteria for speedy deletion, please remove this notice.",
		["removeNotice"] = "If this $1 does not meet the criteria for speedy deletion, or you intend to fix it, please remove this notice, but $2.",
		["removeNoticeWarning"] = "<b>do not remove this notice from pages that you have created yourself</b>. If you created this page and disagree with the given reason for deletion, you can press the button below and leave a message explaining why you believe it should not be deleted. You can then $1 to see if you have received a response to your message",
		["contestButton"] = "Contest this speedy deletion",
		["deleteCloser"] = "Note that this $1 may be deleted at any time if it unquestionably meets the speedy deletion criteria, or if an explanation $2 is found to be insufficient.",
		["deleteCloserProvidedOnTalkPage"] = "posted to the talk page",
		["deleteCloserProvidedBelowNotice"] = "posted below this notice",
		["deleteNoticeTemplate"] = "'''Nominator:''' please consider placing the [[Help:Template|template]] $1 on the talk page of the author.",
		["hangOn"] = "Note to page author: you have not edited the talk page yet. If you wish to contest this speedy deletion, clicking the button above will allow you to [[Special:NewSection/{{TALKPAGENAME}}|leave a talk page message]] explaining why you think this $1 should not be deleted. If you have already posted to the talk page but this message is still showing up, try [{{fullurl:{{FULLPAGENAME}}|action=purge}} purging the page's cache]. ",
		["hangOnAdmin"] = "Note to administrators: this $1 has content $2 which should be checked before deletion.",
		["hangOnTalkPage"] = "on its talk page",
		["visitTheTalkPage"] = "visit the talk page",
		["checkBelow"] = "check below",
		["contestPreloadTitle"] = "Contested deletion",
		["contestPreloadEditintro"] = "Template:Hangon preload editintro",
		["contestPreload"] = "Template:Hangon preload $1",
		["contestPreloadGeneric"] = "Template:Hangon preload generic",
		["check"] = "Administrators: check [[Special:WhatLinksHere/{{FULLPAGENAME}}|links]], [[{{TALKPAGENAME}}|talk]], [{{fullurl:{{FULLPAGENAME}}|action=history}} history] ([{{fullurl:{{FULLPAGENAME}}|diff=0}} last]), and [{{fullurl:Special:Log|page={{FULLPAGENAMEE}}}} logs] before [{{fullurl:{{FULLPAGENAME}}|wpReason={{urlencode:$1}}&action=delete}} deletion]",
		["additionalNote"] = "Additional note: $1",
		["checkBot"] = "Administrator: check $1 before deletion, as this page was tagged by a [[Wikipedia:Bots|bot]].",
		["lastEdited"] = "This page was [{{fullurl:{{FULLPAGENAMEE}}|diff=cur}} last edited] by $1 at $2 ([{{fullurl:{{FULLPAGENAMEE}}|action=purge}} $3]).",
		["noticeHeader"] = "Speedy deletion {{safesubst:#ifexist:$1|nomination}} of [[:$1|$1]]",
		["welcomeMessage"] = "Hello, and welcome to Wikipedia. This is a notice to let you know that the page you created, [[:$1|$1]], was nominated for speedy deletion $2",
		["welcomeMessageMultiple"] = "Hello, and welcome to Wikipedia. This is a notice to let you know that the page you created, [[:$1|$1]], was nominated for speedy deletion: $2",
		["noticeMessage"] = "A tag has been placed on [[:$1|$1]], requesting that it be speedy deleted $2",
		["noticeMessageMultiple"] = "A tag has been placed on [[:$1|$1]], requesting that it be speedy deleted: $2",
		["welcomeMessageDeleted"] = "Hello, and welcome to Wikipedia. This is a notice to let you know that the page you created, [[:$1|$1]], was deleted $2",
		["welcomeMessageDeletedMultiple"] = "Hello, and welcome to Wikipedia. This is a notice to let you know that the page you created, [[:$1|$1]], was deleted: $2",
		["noticeMessageDeleted"] = "The page [[:$1|$1]] has been deleted $2",
		["deletedAfterMessage"] = "This page has since been deleted or moved.",
		["noticeMessageDeletedMultiple"] = "The page [[:$1|$1]] has been deleted: $2",
		["removeSpeedyMessage"] = "If the page does not meet this speedy deletion crtieria, you may remove the notice from [[:$1|the page]]. However, be aware that once a page is tagged for speedy deletion, it may be deleted without delay.",
		["contestMessage"] = "If you believe this page does not meet this speedy deletion criteria, you may '''contest the nomination''' by [[:$1|visiting the page]] and pressing the button labeled $2. This will give you the opportunity to explain why you believe the page should not be deleted. However, be aware that once a page is tagged for speedy deletion, it may be deleted without delay.",
		["closingWarning"] = "Please do not $1, but do not hesitate to add information with [[Wikipedia:Policies and guidelines|Wikipedia's policies and guidelines]].",
		["recreateWarning"] = "recreate the material without addressing these concerns",
		["removeSpeedyWarning"] = "remove the speedy deletion tag from the page yourself",
		["undeleteSuggestion"] = "If $1, or you wish to retrieve the deleted material for future reference or improvement, then please contact the <span class=\"plainlinks\">[{{fullurl:Special:Log/delete|page=$2}} deleting administrator]</span>, or if you have already done so, $3.",
		["pageIsDeleted"] = "the page is deleted",
		["pageShouldNotHaveBeenDeleted"] = "you think this page should not have been deleted",
		["requestUndeletion"] = "you may [[Wikipedia:RFUND|request this page be undeleted]]",
		["requestDeletionReview"] = "you may request [[Wikipedia:DRV|deletion review]]",
		["seePageForWhy"] = "Please visit the page and review our [[Wikipedia:CSD|speedy deletion policy]] to see why.",
		["level0icon"] = "File:Commons-emblem-speedy.svg",
		["level1icon"] = "File:Information icon4.svg",
		["level2icon"] = "File:Ambox warning pn.svg",
		["level3icon"] = "File:Copyright-problem.svg",
		["level4icon"] = "File:Stop hand nuvola.svg",
		["defaultCategory"] = "Candidates for speedy deletion",
		["pleaseBlank"] = "Please remove all content except this deletion tag from the page.",
		["blanked"] = "This page has been blanked as a courtesy.",
		["hidden"] = "The contents of this page are currently hidden pending review by an administrator."
	}
}

-- build deletion codes and default parameters
for k,v in pairs(config.deletionCodes) do
	config.deletionCodes[k].code = config.deletionCodes[k].code ~= nil and config.deletionCodes[k].code or k:upper()
	config.deletionCodes[k].notice = config.deletionCodes[k].notice ~= nil and config.deletionCodes[k].notice or 2
	config.deletionCodes[k].willProvide = config.deletionCodes[k].willProvide == nil and true or config.deletionCodes[k].willProvide
	config.deletionCodes[k].categories = (config.deletionCodes[k].categories == nil or config.deletionCodes[k].category == {}) and {config.messages['defaultCategory'] .. ' (' .. config.deletionCodes[k].code .. ')'} or config.deletionCodes[k].categories
	config.deletionCodes[k].delayCategorization = config.deletionCodes[k].delayCategorization ~= nil and config.deletionCodes[k].delayCategorization or 0
	config.deletionCodes[k].aliases = config.deletionCodes[k].aliases or {}
end

-- aliases
for k,v in pairs(config.deletionCodes) do
	for l,w in pairs(v.aliases) do
		config.deletionCodes[w] = config.deletionCodes[w] == nil and config.deletionCodes[k] or config.deletionCodes[w]
	end
end


return config