Template:Pp-meta

From Know Islam
Jump to navigation Jump to search


Usage

The `` template is used to display a message indicating the protection status of a page. This template helps communicate the type of protection applied to the page, such as edit protection, move protection, or creation protection.

Parameters

  • `type`: Specifies the type of protection. Common values are `full`, `semi`, `move`, `create`, `indef`, and `office`.
  • `demolevel` (optional): Overrides the actual protection level for demonstration purposes.
  • `disallowlevel` (optional): Specifies a level to disallow actions even if the user meets the `demolevel`.
  • `expiry` (optional): The expiry date of the protection, if applicable.
  • `small` (optional): If set to `yes`, a smaller icon and message will be displayed.
  • `image` (optional): Overrides the default protection icon.
  • `icon-link` (optional): Specifies a custom link for the protection icon.
  • `icon-text` (optional): Custom text for the protection icon tooltip.
  • `reason-text` (optional): Custom text explaining the reason for the protection.
  • `explanation-text` (optional): Additional explanation text.
  • `categories` (optional): Categories for the page. Set to `no` to disable automatic categories.
  • `demospace` (optional): For testing in different namespaces.

Examples

Basic Usage

To indicate that a page is fully protected, use:

{{pp-meta|type=full}}

Semi-Protection with Expiry

To indicate that a page is semi-protected until a specific date, use:

{{pp-meta|type=semi|expiry=July 31, 2024}}

Move Protection

To indicate that a page is protected from moving, use:

{{pp-meta|type=move}}

Custom Icon and Text

To use a custom icon and text, use:

{{pp-meta|type=full|image=CustomIcon.svg|icon-text=Custom protection message}}

See Also

Documentation

Template loop detected: Template:Documentation