Difference between revisions 484534 and 485331 on arzwiki

{{صفحه توثيق فرعيه}}
<includeonly>{{intricate template}}</includeonly>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
This is {{tl|pp-meta}}, a meta-template used to create [[Wikipedia:Template messages/Maintenance#Protected articles, pages and images|protection message boxes]]. 

This meta-template automatically uses the right style for each namespace. It also takes care of the code for the "small" case with just a small padlock icon at the top right corner of the page.

(contracted; show full)| categories = {{{categories|<your categories here, else replace all with "no">}}}
}}
</nowiki></pre>

=== Parameters ===
This template is designed to be both defining of the major types of protection notice, but flexible enough to allow exceptions. All parameters have some fallback to allow for [[fault-tolerant system|graceful failure]], but some should almost always be applied.

====
  "Usually" required parameters  ====
;<code>type</code>:The '''type''' parameter applies most default settings for the broad classes of protection templates. It can have values equal to any of the following: <code>full</code>, <code>semi</code>, <code>indef</code>, <code>move</code>, <code>create</code>, and <code>office</code> (all case-insensitive). These values apply default boilerplate text, images, and links. This paramet(contracted; show full)hould generally use the code <code>demospace=<nowiki>{{{demolevel|undefined}}}</nowiki></code> so as to allow them to be forced to display as though they were on a page with a particular level of protection. This must have the default of "undefined" if it is used, as a null value will cause the template to fail. Failing the demolevel test causes the template to disappear and the page to be placed into [[:Category:Wikipedia pages with incorrect protection templates]].

====
  Type-dependent parameters  ====
;<code>xfd</code>: If the <code>type</code> applied is <code>create</code>, and <code>explanation-text</code> as below does not over-ride it, then the parameter '''xfd''' should be applied as equal to <code><nowiki>{{{xfd|}}}</nowiki></code> so that this input is passed through and the explanation can be more descriptive.

====  Optional parameters  ====
;<code>image</code>:The '''image''' parameter allows an alternate icon to be chosen if so desired. This image should typically be chosen from [[Commons:Padlock icons]], though any image can be chosen. Only the name of the alternate image should be applied; ''do not'' supply the "Image:" prefix.
(contracted; show full)ave the type <code>move</code> or <code>create</code>. It can be set to either <code>autoconfirmed</code> or <code>sysop</code> to disable the template on semi-protected or full-protected pages respectively. If the page is protected at the disallowed level and <code>demolevel</code> is not set to the allowed level, the template will not appear and the page will be placed into [[:Category:Wikipedia pages with incorrect protection templates]].

====
  Full list of parameters in vertical form  ====

<pre><nowiki>
{{pp-meta
| type =
| disallowlevel =
| small =
| expiry =
| reason =
| xfd =
| demospace =
| demolevel =
| image =
| icon-link =
| icon-text =
| icon-reason =
| reason-text =
| explanation-text =
| categories =
}}
</nowiki></pre>

=== See also ===

* [[Wikipedia:Template messages/Maintenance#Protected articles, pages and images]] – Examples of all the current protection templates.

{{protection templates}}
<includeonly>
<!-- ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE -->
[[Category:Protection templates|*]]
[[Category:Title templates|Pp-meta]]
[[Category:Wikipedia metatemplates|Pp-meta]]
[[Category:Exclude in print|{{PAGENAME}}]]

[[ace:Pola:Pp-meta]]
[[ar:قالب:Pp-meta]]
[[bn:টেমপ্লেট:Pp-meta]]
[[bs:Šablon:Pp-meta]]
[[cy:Nodyn:Pp-meta]]
[[diq:Şablon:Pp-meta]]
[[dv:ފަންވަތް:Pp-meta]]
[[en:Template:Pp-meta]]
[[gag:Şablon:Koruma-ana]]
[[gl:Modelo:Protexido]]
[[ja:Template:Pp-meta]]
[[ko:틀:보호-메타]]
[[mn:Загвар:Pp-meta]]
[[or:ଛାଞ୍ଚ:Pp-meta]]
[[pa:ਫਰਮਾ:Pp-meta]]
[[ro:Format:Meta-pp]]
[[vi:Bản mẫu:Pp-meta]]
[[yo:Àdàkọ:Pp-meta]]
[[zh:Template:Pp-meta]]
[[si:සැකිල්ල:Pp-meta]]
[[tr:Şablon:Koruma-ana]]
[[uk:Шаблон:Pp-meta]]
[[ur:سانچہ:Pp-meta]]
</includeonly>