<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AArticle_for_deletion%2Fswitch%2Fdoc</id>
	<title>Template:Article for deletion/switch/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AArticle_for_deletion%2Fswitch%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Article_for_deletion/switch/doc&amp;action=history"/>
	<updated>2026-10-31T16:40:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Article_for_deletion/switch/doc&amp;diff=125573&amp;oldid=prev</id>
		<title>Wikipedia&gt;FaviFake: /*  */ add {{tsh|AfD/s}}</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Article_for_deletion/switch/doc&amp;diff=125573&amp;oldid=prev"/>
		<updated>2026-10-07T18:59:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;: &lt;/span&gt; add {{tsh|AfD/s}}&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{tsh|AfD/s}}&lt;br /&gt;
This is a small helper template used internally by  {{T|AfD/dated}} (and related deletion-process templates) to pick one of four pieces of text depending on the &amp;#039;&amp;#039;&amp;#039;action&amp;#039;&amp;#039;&amp;#039; being sought in the nomination: merging, redirecting, draftifying, or (by default) deletion. It is not meant to be used on its own outside of these templates.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
{{tlx|Article for deletion/switch|VALUE|merge-text|redirect-text|draftify-text|default-text}}&lt;br /&gt;
&lt;br /&gt;
The template takes five unnamed (positional) parameters:&lt;br /&gt;
&lt;br /&gt;
# The &amp;#039;&amp;#039;&amp;#039;value&amp;#039;&amp;#039;&amp;#039; to test, normally {{para|action}} passed through from {{tlx|Afd}}.&lt;br /&gt;
# The text to return if parameter 1 is &amp;lt;code&amp;gt;merge&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;merging&amp;lt;/code&amp;gt;.&lt;br /&gt;
# The text to return if parameter 1 is &amp;lt;code&amp;gt;redirect&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;redirecting&amp;lt;/code&amp;gt;.&lt;br /&gt;
# The text to return if parameter 1 is &amp;lt;code&amp;gt;draft&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;draftify&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;draftifying&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;draftification&amp;lt;/code&amp;gt;.&lt;br /&gt;
# The &amp;#039;&amp;#039;&amp;#039;default&amp;#039;&amp;#039;&amp;#039; text, returned for any other value, including a blank value, &amp;lt;code&amp;gt;delete&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;deletion&amp;lt;/code&amp;gt;. Most often used for deletion.&lt;br /&gt;
&lt;br /&gt;
In other words, the template is a thin wrapper around a [[Help:Magic words#Parser functions|&amp;lt;code&amp;gt;#switch&amp;lt;/code&amp;gt;]] parser function, matching parameter 1 against a small set of recognised outcome keywords and falling through to the default text (parameter 5) when nothing matches. This is what lets {{tlx|Afd}} show wording appropriate to the process actually being requested, without repeating four near-identical passages of prose throughout its code.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
Inside {{tlx|Afd}}, the switch is called several times, for example to choose the icon shown in the message box:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Article for deletion/switch|{{{outcome|}}}|[[File:Merge-arrow.svg|alt=|link=]]|none|none|none}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, if {{para|outcome}} is set to &amp;lt;code&amp;gt;merge&amp;lt;/code&amp;gt;, the merge-arrow icon is shown; for &amp;lt;code&amp;gt;redirect&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;draftify&amp;lt;/code&amp;gt;, or any unrecognised/blank value (i.e., a normal deletion nomination), no icon (&amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;) is shown instead.&lt;br /&gt;
&lt;br /&gt;
It is also used to build the sentence describing what the discussion will decide, with a separate call supplying the &amp;quot;merging&amp;quot;, &amp;quot;redirecting&amp;quot;, &amp;quot;draftification&amp;quot;, and &amp;quot;deletion&amp;quot; wording used throughout the notice.&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Value to test&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The outcome value being checked, usually {{{outcome|}}} passed through from Template:Afd. Recognised values are merge, merging, redirect, redirecting, draft, draftify, draftifying, and draftification; anything else (including blank) falls through to the default.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Merge text&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Text returned when parameter 1 is \&amp;quot;merge\&amp;quot; or \&amp;quot;merging\&amp;quot;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;3&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Redirect text&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Text returned when parameter 1 is \&amp;quot;redirect\&amp;quot; or \&amp;quot;redirecting\&amp;quot;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;4&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Draftify text&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Text returned when parameter 1 is \&amp;quot;draft\&amp;quot;, \&amp;quot;draftify\&amp;quot;, \&amp;quot;draftifying\&amp;quot;, or \&amp;quot;draftification\&amp;quot;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;5&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Default (deletion) text&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Text returned for any value not matched above, including a blank value, \&amp;quot;delete\&amp;quot;, or \&amp;quot;deletion\&amp;quot;. This is effectively the deletion case.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;A helper template used by Template:Afd to choose wording appropriate to the requested outcome of a deletion discussion (merge, redirect, draftify, or delete). Not intended for standalone use.&amp;quot;,&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{T|AfD/dated}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Articles for deletion templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;FaviFake</name></author>
	</entry>
</feed>