Module:Protection banner/doc

This module creates protection banners and padlock icons that are placed at the top of protected pages.

Usage
Most users will not need to use this module directly. For adding protection templates to articles you can use the pp template, or you may find it more convenient to use one of the more specific protection templates in the table below.

From wikitext
&#123;{#invoke:Protection banner|main | small   = yes/no | reason  = reason | action  = action | expiry  = expiry | date    = protection date | user    = username | section = talk page section name | category = no }&#125;

Parameters

 * reason
 * 1
 * action
 * expiry
 * date
 * user
 * section
 * category

Reasons
The following table contains the available reasons, plus the actions for which they are available.

Technical details
This module uses configuration data from Module:Protection banner/config. Most of the module's behaviour can be configured there, making it easily portable across different wikis and different languages.

General test cases for the module can be found at Module:Protection banner/testcases, and test cases specific to enwiki's config can be found at Module:Protection banner/config/testcases.

Bug reports and feature requests should be made on the module's talk page.