Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Protected: Difference between revisions

Template page
fix examples
simplify
Line 1: Line 1:
{{#ifexpr:{{#if:{{{demo|<noinclude>sysop</noinclude>}}}|1|0}}or{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop|1|0}}=1|<!-- if demo or page is fully protected then
{{#switch:{{{demo|<noinclude>sysop</noinclude><includeonly>{{PROTECTIONLEVEL:edit}}</includeonly>}}}
--><div style="position:absolute; z-index:100; right:10px; top:10px">[[File:Padlock.svg|20px|link=Commons:Page protection|This page is protected against editing.]]</div>
 
|sysop=
<div style="position:absolute; z-index:100; right:10px; top:10px">[[File:Padlock.svg|20px|link=Commons:Page protection|This page is protected against editing.]]</div>
<table class="protected" style="background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
<table class="protected" style="background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
<tr>
<tr>
Line 6: Line 8:
<td>'''This {{namespace}} has been protected {{#if:{{{1|}}} | because {{{1}}} | from editing to prevent vandalism}}.'''<br /><span style="font-size:90%;">{{{note|{{#ifeq:{{NAMESPACE}} | {{TALKSPACE}} || {{#ifeq:{{NAMESPACE}} | {{ns:user}} || Please discuss changes on the [[{{TALKPAGENAME}}|talk page]] or [[Commons:Administrators' noticeboard/Blocks & protections|request unprotection]].}} }}}}}</span></td>
<td>'''This {{namespace}} has been protected {{#if:{{{1|}}} | because {{{1}}} | from editing to prevent vandalism}}.'''<br /><span style="font-size:90%;">{{{note|{{#ifeq:{{NAMESPACE}} | {{TALKSPACE}} || {{#ifeq:{{NAMESPACE}} | {{ns:user}} || Please discuss changes on the [[{{TALKPAGENAME}}|talk page]] or [[Commons:Administrators' noticeboard/Blocks & protections|request unprotection]].}} }}}}}</span></td>
</tr>
</tr>
</table><includeonly>{{#if:{{{demo|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:file}}=[[Category:Protected images]]|{{ns:user}}|{{ns:user_talk}}=|[[Category:Protected pages]]}}}}}}}</includeonly>|<!-- else check if semi
</table><includeonly>{{#if:{{{demo|}}}||{{{category|{{#switch:{{NAMESPACE}}|{{ns:file}}=[[Category:Protected images]]|{{ns:user}}|{{ns:user_talk}}=|[[Category:Protected pages]]}}}}}}}</includeonly>
-->{{#ifeq:{{PROTECTIONLEVEL:edit}}|autoconfirmed|
 
<div style="position:absolute; z-index:100; right:10px; top:10px">[[File:Padlock-silver-medium.svg|20px|link=Commons:Page protection|This page is semi-protected against editing.]]</div>|<!-- else
|autoconfirmed=
--><div class="error">Error: This page is not currently protected. Please remove the protection template. {{{category|[[Category:Unprotected pages using protection templates]]}}}</div>}}}}<noinclude>
<div style="position:absolute; z-index:100; right:10px; top:10px">[[File:Padlock-silver-medium.svg|20px|link=Commons:Page protection|This page is semi-protected against editing.]]</div>
 
|<!--default--><div class="error">Error: This page is not currently protected. Please remove the protection template. {{{category|[[Category:Unprotected pages using protection templates]]}}}</div>
}}<noinclude>





Revision as of 23:31, 13 March 2009

This page is protected against editing.
This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection.



Usage

General protection template to inform users a page is protected. (Note: This does not protect pages. Admins can only do that.)

Syntax: {{protected|give reason here}}.

  • If no reason is given the default is "to prevent vandalism."
  • The second line doesn't show up on talk pages or user pages (unless the note parameter is used).

Examples

{{protected}} →

This page is protected against editing.
This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection.

{{protected|I said so}} →

This page is protected against editing.
This template has been protected because I said so.
Please discuss changes on the talk page or request unprotection.

{{protected|note=And you can change this too.}} →

This page is protected against editing.
This template has been protected from editing to prevent vandalism.
And you can change this too.

See also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.