Difference between revisions of "Template:Module rating"

From Lojban
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{ombox
+
{{Module other|{{ombox
 
  | type      = notice
 
  | type      = notice
 
  | image    = {{#switch: {{{1|}}}
 
  | image    = {{#switch: {{{1|}}}
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-red.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=]]
 
   }}
 
   }}
 
  | style    =  
 
  | style    =  
Line 31: Line 31:
 
       | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules for general use|{{PAGENAME}}]] }}
 
       | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules for general use|{{PAGENAME}}]] }}
 
       }}
 
       }}
   | protected | protect | p  = This module is [[:Category:Modules subject to page protection|subject to page protection]]. It is a [[Wikipedia:High-risk templates|highly visible module]] in use by a very large number of articles, or is [[WP:SUBST|substituted]] very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is is [[WP:PROTECT|protected]] from editing.<!--
+
   | protected | protect | p  = This module is [[:Category:Modules subject to page protection|subject to page protection]]. It is a [[Wikipedia:High-risk templates|highly visible module]] in use by a very large number of pages, or is [[WP:SUBST|substituted]] very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[WP:PROTECT|protected]] from editing.<!--
 
   -->{{#ifeq: {{SUBPAGENAME}} | doc  
 
   -->{{#ifeq: {{SUBPAGENAME}} | doc  
 
       | <!-- No category for /doc subpages -->
 
       | <!-- No category for /doc subpages -->
 
       | {{#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|Invalid rating, or no rating specified.}}
+
   | #default                  = {{error|The rating is either invalid or not specified. Please remove the {{Tlx|Module rating}} template or specify a valid rating.}}
 
   }}
 
   }}
}}<noinclude>
+
}}|{{error|This template should 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 08:06, 26 June 2014

Documentation icon Template documentation[create]