Template:Module rating: Difference between revisions

Jump to navigation Jump to search
m (use switch instead of 2 ifs)
m (27 revisions imported)
 
(6 intermediate revisions by 4 users not shown)
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|}}.svg|40x40px|link=]]
   }}
   }}
  | style    =  
  | style    =  
Line 31: Line 31:
       | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules subject to page protection|{{PAGENAME}}]] }}
       | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules subject to page protection|{{PAGENAME}}]] }}
       }}
       }}
   | #default                  = {{error|The rating is either invalid or not specified. Please remove the {{Tlx|Module rating}} template or specify a valid rating.}}
   | #default                  = {{error|Module rating is invalid or not specified.}}
   }}
   }}
}}|{{error|This template should be placed in the Module namespace.}}|demospace={{{demospace|<noinclude>module</noinclude>}}}}}<noinclude>
}}|{{error|Error: {{tl|Module rating}} must be placed in the Module namespace.}}|demospace={{{demospace|<noinclude>module</noinclude>}}}}}<noinclude>


{{documentation}}
{{documentation}}
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata. -->
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata. -->
</noinclude>
</noinclude>

Latest revision as of 16:18, 7 February 2017