<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://themidnight.wiki/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://themidnight.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3APp%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://themidnight.wiki/index.php?title=Template:Pp/doc&amp;action=history"/>
	<updated>2026-04-26T17:51:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://themidnight.wiki/index.php?title=Template:Pp/doc&amp;diff=4045&amp;oldid=prev</id>
		<title>Jens: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://themidnight.wiki/index.php?title=Template:Pp/doc&amp;diff=4045&amp;oldid=prev"/>
		<updated>2022-04-15T19:57:39Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:57, 15 April 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jens</name></author>
	</entry>
	<entry>
		<id>https://themidnight.wiki/index.php?title=Template:Pp/doc&amp;diff=4044&amp;oldid=prev</id>
		<title>wikipedia&gt;Discospinster: Reverted edits by 2601:8C3:0:11D0:153A:3F35:638D:D638 (talk) (HG) (3.4.10)</title>
		<link rel="alternate" type="text/html" href="https://themidnight.wiki/index.php?title=Template:Pp/doc&amp;diff=4044&amp;oldid=prev"/>
		<updated>2022-03-23T13:51:53Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/wiki/Special:Contributions/2601:8C3:0:11D0:153A:3F35:638D:D638&quot; title=&quot;Special:Contributions/2601:8C3:0:11D0:153A:3F35:638D:D638&quot;&gt;2601:8C3:0:11D0:153A:3F35:638D:D638&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:2601:8C3:0:11D0:153A:3F35:638D:D638&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:2601:8C3:0:11D0:153A:3F35:638D:D638 (page does not exist)&quot;&gt;talk&lt;/a&gt;) (&lt;a href=&quot;/index.php?title=WP:HG&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:HG (page does not exist)&quot;&gt;HG&lt;/a&gt;) (3.4.10)&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| 7450 }}&lt;br /&gt;
{{Twinkle standard installation}}&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>wikipedia&gt;Discospinster</name></author>
	</entry>
</feed>