From New World Encyclopedia
[view] [edit]Template-info.svg Template documentation
Information icon.svg This template employs intricate features of template syntax.
Please do not alter it unless you understand its setup and parser functions and are ready to repair or revert all collateral damage if results are unexpected.
Any experiments should be conducted and all improvements tested in either the template sandbox or your user space before changing anything here.

This is {{pp-meta}}, a meta template used to create protection message boxes.

  1. If on an article (main space) it generates a message box in the standardised article message box style.
  2. If on any kind of talk page it generates a message box in the standardised talk page "coffee roll" style.
  3. If on any other page it generates a message box in the old protection template style.

This meta template also takes care of part of the code for the "small" case with just an icon at the top right corner of the page.


If these two boxes don't look alike, you need to refresh your web browser cache:

- Hardcoded box.

This is a temporary caching problem that should be gone in some days.


Note that the small padlock in the top right corner of this page also is an example created with this meta template.

Main space

Any talk space

Other spaces


| smalltext = <imagemap> </imagemap>
| image = [[Image:Padlock.svg|40px]]
| text = The message body text.
| categories = {{{categories|Any categories the child template should place on the target page, with ParserFunctions if desired.}}}



Should be empty or undefined if the normal big message box is wanted. If non-empty it puts the data it gets in the upper right corner of the page. Feed the imagemap with all its content for the small padlock in the upper right corner. For instance:
  rect 0 0 1000 1000 [[Wikipedia:Protection policy | This high-risk 
template has been semi-protected from editing to prevent vandalism]]
  desc none


The image to use for the big message box. Usual wiki image notation and should be about 40px size. For instance:


The message body text.


Main / Talk / Other = Manually set namespace. Only for testing and demonstration purposes. If empty or undefined then the namespace is detected automatically.


This parameter is designed to support category suppression, such that if categories=no is passed, the template will not return categories. It should be used to insert the categories that will be placed upon the page where the template is transcluded. For use in a child template, wrap the categories in {{{categories|    }} to allow the input "no" to be made to the child template. This parameter should never have non-category, non-invisible content passed, as this will display under and outside the template box.

Technical details


The reason the smalltext has to get the whole imagemap as parameter instead of creating it based on the image and a text parameter is that MediaWiki can not handle template variables inside an imagemap.

This template contains the following code to support category placement:
  • This code first evaluates if categories is equal to "no". If so, it cancels the display of a pp-template's article categories at each level. If not, it displays the values if and only if present.
  • It is offset with includeonly tags to only be made effective at the transcluded level - that is, wherever the template is placed, so will its categories.
Any template calling pp-meta should use the following code for categories:
  • Where Foo is in the example is where the categories that one wants the calling template to display should be placed. These can also use ParserFunctions to be disabled where desired (i.e. expiry-enabled categories that appear once the current article is unprotected again).
  • Any template calling pp-meta should use the form <includeonly>{{pp-meta}}</includeonly> (where the pp-meta transclusion includes parameters), so categories placed as the calling template's default for categories will be transcluded only to the protected page where the calling template is transcluded, rather than to the calling template itself.

See also

Protection templates

+/- !! Full !! Semi

Dispute: {{ pp-dispute }} N/A
Vandalism: {{ pp-vandalism }} {{ pp-semi-vandalism }}
High visiblity templates: {{ pp-template }} {{ pp-semi-template }}
User talk of blocked user: {{ pp-usertalk }} {{ pp-semi-usertalk }}
Spambot target: N/A {{ pp-semi-spambot }}
Sockpuppetry: N/A {{ pp-semi-sock }}
Generic (other protection): {{ pp-protected }} {{ pp-semi-protected }}
Scrutiny of the Office: {{ pp-office }} N/A
Move protection: {{ pp-move }}


New World Encyclopedia writers and editors copied and adjusted this Wikipedia template in accordance with New World Encyclopedia standards. This article abides by terms of the Creative Commons CC-by-sa 3.0 License (CC-by-sa), which may be used and disseminated with proper attribution.The history of earlier contributions by wikipedians is accessible to researchers here:

The history of this article since it was imported to New World Encyclopedia:

Note: Some restrictions may apply to use of individual images which are separately licensed.