This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Template:Pp-template"

From BZFlagWiki
Jump to: navigation, search
(Adding feature: If the template is move-protected but not edit-protected, give a move-protection notice back instead of an error.)
m (50 revision(s))
 
(5 intermediate revisions by 2 users not shown)
Line 33: Line 33:
 
   |semi
 
   |semi
 
   |autoconfirmed=semi-
 
   |autoconfirmed=semi-
   |move=move
+
   |move=move-
 
   |administrator
 
   |administrator
 
   |full
 
   |full
 
   |sysop<!--uses default-->
 
   |sysop<!--uses default-->
   |#default=<!--fallback value-->}}protected]]{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop||<nowiki> </nowiki>from editing}}}}} to prevent [[Wikipedia:Vandalism|vandalism]]. {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
+
   |#default=<!--fallback value-->}}protected]]{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop||<nowiki> </nowiki>from editing}} to prevent [[Wikipedia:Vandalism|vandalism]]. {{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
 
   |semi
 
   |semi
 
   |autoconfirmed=
 
   |autoconfirmed=
Line 44: Line 44:
 
   |sysop<!--uses default-->
 
   |sysop<!--uses default-->
 
   |#default={{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}}}
 
   |#default={{#switch:{{NAMESPACE}}|{{ns:image}}=<br /><small>'''Do not move this image''' to [[commons:|Wikimedia Commons]].</small>}}}}
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|[[Category:Wikipedia {{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
+
|categories={{{categories|{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#switch:{{{demolevel|{{#ifeq:{{PROTECTIONLEVEL:edit}}-{{PROTECTIONLEVEL:move}}|-sysop|move|{{PROTECTIONLEVEL:edit}}}}}}}
 
   |semi
 
   |semi
   |autoconfirmed=semi-
+
   |autoconfirmed=[[Category:Wikipedia semi-protected templates|{{PAGENAME}}]]{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]}}
   |move=move-
+
   |move=[[Category:Wikipedia move-protected templates|{{PAGENAME}}]]
 
   |administrator
 
   |administrator
 
   |full
 
   |full
 
   |sysop<!--uses default-->
 
   |sysop<!--uses default-->
   |#default=<!--fallback value-->}}protected templates|{{PAGENAME}}]]}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
+
   |#default=[[Category:Wikipedia protected templates|{{PAGENAME}}]]<!--fallback value-->}}}}{{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
 
   |semi
 
   |semi
 
   |autoconfirmed=Semi-protected
 
   |autoconfirmed=Semi-protected

Latest revision as of 20:03, 30 June 2009

[create] Template-info.svg Template documentation