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
m adding padlock icon in upper right corner
new version
Line 1: Line 1:
{| class="protected" style="background: #fff; border: 1px solid #aaa; padding: 0.2em; margin: 0.5em auto;"
{{#ifexpr:{{#if:{{{demo|<noinclude>sysop</noinclude>}}}|1|0}}or{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop|1|0}}=1|<!-- if demo or page is fully protected then
|-
--><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>
| style="padding-right: 4px; padding-left: 4px;" | [[Image:Padlock.svg|40px|]]
<table class="protected" style="background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
| '''This {{namespace}} has been protected {{#if:{{{1|}}} | because {{{1}}}. | from editing to prevent vandalism.}}'''
<tr>
<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 style="padding-right:4px; padding-left:4px;">[[File:Padlock.svg|40px|link=Commons:Page protection]]</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>
<div style="position:absolute; z-index:100; right:10px; top:10px">
</tr>
<imagemap>
</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
Image:Padlock.svg|20px|Protected
-->{{#ifeq:{{PROTECTIONLEVEL:edit}}|autoconfirmed|
default [[COM:P|This page is protected against editing.]]
<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
desc none
--><div class="error">Error: This page is not currently protected. Please remove the protection template. {{{category|[[Category:Unprotected pages using protection templates]]}}}</div>}}}}<noinclude>
</imagemap>
</div><includeonly>{{{category|{{#switch:{{NAMESPACE}} | {{ns:image}}=[[Category:Protected images]] | {{ns:template}}=[[Category:Protected templates|{{PAGENAME}}]] | {{ns:user}}= | {{ns:user_talk}}= | [[Category:Protected pages]] }}}}}</includeonly><noinclude>




Line 17: Line 15:
===Usage===
===Usage===
General protection template to inform users a page is protected. (Note: This does not protect pages. Admins can only do that.)
General protection template to inform users a page is protected. (Note: This does not protect pages. Admins can only do that.)
* Adds images to [[:Category:Protected images]], templates to [[:Category:Protected templates]], and anything else to [[:Category:Protected pages]] (except user pages and user talk pages).
* Adds images to [[:Category:Protected images]] and everything else to [[:Category:Protected pages]] (except user pages and user talk pages).


Syntax: <nowiki>{{</nowiki>protected|''give reason here''}}.
Syntax: <nowiki>{{</nowiki>protected|''give reason here''}}.
Line 32: Line 30:
===See also===
===See also===
* {{tl|protected image}} - for high-risk images that are indefinitely protected.
* {{tl|protected image}} - for high-risk images that are indefinitely protected.
* {{tl|protected template}} - for high-risk templates that are indefinitely protected.
* {{tl|en main page}} - for images on the English Wikipedia's main page.
* {{tl|en main page}} - for images on the English Wikipedia's main page.
* {{tl|permprot}} - for high-risk templates that are indefinitely protected (use on talk page).


[[Category:Protection templates|{{PAGENAME}}]]
[[Category:Protection templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 21: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}} →

Error: This page is not currently protected. Please remove the protection template.

{{protected|I said so}} →

Error: This page is not currently protected. Please remove the protection template.

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

Error: This page is not currently protected. Please remove the protection template.

See also

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