Menú alternativo
Menú alternativo personal
No has accedido
Tu dirección IP será visible si haces alguna edición

Diferencia entre revisiones de «Plantilla:Protected»

De Wikimedia Small Projects
defaultstore
new version
Línea 1: Línea 1:
<includeonly>{{pp-meta
{{#ifexpr:{{#if:{{{demo|<noinclude>sysop</noinclude>}}}|1|0}}or{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop|1|0}}=1|<!-- if demo or page is fully protected then
|type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
--><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>
  |semi
<table class="protected" style="background:#fff; border:1px solid #aaa; padding:.2em; margin:.5em auto;">
  |autoconfirmed=semi
<tr>
  |administrator
<td style="padding-right:4px; padding-left:4px;">[[File:Padlock.svg|40px|link=Commons:Page protection]]</td>
  |full
<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>
  |sysop=full
</tr>
  |#default=full<!--fallback value-->}}
</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
|small={{{small|}}}
-->{{#ifeq:{{PROTECTIONLEVEL:edit}}|autoconfirmed|
|demospace={{{demospace|}}}
<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
|demolevel={{{demolevel|undefined}}}
--><div class="error">Error: This page is not currently protected. Please remove the protection template. {{{category|[[Category:Unprotected pages using protection templates]]}}}</div>}}}}<noinclude>
|expiry={{{expiry|}}}
|dispute=no
|reason={{#if:{{{reason|}}}|&#32;because {{lcfirst:{{{reason|}}}}}}}
|categories={{{category|
{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}
|semi
|autoconfirmed={{#switch: {{{demospace|{{NAMESPACE}}}}}
  | {{ns:2}}
  | {{ns:3}} = [[Category:Wikipedia semi-protected user and user talk pages|{{PAGENAME}}]]
  | {{ns:6}} = [[Category:Semi-protected images|{{PAGENAME}}]]
  | {{ns:4}}
  | {{ns:12}} = [[Category:Semi-protected project pages|{{PAGENAME}}]]
  | {{ns:100}} = [[Category:Semi-protected portals|{{PAGENAME}}]]
  | {{ns:10}} = [[Category:Wikipedia semi-protected templates|{{PAGENAME}}]]
  | {{ns:14}} = [[Category:Wikipedia semi-protected categories|{{PAGENAME}}]]
  | #default = {{talk other|[[Category:Semi-protected talk pages|{{PAGENAME}}]]|[[Category:Wikipedia semi-protected pages|{{PAGENAME}}]]}}}}
|administrator
|full
|sysop={{#switch: {{{demospace|{{NAMESPACE}}}}}
  | {{ns:2}}
  | {{ns:3}} = [[Category:Wikipedia protected user and user talk pages|{{PAGENAME}}]]
  | {{ns:6}} = [[Category:Protected images|{{PAGENAME}}]]
  | {{ns:4}}
  | {{ns:12}} = [[Category:Protected project pages|{{PAGENAME}}]]
  | {{ns:10}} = [[Category:Wikipedia protected templates|{{PAGENAME}}]]
  | {{ns:14}} = [[Category:Wikipedia protected categories|{{PAGENAME}}]]
  | #default = {{talk other|[[Category:Protected talk pages]]|[[Category:Wikipedia protected pages|{{PAGENAME}}]]}}}}}}}}}}}</includeonly><noinclude>
{{pp-protected|demospace=main|categories=no|reason=[[Lorem ipsum|Lorem ipsum dolor sit amet]]}}


{{pp-template|small=yes}}
 
{{template doc}}
----
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
===Usage===
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]] and everything else to [[:Category:Protected pages]] (except user pages and user talk pages).
 
Syntax: <nowiki>{{</nowiki>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 <code>note</code> parameter is used).
 
===Examples===
<nowiki>{{</nowiki>protected}} → {{protected|category=}}
 
<nowiki>{{</nowiki>protected|I said so}} → {{protected|I said so|category=}}
 
<nowiki>{{</nowiki>protected|note=And you can change this too.}} → {{protected|note=And you can change this too.|category=}}
 
===See also===
* {{tl|protected image}} - for high-risk images that are indefinitely protected.
* {{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}}]]
</noinclude>
</noinclude>

Revisión del 21:31 13 mar 2009

This page is protected against editing.
This Plantilla:Namespace 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

- for high-risk images that are indefinitely protected.
- for images on the English Wikipedia's main page.
- for high-risk templates that are indefinitely protected (use on talk page).