m use switch instead of 2 ifs |
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:{{ | | 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|Template:Ns:Module | module | other }} }}
| module = {{#invoke:Message box|ombox}} | other | #default = Template:Error }}
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#switch: bye | hidewiki =
| noinfoboxborder =
| maricss =
| bye = | bye2 =
| default = Unknown import: "bye". }}