Difference between revisions of "Template:Module rating"

From Betting Wiki
Jump to navigation Jump to search
en>Jackmcbarn
m (use switch instead of 2 ifs)
en>Jackmcbarn
(detect cascading and titleblacklist protection)
Line 6: Line 6:
 
   | beta | b                  = [[File:Greek lc beta.svg|40x40px|link=]]
 
   | beta | b                  = [[File:Greek lc beta.svg|40x40px|link=]]
 
   | release | r | general | g = [[File:Green check.svg|40x40px|link=]]
 
   | release | r | general | g = [[File:Green check.svg|40x40px|link=]]
   | protected | protect | p  = [[File:Padlock-{{#switch:{{PROTECTIONLEVEL:edit|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{FULLBASEPAGENAME}}|{{FULLPAGENAME}}}}}}|autoconfirmed=silver|templateeditor=pink|red}}.svg|40x40px|link=]]
+
   | protected | protect | p  = [[File:Padlock-{{#switch:{{#invoke:Effective protection level|edit|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{FULLBASEPAGENAME}}|{{FULLPAGENAME}}}}}}|autoconfirmed=silver|accountcreator|templateeditor=pink|red}}.svg|40x40px|link=]]
 
   }}
 
   }}
 
  | style    =  
 
  | style    =  

Revision as of 19:25, 10 August 2014

{{#switch:

 {{#if:module
 | module    
 | {{#ifeq:Template|Module
   | module
   | other
   }}
 }}

| module =

| other | #default = Template:Error }}

50px Template documentation[create]