Template:Pp-protected: Difference between revisions

From All Skies Encyclopaedia
Template:Pp-protected
imported>Cenarium
(using #switch instead of several #eq 's to reduce code size)
imported>Primefac
m (→‎top: avoid double redir)
 
(23 intermediate revisions by 9 users not shown)
Line 1: Line 1:
#REDIRECT [[Template:Protection padlock]]
<includeonly>{{pp-meta

|type=full
{{Rcat shell|
|small={{{small|}}}
{{R from move}}
|demospace={{{demospace|}}}
{{R from long name}}
|expiry={{{expiry|}}}
{{R with history}}
|dispute=no
}}
|reason={{#if:{{{reason|}}}|&#32;because {{lcfirst:{{{reason|}}}}}}}
[[Category:Top icon protection templates]]
|categories={{{category|{{#switch: {{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-template|small=yes}}
{{template doc}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 22:49, 31 October 2024