Template:Pp-vandalism: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Nihiltres quick-add demolevel parameter for main protectionlevel check |
meta>Nihiltres Updating code to reflect update to {{pp-meta}} that makes some manual tricks unnecessary. |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{pp-meta | ||
|type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}} | |type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}} | ||
|semi | |semi | ||
Line 9: | Line 9: | ||
|small={{{small|}}} | |small={{{small|}}} | ||
|demospace={{{demospace|}}} | |demospace={{{demospace|}}} | ||
|demolevel={{{demolevel|}}} | |||
|expiry={{{expiry|}}} | |expiry={{{expiry|}}} | ||
|dispute={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}<!--having this switch may be unnecessary, but as it was "yes" here and "no" on pp-semi-vandalism, the template is changed less this way.--> | |dispute={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}<!--having this switch may be unnecessary, but as it was "yes" here and "no" on pp-semi-vandalism, the template is changed less this way.--> | ||
Line 41: | Line 42: | ||
| {{ns:10}} = [[Category:Wikipedia protected templates|{{PAGENAME}}]] | | {{ns:10}} = [[Category:Wikipedia protected templates|{{PAGENAME}}]] | ||
| #default = {{talk other|[[Category:Protected talk pages]]|[[Category:Wikipedia pages protected against vandalism|{{PAGENAME}}]]}}}}}} | | #default = {{talk other|[[Category:Protected talk pages]]|[[Category:Wikipedia pages protected against vandalism|{{PAGENAME}}]]}}}}}} | ||
{{#if:{{{expiry|}}}|{{#ifexpr:{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|[[Category:Wikipedia protected pages with expiry expired|{{PAGENAME}}]]}}|[[Category:Wikipedia protected pages without expiry|{{PAGENAME}}]] | {{#if:{{{expiry|}}}|{{#ifexpr:{{#time:U|today}}>{{#time:U|{{{expiry}}}}}|[[Category:Wikipedia protected pages with expiry expired|{{PAGENAME}}]]}}|[[Category:Wikipedia protected pages without expiry|{{PAGENAME}}]]}}}}}}}</includeonly><noinclude>{{pp-template|small=yes}} | ||
{{pp-vandalism|demospace=main|categories=no}} | {{pp-vandalism|demospace=main|categories=no}} | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |