Template:Pp-protected: Difference between revisions

From All Skies Encyclopaedia
Template:Pp-protected
imported>Nihiltres
(Add demolevel functionality to category system)
imported>Nihiltres
m (Reverted edits by Nihiltres (talk) to last version by Cenarium)
Line 1: Line 1:
<includeonly>{{pp-meta
<includeonly>{{pp-meta
|type=full
|type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
|semi
|autoconfirmed=semi
|administrator
|full
|sysop=full
|#default=full<!--fallback value-->}}
|small={{{small|}}}
|small={{{small|}}}
|demospace={{{demospace|}}}
|demospace={{{demospace|}}}
Line 12: Line 6:
|dispute=no
|dispute=no
|reason={{#if:{{{reason|}}}|&#32;because {{lcfirst:{{{reason|}}}}}}}
|reason={{#if:{{{reason|}}}|&#32;because {{lcfirst:{{{reason|}}}}}}}
|categories={{{category|
|categories={{{category|{{#switch: {{NAMESPACE}}
| {{ns:2}}
{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
| {{ns:3}} = [[Category:Wikipedia protected user and user talk pages|{{PAGENAME}}]]
|semi
| {{ns:6}} = [[Category:Protected images]]
|autoconfirmed={{#switch: {{{demospace|{{NAMESPACE}}}}}
| {{ns:2}}
| {{ns:4}}
| {{ns:3}} = [[Category:Wikipedia semi-protected user and user talk pages|{{PAGENAME}}]]
| {{ns:12}} = [[Category:Protected project pages|{{PAGENAME}}]]
| {{ns:6}} = [[Category:Semi-protected images|{{PAGENAME}}]]
| {{ns:10}} = [[Category:Wikipedia protected templates|{{PAGENAME}}]]
| #default = {{talk other|[[Category:Protected talk pages]]|[[Category:Wikipedia protected pages|{{PAGENAME}}]]}}}}{{#ifexpr:{{#if:{{{expiry|}}}|{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|0}}|[[Category:Wikipedia protected pages with expiry expired|{{PAGENAME}}]]}}}}}}}</includeonly><noinclude>
| {{ns:4}}
| {{ns:12}} = [[Category:Semi-protected project pages|{{PAGENAME}}]]
| {{ns:100}} = [[Category:Semi-protected portals|{{PAGENAME}}]]
| {{ns:10}} = [[Category:Wikipedia semi-protected templates|{{PAGENAME}}]]
| #default = {{talk other|[[Category:Semi-protected talk pages]]|[[Category:Wikipedia semi-protected pages|{{PAGENAME}}]]}}}}
|administrator
|full
|sysop={{#switch: {{{demospace|{{NAMESPACE}}}}}
| {{ns:2}}
| {{ns:3}} = [[Category:Wikipedia protected user and user talk pages|{{PAGENAME}}]]
| {{ns:6}} = [[Category:Protected images]]
| {{ns:4}}
| {{ns:12}} = [[Category:Protected project pages|{{PAGENAME}}]]
| {{ns:10}} = [[Category:Wikipedia protected templates|{{PAGENAME}}]]
| #default = {{talk other|[[Category:Protected talk pages]]|[[Category:Wikipedia protected pages|{{PAGENAME}}]]}}}}}}{{#ifexpr:{{#if:{{{expiry|}}}|{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|0}}|[[Category:Wikipedia protected pages with expiry expired|{{PAGENAME}}]]}}}}}}}</includeonly><noinclude>
{{pp-protected|demospace=main|categories=no|reason=[[Lorem ipsum|Lorem ipsum dolor sit amet]]}}
{{pp-protected|demospace=main|categories=no|reason=[[Lorem ipsum|Lorem ipsum dolor sit amet]]}}

{{pp-template|small=yes}}
{{pp-template|small=yes}}
{{template doc}}
{{template doc}}

Revision as of 16:14, 3 February 2009