Jump to content

Template:Pp-move: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
rv
simplify code
Line 6: Line 6:
|dispute=no
|dispute=no
|reason={{#if:{{{reason|}}}| because {{lcfirst:{{{reason|}}}}}}}
|reason={{#if:{{{reason|}}}| because {{lcfirst:{{{reason|}}}}}}}
|categories={{{categories|
|categories={{{categories|{{#switch: {{NAMESPACE}}
| {{ns:2}}
{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Wikipedia move-protected pages|{{PAGENAME}}]]}}
{{#ifeq:{{NAMESPACE}}|{{ns:14}}|[[Category:Wikipedia move-protected pages|{{PAGENAME}}]]}}
| {{ns:3}} = [[Category:Wikipedia move-protected user and user talk pages|{{PAGENAME}}]]
| {{ns:4}}
{{#ifeq:{{NAMESPACE}}|{{ns:100}}|[[Category:Wikipedia move-protected pages|{{PAGENAME}}]]}}
{{#ifeq:{{NAMESPACE}}|{{ns:10}}|[[Category:Wikipedia move-protected pages|{{PAGENAME}}]]}}
| {{ns:12}} = [[Category:Wikipedia move-protected project pages|{{PAGENAME}}]]
| #default = {{talk other|[[Category:Wikipedia move-protected talk pages|{{PAGENAME}}]]|[[Category:Wikipedia move-protected pages|{{PAGENAME}}]]}}}}{{#if:{{{expiry|}}}||[[Category:Wikipedia protected pages without expiry|{{PAGENAME}}]]}}{{#ifexpr:{{#if:{{{expiry|}}}|{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|0}}|[[Category:Wikipedia protected pages with expiry expired|{{PAGENAME}}]]}}}}}}}<includeonly></includeonly><noinclude>{{pp-template|small=yes}}
{{#ifeq:{{NAMESPACE}}|{{ns:4}}|[[Category:Wikipedia move-protected project pages|{{PAGENAME}}]]}}
{{#ifeq:{{NAMESPACE}}|{{ns:12}}|[[Category:Wikipedia move-protected project pages|{{PAGENAME}}]]}}
{{#ifeq:{{NAMESPACE}}|{{ns:2}}|[[Category:Wikipedia move-protected user and user talk pages|{{PAGENAME}}]]}} {{#ifeq:{{NAMESPACE}}|{{ns:3}}|[[Category:Wikipedia move-protected user and user talk pages|{{PAGENAME}}]]}} {{talk other|{{#ifeq:{{NAMESPACE}}|{{ns:3}}||[[Category:Wikipedia move-protected talk pages]]}}}}
{{#ifexpr:{{#if:{{{expiry|}}}|{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|0}}|[[Category:Wikipedia protected pages with expiry expired|{{PAGENAME}}]]}}}}}}}<includeonly></includeonly><noinclude>{{pp-template|small=yes}}
{{pp-move|demospace=main|categories=no}}
{{pp-move|demospace=main|categories=no}}
{{Documentation}}
{{Documentation}}

Revision as of 01:53, 15 January 2009

Template:Pp-meta