Template:Pp-move: Difference between revisions
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}}]]}} |
|||
| {{ns:3}} = [[Category:Wikipedia move-protected user and user talk pages|{{PAGENAME}}]] |
|||
| {{ns:4}} |
|||
{{#ifeq:{{NAMESPACE}}|{{ns:100}}|[[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]]}}}} |
|||
⚫ | |||
{{pp-move|demospace=main|categories=no}} |
{{pp-move|demospace=main|categories=no}} |
||
{{Documentation}} |
{{Documentation}} |
Revision as of 01:53, 15 January 2009
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as the standard installation of Twinkle adds and removes this template. Thank you! |
This template uses Lua: |
This template is used on approximately 9,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This is the {{pp-move}}
protection template.
This template puts pages in the category that contains pages which have been protected from page moves.
It should only be used on move-protected pages. For pages move-protected specifically due to dispute, use {{pp-move-dispute}}
. For pages move-protected specifically due to vandalism, use {{pp-move-vandalism}}
.
Please note that only administrators can protect pages; you cannot protect a page just by adding this template to it.
Note: This template also previously displayed a notice or a lock icon like the other protection templates, but this feature was removed as a default per Wikipedia:Templates for discussion/Log/2020 October 25#Template:Pp-move (see also Wikipedia:Village pump (technical)/Archive 207#Move protection templates not showing). The icon can still be shown by using {{pp-move|small=yes|catonly=no}}
, and it still appears on templates with {{documentation}}
(if they have no edit protection but full move protection, such as Template:Infobox unbinilium).