Template:Pp-meta: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{#ifeq:{{#switch:{{lc:{{{type}}}}} |move=<!-- -->{{#ifeq: {{#switch:{{lc:{{{demolevel|undefined}}}}} |semi |autoconfirmed=autoconfirmed |administrator |full |sysop=sysop |undefined={{PROTECTIONLEVEL:move}} |#default=<!--fallback value: null -->}} |sysop|yes|no }} |create=<!-- -->{{#if: {{#switch:{{lc:{{{demolevel|undefined}}}}} |semi |autoconfirmed=autoconfirmed...") |
No edit summary |
||
Line 106: | Line 106: | ||
|semi=If you cannot edit this {{pagetype|subjectspace=yes}} and you wish to make a change, you can {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||[[Template:Editsemiprotected|request an edit]], [[{{TALKPAGENAME}}|discuss changes on the talk page]],}} [[Wikipedia:Requests for page protection#Current requests for unprotection|request unprotection]], [[Special:Userlogin|log in]], or <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Special:Userlogin&type=signup <span style="color:#002bb8;" title="Sign in / create account">create an account</span>]. | |semi=If you cannot edit this {{pagetype|subjectspace=yes}} and you wish to make a change, you can {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||[[Template:Editsemiprotected|request an edit]], [[{{TALKPAGENAME}}|discuss changes on the talk page]],}} [[Wikipedia:Requests for page protection#Current requests for unprotection|request unprotection]], [[Special:Userlogin|log in]], or <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Special:Userlogin&type=signup <span style="color:#002bb8;" title="Sign in / create account">create an account</span>]. | ||
|move=The page may still be edited but cannot be moved until unprotected. Please discuss any suggested moves on the [[{{TALKPAGENAME}}|talk page]] or at [[Wikipedia:Requested moves]]. You can also [[Wikipedia:Requests for page protection|request]] that the page be unprotected. | |move=The page may still be edited but cannot be moved until unprotected. Please discuss any suggested moves on the [[{{TALKPAGENAME}}|talk page]] or at [[Wikipedia:Requested moves]]. You can also [[Wikipedia:Requests for page protection|request]] that the page be unprotected. | ||
|office=If you | |office=If you can edit this page, please discuss all changes and additions on the [[{{TALKPAGENAME}}|talk page]] first. '''Do not remove protection from this article unless you are authorized by the Wikimedia Foundation to do so.''' | ||
|create=Please see the {{#if:{{{xfd|}}}|'''[[{{{xfd}}}|deletion discussion]]''' or the}} [{{fullurl:Special:Log|type=delete&page={{FULLPAGENAMEE}}}} deletion log] for details of why this page was deleted. If you would like to create a page at this title, you must first [[Wikipedia:Requests for page protection|request]] for it to be unprotected, or contact the administrator who deleted the page for the deleted material to be restored. If unsuccessful, you can use [[Wikipedia:Deletion review|deletion review]]. | |create=Please see the {{#if:{{{xfd|}}}|'''[[{{{xfd}}}|deletion discussion]]''' or the}} [{{fullurl:Special:Log|type=delete&page={{FULLPAGENAMEE}}}} deletion log] for details of why this page was deleted. If you would like to create a page at this title, you must first [[Wikipedia:Requests for page protection|request]] for it to be unprotected, or contact the administrator who deleted the page for the deleted material to be restored. If unsuccessful, you can use [[Wikipedia:Deletion review|deletion review]]. | ||
}}}}} | }}}}} |
Revision as of 13:48, 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 loop detected: Template:Documentation