Template:Pp-meta/doc: Difference between revisions

From Know Islam
Jump to navigation Jump to search
(Created page with "<!-- Template:Pp-meta/doc --> ==Usage== The `{{pp-meta}}` template is used to display a message indicating the protection status of a Wikipedia 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...")
 
No edit summary
 
Line 2: Line 2:


==Usage==
==Usage==
The `{{pp-meta}}` template is used to display a message indicating the protection status of a Wikipedia page. This template helps communicate the type of protection applied to the page, such as edit protection, move protection, or creation protection.
The `{{pp-meta}}` 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==
==Parameters==
Line 44: Line 44:


==See Also==
==See Also==
* [[Template:Pp-protected]]
* `{{pp-protected}}`
* [[Template:Pp-semi-protected]]
* `{{pp-semi-protected}}`
* [[Template:Pp-move]]
* `{{pp-move}}`
* [[Wikipedia:Protection policy]]


==Documentation==
==Documentation==
{{Template:Documentation}}
{{Template:Documentation}}
<noinclude>
<noinclude>
{{Category:Wikipedia protected templates}}
{{Category:Protected templates}}
</noinclude>
</noinclude>

Latest revision as of 14:19, 21 July 2024


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:Pp-meta/doc/doc

Category:Protected templates