Template:Protection indicators: Difference between revisions

fix bug
m fix further
Line 5: Line 5:
   | editextendedprotected = <indicator name="padlock-edit-extended">[[File:Extended-protection-shackle.svg|20px|link=Project:Protection policy|This page is extended-protected.|alt=Locked]]</indicator>{{#ifeq:{{PROTECTIONLEVEL:upload}}|sysop|<indicator name="padlock-upload">[[File:Upload-protection-shackle.svg|20px|link=Project:Protection policy|This file is protected from reuploading.|alt=Locked]]</indicator>}}{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|<indicator name="padlock-move">[[File:Move-protection-shackle.svg|20px|link=Project:Protection policy|This page is protected from moving.|alt=Locked]]</indicator>}}
   | editextendedprotected = <indicator name="padlock-edit-extended">[[File:Extended-protection-shackle.svg|20px|link=Project:Protection policy|This page is extended-protected.|alt=Locked]]</indicator>{{#ifeq:{{PROTECTIONLEVEL:upload}}|sysop|<indicator name="padlock-upload">[[File:Upload-protection-shackle.svg|20px|link=Project:Protection policy|This file is protected from reuploading.|alt=Locked]]</indicator>}}{{#ifeq:{{PROTECTIONLEVEL:move}}|sysop|<indicator name="padlock-move">[[File:Move-protection-shackle.svg|20px|link=Project:Protection policy|This page is protected from moving.|alt=Locked]]</indicator>}}
   | #default      = {{#if:{{PROTECTIONLEVEL:upload}}
   | #default      = {{#if:{{PROTECTIONLEVEL:upload}}
                       | <indicator name="padlock-upload">[[File:Upload-protection-shackle.svg|20px|link=Project:Protection policy|This file is protected from reuploading.|alt=Locked]]</indicator>}}}}{{#if:{{PROTECTIONLEVEL:move}}|<indicator name="padlock-move">[[File:Move-protection-shackle.svg|20px|link=Project:Protection policy|This page is protected from moving.|alt=Locked]]</indicator>}}{{#ifeq:{{NAMESPACE}}|MediaWiki|<indicator name="padlock-interface">[[File:Interface-protection-shackle.svg|20px|link=Project:Protection policy|This interface page is protected.|alt=Locked]]</indicator>}}{{#if:{{CASCADINGSOURCES}}|<indicator name="padlock-cascading">[[File:Cascade-protection-shackle.svg|20px|link=Project:Protection policy|This page is transcluded in a cascade-protected page.|alt=Locked]]</indicator>}}{{#if:{{PROTECTIONLEVEL:create}}|{{#ifeq:{{PROTECTIONLEVEL:create}}|editofficeprotected|<indicator name="padlock-creation-office">[[File:Office-protection-shackle.svg|20px|link=Project:Protection policy|This page is protected from creation by the office.|alt=Locked]]</indicator>|<indicator name="padlock-creation">[[File:Create-protection-shackle.svg|20px|link=Project:Protection policy|This page is protected from creation.|alt=Locked]]</indicator>}}}}
                       | <indicator name="padlock-upload">[[File:Upload-protection-shackle.svg|20px|link=Project:Protection policy|This file is protected from reuploading.|alt=Locked]]</indicator>}}{{#if:{{PROTECTIONLEVEL:move}}|<indicator name="padlock-move">[[File:Move-protection-shackle.svg|20px|link=Project:Protection policy|This page is protected from moving.|alt=Locked]]</indicator>}}}}{{#ifeq:{{NAMESPACE}}|MediaWiki|<indicator name="padlock-interface">[[File:Interface-protection-shackle.svg|20px|link=Project:Protection policy|This interface page is protected.|alt=Locked]]</indicator>}}{{#if:{{CASCADINGSOURCES}}|<indicator name="padlock-cascading">[[File:Cascade-protection-shackle.svg|20px|link=Project:Protection policy|This page is transcluded in a cascade-protected page.|alt=Locked]]</indicator>}}{{#if:{{PROTECTIONLEVEL:create}}|{{#ifeq:{{PROTECTIONLEVEL:create}}|editofficeprotected|<indicator name="padlock-creation-office">[[File:Office-protection-shackle.svg|20px|link=Project:Protection policy|This page is protected from creation by the office.|alt=Locked]]</indicator>|<indicator name="padlock-creation">[[File:Create-protection-shackle.svg|20px|link=Project:Protection policy|This page is protected from creation.|alt=Locked]]</indicator>}}}}
}}
}}