Template:Pp-protected: Difference between revisions
From All Skies Encyclopaedia
Template:Pp-protected
imported>Nihiltres  (Undid previous reversion; the code works, and the update is desirable. If contested, feel free to revert.)  | 
				imported>Cenarium   (update to return nothing and categorize in Category:Wikipedia pages with incorrect protection templates when no edit protection)  | 
				||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{PROTECTIONLEVEL:edit}}||[[Category:Wikipedia pages with incorrect protection templates|{{PAGENAME}}]]|  | 
|||
{{pp-meta  | 
|||
|type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}  | 
  |type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}  | 
||
   |semi  | 
     |semi  | 
||
| Line 33: | Line 34: | ||
   | {{ns:12}} = [[Category:Protected project pages|{{PAGENAME}}]]  | 
     | {{ns:12}} = [[Category:Protected project pages|{{PAGENAME}}]]  | 
||
   | {{ns:10}} = [[Category:Wikipedia protected templates|{{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>  | 
     | #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]]}}  | 
||




