<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3APp%2Fdoc</id>
	<title>Template:Pp/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3APp%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Pp/doc&amp;action=history"/>
	<updated>2026-04-07T23:05:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Pp/doc&amp;diff=12262&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}} {{High-use}} {{Commons Import}} {{lua|Module:Protection banner}} &lt;!--Categories where indicated at the bottom of this page, please; interwikis at Wik...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Pp/doc&amp;diff=12262&amp;oldid=prev"/>
		<updated>2020-10-18T18:38:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{High-use}} {{Commons Import}} {{lua|Module:Protection banner}} &amp;lt;!--Categories where indicated at the bottom of this page, please; interwikis at Wik...&amp;quot;&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;
{{High-use}}&lt;br /&gt;
{{Commons Import}}&lt;br /&gt;
{{lua|Module:Protection banner}}&lt;br /&gt;
&amp;lt;!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a general template for producing protection banners and padlock icons. It can be used with any protection reason, any protection action, and any protection level.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;{pp&lt;br /&gt;
 | 1        = &amp;#039;&amp;#039;reason&amp;#039;&amp;#039;&lt;br /&gt;
 | small    = &amp;#039;&amp;#039;yes&amp;#039;&amp;#039;&lt;br /&gt;
 | action   = &amp;#039;&amp;#039;action&amp;#039;&amp;#039;&lt;br /&gt;
 | date     = &amp;#039;&amp;#039;protection date&amp;#039;&amp;#039;&lt;br /&gt;
 | user     = &amp;#039;&amp;#039;username&amp;#039;&amp;#039;&lt;br /&gt;
 | section  = &amp;#039;&amp;#039;talk page section name&amp;#039;&amp;#039;&lt;br /&gt;
 | category = &amp;#039;&amp;#039;no&amp;#039;&amp;#039;&lt;br /&gt;
 }&amp;amp;#125;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
All parameters are optional:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; – The reason that the page was protected. If set, this must be one of the values listed in the [[#Reasons|reasons table]].&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;small&amp;#039;&amp;#039;&amp;#039; – If set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;1&amp;quot;, or &amp;quot;true&amp;quot;, a padlock icon is generated instead of a full protection banner.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;action&amp;#039;&amp;#039;&amp;#039; – The protection action. Must be one of &amp;quot;edit&amp;quot; (for normal protection), &amp;quot;move&amp;quot; (for move-protection) or &amp;quot;autoreview&amp;quot; (for pending changes). The default value is &amp;quot;edit&amp;quot;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;date&amp;#039;&amp;#039;&amp;#039; – The protection date. This must be valid input to the second parameter of the [[mw:Help:Extension:ParserFunctions##time|#time parser function]]. This argument only has an effect for the &amp;quot;office&amp;quot; and &amp;quot;reset&amp;quot; reasons.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;user&amp;#039;&amp;#039;&amp;#039; – The username of the user to generate links for. As of July 2014, this only has an effect when the &amp;quot;usertalk&amp;quot; reason is specified.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;section&amp;#039;&amp;#039;&amp;#039; – The section name of the protected page&amp;#039;s talk page where discussion is taking place. This works for most, but not all, values of &amp;#039;&amp;#039;reason&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;category&amp;#039;&amp;#039;&amp;#039; – Categories are suppressed if this is set to &amp;quot;no&amp;quot;, &amp;quot;n&amp;quot;, &amp;quot;0&amp;quot;, or &amp;quot;false&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Reasons ==&lt;br /&gt;
The following table contains the available reasons, plus the actions for which they are available.&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Protection banner/documentation|reasonTable}}&lt;br /&gt;
&lt;br /&gt;
== Syntax examples ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Padlock icons&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Padlock icon for a page protected due to vandalism:&lt;br /&gt;
 &amp;amp;#123;{pp|vandalism|small=yes}&amp;amp;#125;&lt;br /&gt;
&lt;br /&gt;
Padlock icon for a page temporarily protected due to editing disputes:&lt;br /&gt;
 &amp;amp;#123;{pp|dispute|small=yes}&amp;amp;#125;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Banners&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Banner for a page protected due to sockpuppetry, with a link to a talk page discussion:&lt;br /&gt;
 &amp;amp;#123;{pp|sock|section=Sockpuppetry concerns}&amp;amp;#125;&lt;br /&gt;
&lt;br /&gt;
Banner for a page temporarily move-protected due to page-move vandalism:&lt;br /&gt;
 &amp;amp;#123;{pp|vandalism|action=move}&amp;amp;#125;&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;description&amp;quot;: &amp;quot;Produces banners to describe why a page is protected and padlock icons&amp;quot;,&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;Reason&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Reason for protection, may be one of: blp, dispute, dmca, mainpage, office, reset, sock, template, usertalk, vandalism&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;blp&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;small&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Specifies whether the small format is used. If set to \&amp;quot;yes\&amp;quot;, \&amp;quot;y\&amp;quot;, \&amp;quot;1\&amp;quot;, or \&amp;quot;true\&amp;quot;, a padlock icon is generated instead of a full protection banner.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;yes&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;no&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;action&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Protection action. Must be one of \&amp;quot;edit\&amp;quot; (for normal protection), \&amp;quot;move\&amp;quot; (for move-protection) or \&amp;quot;autoreview\&amp;quot; (for pending changes). The default value is \&amp;quot;edit\&amp;quot;.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;edit&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;edit&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;date&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Protection date. This must be valid input to the second parameter of the #time parser function. This argument only has an effect for the \&amp;quot;office\&amp;quot; and \&amp;quot;reset\&amp;quot; reasons.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;date&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;user&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Username of the user to generate links for. This only has an effect when the \&amp;quot;usertalk\&amp;quot; reason is specified.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;wiki-user-name&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;section&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Section name of the protected page&amp;#039;s talk page where discussion is taking place. This works for most, but not all, values of reason.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;category&amp;quot;: {&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Categories are suppressed if this is set to \&amp;quot;no\&amp;quot;, \&amp;quot;n\&amp;quot;, \&amp;quot;0\&amp;quot;, or \&amp;quot;false\&amp;quot;.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Protection templates}}&lt;br /&gt;
&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:Protection templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>