{{#ifeq: {{{icon|no}}} | yes |
{{#switch: {{#getrestrictions:edit}} | bureaucrat = [[Image:Padlock.svg|20px]] | sysop = [[Image:Padlock-silver.svg|20px]] | #default = [[Image:Redlight.gif]] }} {{#switch: {{#getrestrictions:edit}} | sysop | bureaucrat = pp-{{#getrestrictions:edit}}-edit | #default = pp-not-protected }}
| {{{!}} class="messagebox" style="text-align:center;width:auto;" {{!}} [[Image:Redlight.gif]] {{!}} This {{#switch: {{NAMESPACEE}} | Cada/Starfleet = project page | Template = template | Image | Media = image | #default = page }} is {{#switch: {{#getrestrictions:edit}} | sysop | bureaucrat = protected. | #default = not protected! }} Please {{#switch: {{#getrestrictions:edit}} | sysop | bureaucrat = contact {{#switch: {{#getrestrictions:edit}} | bureaucrat = a [[Cada/Starfleet:Bureaucrats|bureaucrat]] | sysop = an [[Cada/Starfleet:Administrators|administrator]] }} to request changes. | #default = remove this tag. }} {{!}} [[Image:Bluelight.gif]] {{!}}} }} {{#switch: {{#ifeq: {{#getrestrictions:edit}} | | none | {{#getrestrictions:edit}} }} | sysop | bureaucrat = {{#switch: {{NAMESPACEE}} | Cada/Starfleet = [[Category:Protected project pages|{{BASEPAGENAME}}]] | Template = [[Category:Protected templates|{{BASEPAGENAME}}]] | Image | Media = [[Category:Protected images|{{BASEPAGENAME}}]] | #default = [[Category:Protected pages|{{BASEPAGENAME}}]] }} | none = [[Category:Protection template removal queue|{{BASEPAGENAME}}]] }}
{{protected}} {{todo|Fix that annoying categorization bug. Looks like it might be something to do with the link update jobs...}} Place this template at the top of a page that is protected. Syntax: {{protected}} Syntax (icon): {{protected|icon=yes}} The template automatically detects both the page type (page, project page, template, image, etc.) and the protection level (including an unprotected state), and applies the appropriate categories. See the [[:Category:Protection template removal queue|protection template removal]] category for pages that have this template but are not protected. [[Category:Templates using ParserFunctions]]