Template:R protected: Difference between revisions
From All Skies Encyclopaedia
imported>Awesome Aasim (WP:BOLD overwrite redirect with switching template for the purpose of making rcat lives easier) |
imported>Primefac (swap to subpages following TFM) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{protlevel|{{#invoke:effective protection level|edit|1={{{title|{{FULLPAGENAME}}}}}}}}}} |
<includeonly>{{#switch:{{{protlevel|{{#invoke:effective protection level|edit|1={{{title|{{FULLPAGENAME}}}}}}}}}} |
||
|sysop={{ |
|sysop={{R protected/full|nocat={{{nocat|}}}}}{{pp-protected|small=yes|category={{#ifeq:{{{nocat|}}}|true|no|yes}}}} |
||
|templateeditor={{ |
|templateeditor={{R protected/template|nocat={{{nocat|}}}}}{{pp-template|small=yes|category={{#ifeq:{{{nocat|}}}|true|no|yes}}}} |
||
|extendedconfirmed={{ |
|extendedconfirmed={{R protected/excon|nocat={{{nocat|}}}}}{{pp-extended|small=yes|category={{#ifeq:{{{nocat|}}}|true|no|yes}}}} |
||
|autoconfirmed={{ |
|autoconfirmed={{R protected/semi|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]]}} |
|#default=<!-- Show nothing -->{{#ifeq:{{{nocat|}}}|true||[[Category:Wikipedia pages with incorrect protection templates]]}} |
||
}}</includeonly><noinclude> |
}}</includeonly><noinclude> |
||
{{documentation}} |
|||
{{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 == |
|||
<syntaxhighlight lang="wikitext"> |
|||
#REDIRECT [[(redirect target)]] |
|||
{{r protected}} |
|||
</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> |
</noinclude> |