Template:Pp-vandalism: Difference between revisions
(convert this to use Module:Protection banner; see here for details) |
m (1 revision imported from wikipedia:Template:Pp-vandalism) |
Latest revision as of 13:12, 29 March 2020
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as this template is used in the standard installation of Twinkle. Thank you! |
This template uses Lua: |
Usage
This template will automatically detect the edit protection level of a page and adjust its appearance and categorization accordingly (showing full or semi-protection, temporary or indefinite, etc.). This template will not be visible on pages that are not protected. Please note that only administrators can protect pages.
- Use
{{pp-vandalism}}
for the normal template - Use
{{pp-vandalism|small=yes}}
for just an icon at the top
- This template will categorize into Category:Wikipedia pages protected against vandalism and Category:Wikipedia pages with incorrect protection templates.
TemplateData
TemplateData for Pp-vandalism
<templatedata> { "params": { "small": { "label": "Small", "description": "Just show an icon at the top.", "type": "boolean", "example": "yes" } }, "description": "This template will automatically detect the edit protection level of a page and adjust its appearance and categorization accordingly (showing full or semi-protection, temporary or indefinite, etc.). This template will not be visible on pages that are not protected.", "format": "inline" } </templatedata>
See also
The above documentation is transcluded from Template:Pp-vandalism/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |