Template:Module rating: Difference between revisions
Jump to navigation
Jump to search
m use switch instead of 2 ifs |
Matt Pijoan (talk | contribs) 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 | | 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| | | #default = {{error|Module rating is invalid or not specified.}} | ||
}} | }} | ||
}}|{{error| | }}|{{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
File:Information icon4.svg | Template:Error |
File:Test Template Info-Icon - Version (2).svg Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |