Template:R protected: Difference between revisions

From All Skies Encyclopaedia
imported>Dsuke1998AEOS
imported>Awesome Aasim
(WP:BOLD overwrite redirect with switching template for the purpose of making rcat lives easier)
Line 1: Line 1:
<includeonly>{{#switch:{{{protlevel|{{#invoke:effective protection level|edit|1={{{title|{{FULLPAGENAME}}}}}}}}}}
#REDIRECT [[Template:R fully protected]]
|sysop={{r fully protected|nocat={{{nocat|}}}}}{{pp-protected|small=yes|category={{#ifeq:{{{nocat|}}}|true|no|yes}}}}
|templateeditor={{r template-protected|nocat={{{nocat|}}}}}{{pp-template|small=yes|category={{#ifeq:{{{nocat|}}}|true|no|yes}}}}
|extendedconfirmed={{r extended-protected|nocat={{{nocat|}}}}}{{pp-extended|small=yes|category={{#ifeq:{{{nocat|}}}|true|no|yes}}}}
|autoconfirmed={{r semi-protected|nocat={{{nocat|}}}}}{{pp-semi|small=yes|category={{#ifeq:{{{nocat|}}}|true|no|yes}}}}
|#default=<!-- Show nothing -->{{#ifeq:{{{nocat|}}}|true||[[Category:Wikipedia pages with incorrect protection templates]]}}
}}</includeonly><noinclude>
{{documentation|content=This template will automatically categorize redirects into their appropriate rcat protection category. For more information, please see the following rcats:
* {{tl|r fully protected}}
* {{tl|r template-protected}}
* {{tl|r extended-protected}}
* {{tl|r semi-protected}}


== Usage ==
{{Redirect category shell|
<syntaxhighlight lang="wikitext">
{{R from incomplete name}}
#REDIRECT [[(redirect target)]]
{{R from move}}

{{R from template shortcut}}
{{r protected}}
{{R to redirect template}}
</syntaxhighlight>

== Examples ==
Fully protected: {{r protected|protlevel=sysop|nocat=true}}
Template protected: {{r protected|protlevel=templateeditor|nocat=true}}
Extended protected: {{r protected|protlevel=extendedconfirmed|nocat=true}}
Semi protected: {{r protected|protlevel=autoconfirmed|nocat=true}}
}}
}}
</noinclude>

Revision as of 22:49, 2 May 2024